iris: move sysvals to their own constant buffer
[mesa.git] / src / gallium / drivers / iris / iris_disk_cache.c
index 675f0095ab61968f06170d46251c88d8e65aaa0d..26fc917547b34f11609c0cc00f6ab39ca7024f80 100644 (file)
@@ -207,7 +207,11 @@ iris_disk_cache_retrieve(struct iris_context *ice,
     * needed, the constant buffer 0 will be needed, so account for it.
     */
    unsigned num_cbufs = ish->nir->info.num_ubos;
-   if (num_cbufs || num_system_values || ish->nir->num_uniforms)
+
+   if (num_cbufs || ish->nir->num_uniforms)
+      num_cbufs++;
+
+   if (num_system_values)
       num_cbufs++;
 
    /* Upload our newly read shader to the in-memory program cache and