summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-12-06 16:16:10 +1000
committerDave Airlie <airlied@redhat.com>2012-12-08 13:32:38 +1000
commit73ae865af8794c053812cbb5fe9532b1b6113515 (patch)
tree5a0f70c6af0628bb97b02f5779b11740c9d8b1a2 /src/mesa/state_tracker/st_atom.c
parent535e248c5fc88fb3fa56d0ce9204e6a6427802f6 (diff)
downloadexternal_mesa3d-73ae865af8794c053812cbb5fe9532b1b6113515.zip
external_mesa3d-73ae865af8794c053812cbb5fe9532b1b6113515.tar.gz
external_mesa3d-73ae865af8794c053812cbb5fe9532b1b6113515.tar.bz2
mesa/st: add ARB_uniform_buffer_object support (v2)
this adds UBO support to the state tracker, it works with softpipe as-is. It uses UARL + CONST[x][ADDR[0].x] type constructs. v2: don't disable UBOs if geom shaders don't exist (me) rename upload to bind (calim) fix 12 -> 13 comparison as comment (calim + brianp) fix signed->unsigned (Brian) remove assert (Brian) Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.c')
-rw-r--r--src/mesa/state_tracker/st_atom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c
index 102fee9..32bcc26 100644
--- a/src/mesa/state_tracker/st_atom.c
+++ b/src/mesa/state_tracker/st_atom.c
@@ -64,6 +64,8 @@ static const struct st_tracked_state *atoms[] =
&st_update_vs_constants,
&st_update_gs_constants,
&st_update_fs_constants,
+ &st_bind_vs_ubos,
+ &st_bind_fs_ubos,
&st_update_pixel_transfer,
/* this must be done after the vertex program update */