Module: Mesa
Branch: master
Commit: 80c2c17e1e5d93bef83fa711fab9d24c8de5bc36
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80c2c17e1e5d93bef83fa711fab9d24c8de5bc36

Author: Timothy Arceri <[email protected]>
Date:   Fri Jun 28 11:13:11 2019 +1000

iris: change last_vue_stage() to look at uncompiled shaders

This allows us to find the last vue stage before we have compiled
the shaders.

Reviewed-by: Kenneth Graunke <[email protected]>

---

 src/gallium/drivers/iris/iris_program.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/iris/iris_program.c 
b/src/gallium/drivers/iris/iris_program.c
index 8470b97a2e2..5f243c2065a 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to