iris: don't forget to upload CS consts
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Nov 2018 00:56:29 +0000 (16:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 0ab9df0e29724a12e1f86e8da86a1d92fbae1440..b1ed00778934e2351e39419d6837199c1d12c9b4 100644 (file)
@@ -4479,6 +4479,9 @@ iris_upload_compute_state(struct iris_context *ice,
    // XXX: L3 configuration not set up for SLM
    assert(prog_data->total_shared == 0);
 
+   if ((dirty & IRIS_DIRTY_CONSTANTS_CS) && shs->cbuf0_needs_upload)
+      upload_uniforms(ice, MESA_SHADER_COMPUTE);
+
    if (dirty & IRIS_DIRTY_BINDINGS_CS)
       iris_populate_binding_table(ice, batch, MESA_SHADER_COMPUTE, false);