mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
freedreno/a6xx: Don't set patch_vertices if no tess
Don't pollute the cache key with unused fields to avoid potentially generating pointless shader variants. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26149>
This commit is contained in:
parent
0976dfeca2
commit
a07705def6
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ get_program_state(struct fd_context *ctx, const struct pipe_draw_info *info)
|
|||
.gs = (struct ir3_shader_state *)ctx->prog.gs,
|
||||
.fs = (struct ir3_shader_state *)ctx->prog.fs,
|
||||
.clip_plane_enable = ctx->rasterizer->clip_plane_enable,
|
||||
.patch_vertices = ctx->patch_vertices,
|
||||
.patch_vertices = HAS_TESS_GS ? ctx->patch_vertices : 0,
|
||||
};
|
||||
|
||||
/* Some gcc versions get confused about designated order, so workaround
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue