mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
i965: get PrimitiveMode from the program rather than the shader struct
This is more consistent with what we do elsewhere and will allow us to only cache one of the values in the shader cache. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
82e0bbd01a
commit
644e015f0b
1 changed files with 2 additions and 3 deletions
|
|
@ -393,9 +393,8 @@ brw_tcs_precompile(struct gl_context *ctx,
|
|||
if (brw->gen < 8)
|
||||
key.input_vertices = shader_prog->TessCtrl.VerticesOut;
|
||||
|
||||
key.tes_primitive_mode =
|
||||
shader_prog->_LinkedShaders[MESA_SHADER_TESS_EVAL] ?
|
||||
shader_prog->TessEval.PrimitiveMode : GL_TRIANGLES;
|
||||
key.tes_primitive_mode = brw->tess_eval_program ?
|
||||
brw->tess_eval_program->PrimitiveMode : GL_TRIANGLES;
|
||||
|
||||
key.outputs_written = prog->OutputsWritten;
|
||||
key.patch_outputs_written = prog->PatchOutputsWritten;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue