diff options
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 5eb0efc3268..afb9f566b80 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -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; |