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:

committed by
Marge Bot

parent
6cfcf891c1
commit
9187af41b8
@@ -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
|
||||
|
Reference in New Issue
Block a user