mesa/st: add ARB_uniform_buffer_object support (v2)
authorDave Airlie <airlied@redhat.com>
Thu, 6 Dec 2012 06:16:10 +0000 (16:16 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 8 Dec 2012 03:32:38 +0000 (13:32 +1000)
commit73ae865af8794c053812cbb5fe9532b1b6113515
tree5a0f70c6af0628bb97b02f5779b11740c9d8b1a2
parent535e248c5fc88fb3fa56d0ce9204e6a6427802f6
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>
src/mesa/state_tracker/st_atom.c
src/mesa/state_tracker/st_atom.h
src/mesa/state_tracker/st_atom_constbuf.c
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp