mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
st/mesa: fix handling of vertex array double inputs
The is_double_vertex_input needs to be set for arrays of doubles as
well.
Fixes KHR-GL45.enhanced_layouts.varying_array_locations
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit ae53bff8b1)
This commit is contained in:
parent
1960d8f0dd
commit
289b2a8788
1 changed files with 3 additions and 1 deletions
|
|
@ -2751,7 +2751,9 @@ glsl_to_tgsi_visitor::visit(ir_dereference_variable *ir)
|
|||
|
||||
this->result = st_src_reg(entry->file, entry->index, var->type,
|
||||
entry->component, entry->array_id);
|
||||
if (this->shader->Stage == MESA_SHADER_VERTEX && var->data.mode == ir_var_shader_in && var->type->is_double())
|
||||
if (this->shader->Stage == MESA_SHADER_VERTEX &&
|
||||
var->data.mode == ir_var_shader_in &&
|
||||
var->type->without_array()->is_double())
|
||||
this->result.is_double_vertex_input = true;
|
||||
if (!native_integers)
|
||||
this->result.type = GLSL_TYPE_FLOAT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue