mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
zink: allow lod for RECT sampler types
the RECT is a lie, so this is fine Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15804>
This commit is contained in:
parent
6cfcf891c1
commit
9187af41b8
1 changed files with 3 additions and 1 deletions
|
|
@ -3124,7 +3124,9 @@ tex_instr_is_lod_allowed(nir_tex_instr *tex)
|
|||
return (tex->sampler_dim == GLSL_SAMPLER_DIM_1D ||
|
||||
tex->sampler_dim == GLSL_SAMPLER_DIM_2D ||
|
||||
tex->sampler_dim == GLSL_SAMPLER_DIM_3D ||
|
||||
tex->sampler_dim == GLSL_SAMPLER_DIM_CUBE);
|
||||
tex->sampler_dim == GLSL_SAMPLER_DIM_CUBE ||
|
||||
/* RECT will always become 2D, so this is fine */
|
||||
tex->sampler_dim == GLSL_SAMPLER_DIM_RECT);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue