mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
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 <kenneth@whitecape.org>
This commit is contained in:
parent
30038dd5ec
commit
80c2c17e1e
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue