radeon/winsys: add uvd enc ring type
[mesa.git] / src / gallium / drivers / vc4 / vc4_qir_lower_uniforms.c
index 1884cfa5b784c1f015c35d1b3953be5e06d5954c..9ecfe65211e981b44daa8f635451ab1ff1084bf3 100644 (file)
@@ -77,7 +77,7 @@ is_lowerable_uniform(struct qinst *inst, int i)
         if (inst->src[i].file != QFILE_UNIF)
                 return false;
         if (qir_is_tex(inst))
-                return i != 1;
+                return i != qir_get_tex_uniform_src(inst);
         return true;
 }