mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 15:18:09 +02:00
microsoft/clc: Fix wrap modes for inline samplers for integer textures
Fixes:ff05da7f("microsoft: Add CLC frontend and kernel/compute support to DXIL converter") Reviewed-By: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9138> (cherry picked from commitd773257012)
This commit is contained in:
parent
a98a386d13
commit
ba87319c94
2 changed files with 3 additions and 3 deletions
|
|
@ -4207,7 +4207,7 @@
|
|||
"description": "microsoft/clc: Fix wrap modes for inline samplers for integer textures",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "ff05da7f8dc4aa531704d48f718514e3b1fff45d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1213,8 +1213,8 @@ clc_to_dxil(struct clc_context *ctx,
|
|||
nir_foreach_variable_with_modes(var, nir, nir_var_uniform) {
|
||||
if (glsl_type_is_sampler(var->type) && var->data.sampler.is_inline_sampler) {
|
||||
int_sampler_states[sampler_id].wrap[0] =
|
||||
int_sampler_states[sampler_id].wrap[0] =
|
||||
int_sampler_states[sampler_id].wrap[0] =
|
||||
int_sampler_states[sampler_id].wrap[1] =
|
||||
int_sampler_states[sampler_id].wrap[2] =
|
||||
wrap_from_cl_addressing(var->data.sampler.addressing_mode);
|
||||
int_sampler_states[sampler_id].is_nonnormalized_coords =
|
||||
!var->data.sampler.normalized_coordinates;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue