mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
ttn: add buffer texture type
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
aab3912f21
commit
fb07c49f48
1 changed files with 3 additions and 0 deletions
|
|
@ -999,6 +999,9 @@ static void
|
|||
setup_texture_info(nir_tex_instr *instr, unsigned texture)
|
||||
{
|
||||
switch (texture) {
|
||||
case TGSI_TEXTURE_BUFFER:
|
||||
instr->sampler_dim = GLSL_SAMPLER_DIM_BUF;
|
||||
break;
|
||||
case TGSI_TEXTURE_1D:
|
||||
instr->sampler_dim = GLSL_SAMPLER_DIM_1D;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue