iris: change last_vue_stage() to look at uncompiled shaders
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 28 Jun 2019 01:13:11 +0000 (11:13 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 18 Jul 2019 23:25:47 +0000 (09:25 +1000)
This allows us to find the last vue stage before we have compiled
the shaders.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_program.c

index 8470b97a2e204fd3110c98aae2b122fdebf53abe..5f243c2065a55b863c3292bd33668fee7df72b87 100644 (file)
@@ -1526,17 +1526,17 @@ iris_update_compiled_fs(struct iris_context *ice)
 }
 
 /**
- * Get the compiled shader for the last enabled geometry stage.
+ * Get the shader for the last enabled geometry stage.
  *
  * This stage is the one which will feed stream output and the rasterizer.
  */
 static gl_shader_stage
 last_vue_stage(struct iris_context *ice)
 {
-   if (ice->shaders.prog[MESA_SHADER_GEOMETRY])
+   if (ice->shaders.uncompiled[MESA_SHADER_GEOMETRY])
       return MESA_SHADER_GEOMETRY;
 
-   if (ice->shaders.prog[MESA_SHADER_TESS_EVAL])
+   if (ice->shaders.uncompiled[MESA_SHADER_TESS_EVAL])
       return MESA_SHADER_TESS_EVAL;
 
    return MESA_SHADER_VERTEX;