mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
radeonsi: generate a color_two_side variant only if the shader reads colors
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
4bbbaaf191
commit
90cbbe1c12
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ static inline void si_shader_selector_key(struct pipe_context *ctx,
|
|||
sctx->current_rast_prim >= PIPE_PRIM_TRIANGLES_ADJACENCY;
|
||||
bool is_line = !is_poly && sctx->current_rast_prim != PIPE_PRIM_POINTS;
|
||||
|
||||
key->ps.color_two_side = rs->two_side;
|
||||
key->ps.color_two_side = rs->two_side && sel->info.colors_read;
|
||||
|
||||
if (sctx->queued.named.blend) {
|
||||
key->ps.alpha_to_one = sctx->queued.named.blend->alpha_to_one &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue