mesa: add & use a new driver flag for UBO updates instead of _NEW_BUFFER_OBJECT

v2: move the flagging from intel_bufferobj_data to intel_bufferobj_alloc_buffer

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Marek Olšák
2013-04-26 14:21:09 +02:00
parent 081c789c3e
commit 77d8fbcfd4
13 changed files with 41 additions and 14 deletions

View File

@@ -217,8 +217,8 @@ static void bind_vs_ubos(struct st_context *st)
const struct st_tracked_state st_bind_vs_ubos = {
"st_bind_vs_ubos",
{
(_NEW_PROGRAM | _NEW_BUFFER_OBJECT),
ST_NEW_VERTEX_PROGRAM,
_NEW_PROGRAM,
ST_NEW_VERTEX_PROGRAM | ST_NEW_UNIFORM_BUFFER,
},
bind_vs_ubos
};
@@ -231,14 +231,13 @@ static void bind_fs_ubos(struct st_context *st)
return;
st_bind_ubos(st, prog->_LinkedShaders[MESA_SHADER_FRAGMENT], PIPE_SHADER_FRAGMENT);
}
const struct st_tracked_state st_bind_fs_ubos = {
"st_bind_fs_ubos",
{
(_NEW_PROGRAM | _NEW_BUFFER_OBJECT),
ST_NEW_FRAGMENT_PROGRAM,
_NEW_PROGRAM,
ST_NEW_FRAGMENT_PROGRAM | ST_NEW_UNIFORM_BUFFER,
},
bind_fs_ubos
};