mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
r600: fix copy/paste bug for sampleMaskIn workaround
The sampleMaskIn workaround (b936f4d1ca)
tries to figure out if the shader is running at per-sample frequency, but
there's a typo bug so it will only recognize per-sample linar inputs,
not per-sample perspective ones.
Spotted by Eric Engestrom <eric.engestrom@intel.com>
Fixes: b936f4d1ca0d2ab1e828a "r600: partly fix sampleMaskIn value"
This commit is contained in:
parent
edb7890750
commit
53959fcbd8
1 changed files with 1 additions and 1 deletions
|
|
@ -1247,7 +1247,7 @@ static int allocate_system_value_inputs(struct r600_shader_ctx *ctx, int gpr_off
|
|||
tgsi_parse_free(&parse);
|
||||
|
||||
if (ctx->info.reads_samplemask &&
|
||||
(ctx->info.uses_linear_sample || ctx->info.uses_linear_sample)) {
|
||||
(ctx->info.uses_linear_sample || ctx->info.uses_persp_sample)) {
|
||||
inputs[1].enabled = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue