[Mesa-dev] [PATCH 15/17] st/mesa: don't check for _NEW_PROGRAM when binding UBOs
Marek Olšák
maraeo at gmail.com
Wed May 1 20:43:06 PDT 2013
Probably copied from i965. However st/mesa has its flags ST_NEW_xxx_PROGRAM.
---
src/mesa/state_tracker/st_atom_constbuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c
index f72af7a..27a910b 100644
--- a/src/mesa/state_tracker/st_atom_constbuf.c
+++ b/src/mesa/state_tracker/st_atom_constbuf.c
@@ -229,7 +229,7 @@ static void bind_vs_ubos(struct st_context *st)
const struct st_tracked_state st_bind_vs_ubos = {
"st_bind_vs_ubos",
{
- _NEW_PROGRAM,
+ 0,
ST_NEW_VERTEX_PROGRAM | ST_NEW_UNIFORM_BUFFER,
},
bind_vs_ubos
@@ -248,7 +248,7 @@ static void bind_fs_ubos(struct st_context *st)
const struct st_tracked_state st_bind_fs_ubos = {
"st_bind_fs_ubos",
{
- _NEW_PROGRAM,
+ 0,
ST_NEW_FRAGMENT_PROGRAM | ST_NEW_UNIFORM_BUFFER,
},
bind_fs_ubos
--
1.7.10.4
More information about the mesa-dev
mailing list