mesa: don't set _NEW_PROGRAM_CONSTANTS for non-bindless opaque uniforms

v2: rebase on new _mesa_flush_vertices_for_uniforms() helper

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri
2017-06-23 08:44:25 +10:00
parent c4291a3283
commit 191ff86d53

View File

@@ -1006,6 +1006,12 @@ void
_mesa_flush_vertices_for_uniforms(struct gl_context *ctx,
const struct gl_uniform_storage *uni)
{
/* Opaque uniforms have no storage unless they are bindless */
if (!uni->is_bindless && uni->type->contains_opaque()) {
FLUSH_VERTICES(ctx, 0);
return;
}
uint64_t new_driver_state = 0;
unsigned mask = uni->active_shader_mask;