mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
tgsi: simplify tgsi_shader_info::is_msaa_sampler checking
We assert that fullinst->Instruction.Texture != 0 above so no need to check it in the conditional. We also have the fullinst->Texture.Texture value in a local variable, so use it. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
86e1768c13
commit
5c85c3be26
1 changed files with 2 additions and 3 deletions
|
|
@ -208,9 +208,8 @@ scan_instruction(struct tgsi_shader_info *info,
|
|||
}
|
||||
|
||||
/* MSAA samplers */
|
||||
if (fullinst->Instruction.Texture &&
|
||||
(fullinst->Texture.Texture == TGSI_TEXTURE_2D_MSAA ||
|
||||
fullinst->Texture.Texture == TGSI_TEXTURE_2D_ARRAY_MSAA)) {
|
||||
if (target == TGSI_TEXTURE_2D_MSAA ||
|
||||
target == TGSI_TEXTURE_2D_ARRAY_MSAA) {
|
||||
info->is_msaa_sampler[src->Register.Index] = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue