gsk: Stop setting uniforms when we are out of batches
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 May 2023 00:03:19 +0000 (20:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 17 May 2023 00:03:19 +0000 (20:03 -0400)
commit71a231b71d06d479144278a5c0faad8120e0db04
tree2e692847e143381ff8a3f4969365634bb642a991
parent1b885cc317156f215d79c415828f42db1ef143af
gsk: Stop setting uniforms when we are out of batches

When the command queue is out of batches, there is
no point in doing further work like allocating uniforms.

This helps us avoid assertions in the uniform code
that we would hit when we run out of uniform space
too.
gsk/gl/gskglcommandqueue.c
gsk/gl/gskglcommandqueueprivate.h
gsk/gl/gskglrenderjob.c