st/mesa: don't check for _NEW_PROGRAM when binding UBOs
Probably copied from i965. However st/mesa has its flags ST_NEW_xxx_PROGRAM. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -229,7 +229,7 @@ static void bind_vs_ubos(struct st_context *st)
|
|||||||
const struct st_tracked_state st_bind_vs_ubos = {
|
const struct st_tracked_state st_bind_vs_ubos = {
|
||||||
"st_bind_vs_ubos",
|
"st_bind_vs_ubos",
|
||||||
{
|
{
|
||||||
_NEW_PROGRAM,
|
0,
|
||||||
ST_NEW_VERTEX_PROGRAM | ST_NEW_UNIFORM_BUFFER,
|
ST_NEW_VERTEX_PROGRAM | ST_NEW_UNIFORM_BUFFER,
|
||||||
},
|
},
|
||||||
bind_vs_ubos
|
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 = {
|
const struct st_tracked_state st_bind_fs_ubos = {
|
||||||
"st_bind_fs_ubos",
|
"st_bind_fs_ubos",
|
||||||
{
|
{
|
||||||
_NEW_PROGRAM,
|
0,
|
||||||
ST_NEW_FRAGMENT_PROGRAM | ST_NEW_UNIFORM_BUFFER,
|
ST_NEW_FRAGMENT_PROGRAM | ST_NEW_UNIFORM_BUFFER,
|
||||||
},
|
},
|
||||||
bind_fs_ubos
|
bind_fs_ubos
|
||||||
|
Reference in New Issue
Block a user