diff options
author | Erik Faye-Lund <[email protected]> | 2020-02-04 12:20:36 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-14 10:51:46 +0000 |
commit | 7e80b03dd15eefb7250b994e311864e720b0b1bb (patch) | |
tree | 788b9aab65cb6a0e47e372b295d74ee2202b215a /src/gallium/drivers/zink/nir_to_spirv | |
parent | f43a3fc28ff8914e4a9391233dfc3b63454c6dac (diff) |
zink: do not use SpvDimRect
Vulkan doesn't support SpvDimRect. But we don't need to pass this at
all, as we already mark the sampler as un-normalized.
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3764>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3764>
Diffstat (limited to 'src/gallium/drivers/zink/nir_to_spirv')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index fa2c7b0bf94..9e516eae56d 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -369,7 +369,7 @@ type_to_dim(enum glsl_sampler_dim gdim, bool *is_ms) case GLSL_SAMPLER_DIM_CUBE: return SpvDimCube; case GLSL_SAMPLER_DIM_RECT: - return SpvDimRect; + return SpvDim2D; case GLSL_SAMPLER_DIM_BUF: return SpvDimBuffer; case GLSL_SAMPLER_DIM_EXTERNAL: |