mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
ac: image size builtin for GLSL_SAMPLER_DIM_3D
This is what radeonsi does. Fixes remaing piglit subtest in: ./bin/arb_shader_image_size-builtin --quick -auto -fbo Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
a29d63ecf7
commit
82adf53308
1 changed files with 2 additions and 1 deletions
|
|
@ -3814,7 +3814,8 @@ static LLVMValueRef visit_image_size(struct ac_nir_context *ctx,
|
|||
const nir_variable *var = instr->variables[0]->var;
|
||||
const struct glsl_type *type = instr->variables[0]->var->type;
|
||||
bool da = glsl_sampler_type_is_array(var->type) ||
|
||||
glsl_get_sampler_dim(var->type) == GLSL_SAMPLER_DIM_CUBE;
|
||||
glsl_get_sampler_dim(var->type) == GLSL_SAMPLER_DIM_CUBE ||
|
||||
glsl_get_sampler_dim(var->type) == GLSL_SAMPLER_DIM_3D;
|
||||
if(instr->variables[0]->deref.child)
|
||||
type = instr->variables[0]->deref.child->type;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue