mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
zink/spirv: more complete sampler-dim handling
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f26eab3175
commit
412e2aa23b
1 changed files with 8 additions and 4 deletions
|
|
@ -362,12 +362,16 @@ type_to_dim(enum glsl_sampler_dim gdim, bool *is_ms)
|
|||
return SpvDim1D;
|
||||
case GLSL_SAMPLER_DIM_2D:
|
||||
return SpvDim2D;
|
||||
case GLSL_SAMPLER_DIM_RECT:
|
||||
return SpvDimRect;
|
||||
case GLSL_SAMPLER_DIM_CUBE:
|
||||
return SpvDimCube;
|
||||
case GLSL_SAMPLER_DIM_3D:
|
||||
return SpvDim3D;
|
||||
case GLSL_SAMPLER_DIM_CUBE:
|
||||
return SpvDimCube;
|
||||
case GLSL_SAMPLER_DIM_RECT:
|
||||
return SpvDimRect;
|
||||
case GLSL_SAMPLER_DIM_BUF:
|
||||
return SpvDimBuffer;
|
||||
case GLSL_SAMPLER_DIM_EXTERNAL:
|
||||
return SpvDim2D; /* seems dodgy... */
|
||||
case GLSL_SAMPLER_DIM_MS:
|
||||
*is_ms = true;
|
||||
return SpvDim2D;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue