.functional.program_interface_query.shader_storage_block.active_variables.block_array
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/program_resource.c | 21 -
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c
array
dEQP-GLES31.functional.program_interface_query.shader_storage_block.resource_list.block_array_single_element
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
etProgramResourceName() (Tapani)
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Tapani Pälli <tapani.pa...@intel.com>
---
src/mesa/main/shader_query.cpp | 43 +-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --
.functional.atomic_counter.* tests and
9 dEQP-GLES31.functional.synchronization.inter_call.
without_memory_barrier.ssbo_atomic_counter_mixed_dispatch_*
tests for i965 driver.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/ir.h| 1 +
sr
ck.resource_list.block_array
dEQP-GLES31.functional.program_interface_query.shader_storage_block.resource_list.block_array_single_element
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Tapani Pälli <tapani.pa...@intel.com>
---
src/mesa/main/program_resource.c | 6 ++---
src/mesa/main/shader_query.cpp | 58 +++
EQP-GLES31.functional.program_interface_query.shader_storage_block.buffer_data_size.named_block
dEQP-GLES31.functional.program_interface_query.shader_storage_block.buffer_data_size.unnamed_block
dEQP-GLES31.functional.program_interface_query.shader_storage_block.buffer_data_size.block_array
Signed-off-by: Samuel Iglesias Gonsalvez <sigles.
ecutive SEND at the end of
the store table. That should be enough to avoid this invalid memory
access problem.
Fixes ~120 dEQP-GLES31.functional.ssbo.* tests.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/drivers/dri/i965/brw_eu_emit.c | 12 +++-
tober/097183.html
[1] $ git clone -b dEQP-functional-ssbo-fixes-v1 \
https://github.com/Igalia/mesa.git
Samuel Iglesias Gonsalvez (1):
i965: book space at the end of p->store for SEND opcodes to avoid
invalid memory access
src/mesa/drivers/dri/i965/brw_eu_emit.c | 12 +++-
1 f
dEQP-GLES31.functional.ssbo.layout.random.all_per_block_buffers.33
dEQP-GLES31.functional.ssbo.layout.random.all_shared_buffer.3
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/linker.cpp | 34 +-
1 file changed, 29 insertions
Fixes a regression added by bb5aeb854915ba67abc56257f830d002c956439e.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
Piglit test that checks the regression:
http://patchwork.freedesktop.org/patch/62183/
src/glsl/lower_ubo_reference.cpp | 2 +-
1 file chan
.*
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/builtin_functions.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index f0f6be2..aae25f8 100644
--- a/sr
array_basic_type.std430.row_major_mat2
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x3
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x4
v2:
- Add spec quote in both commit log and code (Timothy)
Signed-off-by: Samuel Igl
storage block is instanced
- Write auxiliary function to do the check.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Tested-by: Tapani Pälli <tapani.pa...@intel.com>
---
src/mesa/main/shader_query.cpp | 51 +-
1 file changed, 5
d_array flag
(Timothy)
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index 56f990b..3748b
Use found_top_level_array_stride instead of found_top_level_array_size.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mes
an array_stride > 0. Use it
instead of is_unsized_array flag (Timothy).
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/
Return the number of values written.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
.row_major_mat2x3
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x4
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/lower_ubo_reference.cpp | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/glsl/lower_ubo_referen
Return the number of values written.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
to an array of basic types,
the value one is written to . If the variable is a shader
storage block member in an array with no declared size, the value zero
is written to .
v2:
- Unsized arrays of arrays have an array size different than zero
Signed-off-by: Samuel Iglesias Gonsalvez <sig
v2:
- Fix uniform's is_unsized_array flag assignment
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/ir_uniform.h | 5 +
src/glsl/link_uniforms.cpp | 2 ++
2 files changed, 7 insertions(+)
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Timothy Arceri <t_arc...@yahoo.com.au>
---
src/glsl/lower_ubo_reference.cpp | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/glsl/lower_ubo_reference.cpp b/src/glsl/lower_ubo_r
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Timothy Arceri <t_arc...@yahoo.com.au>
---
src/glsl/glsl_types.cpp | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
index c53ba20..3c
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Timothy Arceri <t_arc...@yahoo.com.au>
---
src/glsl/link_uniforms.cpp | 2 +-
src/glsl/lower_ubo_reference.cpp | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/glsl/link_uniforms.cp
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Timothy Arceri <t_arc...@yahoo.com.au>
---
src/mesa/main/shader_query.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index a1c8
Hello,
This series adds std430 layour support for Arrays of Arrays.
It should be applied on top of latest Timothy's work:
http://lists.freedesktop.org/archives/mesa-dev/2015-September/094652.html
Piglit patches will be sent soon.
Thanks,
Sam
Samuel Iglesias Gonsalvez (4):
glsl: add std430
Gonsalvez <sigles...@igalia.com>
Tested-by: Tapani Pälli <tapani.pa...@intel.com>
v2:
- Fix check when the shader storage block is instanced
- Write auxiliary function to do the check.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/sha
(and
name length) of the active variables. When it is an unsized array,
we want to indicate it has one active element so the returned name
would have "[0]" at the end.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 6 +-
1
Use found_top_level_array_stride instead of found_top_level_array_size.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mes
.functional.ssbo.layout.single_basic_array.std140.column_major_mat3x4
dEQP-GLES31.functional.ssbo.layout.single_basic_array.std430.mat3x4
dEQP-GLES31.functional.ssbo.layout.single_basic_array.std430.row_major_mat3x4
dEQP-GLES31.functional.ssbo.layout.single_basic_array.std430.column_major_mat3x4
Signed-off-by: Samuel Iglesias
.row_major_mat2x3
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x4
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/lower_ubo_reference.cpp | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/glsl/lower_ubo_referen
to an array of basic types,
the value one is written to . If the variable is a shader
storage block member in an array with no declared size, the value zero
is written to .
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 6 +-
---
src/glsl/ir_uniform.h | 5 +
src/glsl/link_uniforms.cpp | 2 ++
2 files changed, 7 insertions(+)
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h
index 858a7da..6954759 100644
--- a/src/glsl/ir_uniform.h
+++ b/src/glsl/ir_uniform.h
@@ -199,6 +199,11 @@ struct
disabled
component.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/lower_ubo_reference.cpp | 6 ++
1 file changed, 6 insertions(+)
diff --git a/src/glsl/lower_ubo_reference.cpp b/src/glsl/lower_ubo_reference.cpp
index e581306..247620e 100644
--- a/sr
Fix OpenGL ES 3.1 conformance tests: advanced-readWrite-case1-vsfs
and advanced-matrix-vsfs.
v2:
- Fix SHADER_OPCODE_MEMORY_FENCE emission and the allocation of 'tmp'
(Francisco).
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Tested-by: Tapani Pälli <tapani.pa...@
array element."
v2:
- Simplify 'if' conditions and return true if it is not a buffer
variable, because these rules only apply to buffer variables (Timothy).
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl
From GLSL 1.50 spec, section 4.1.8 "Structures":
"Structures must have at least one member declaration."
So the base_alignment should be higher than zero.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Cc: Ilia Mirkin <imir...@alum.mit.edu>
---
If the string being copied is not NULL-terminated the result of
strlen() is undefined.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/util/ralloc.c | 5 +
src/util/strndup.c | 6 ++
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/util/ra
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92124
Cc: Jose Fonseca
---
I tested it on MSVC but not MinGW. I hope I did not something wrong.
src/mesa/main/shader_query.cpp | 1 +
src/util/Makefile.sources | 1 +
src/util/strndup.c | 47
);
^
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92124
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shader_query.cpp | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/mes
Because it counts shader storage blocks too.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/link_uniform_initializers.cpp | 2 +-
src/glsl/link_uniforms.cpp | 4 ++--
src/glsl/linker.cpp| 10 +
array element."
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/linker.cpp | 56 +
1 file changed, 56 insertions(+)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index be04f5b..8cc9350 10064
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
docs/relnotes/11.1.0.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/relnotes/11.1.0.html b/docs/relnotes/11.1.0.html
index e28fab6..c755c98 100644
--- a/docs/relnotes/11.1.0.html
+++ b/docs/relnotes/11.1.
NumUniformBlocks also counts shader storage blocks.
NumUniformBlocks variable will be renamed in a later patch to avoid
misunderstandings.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/shaderapi.c | 9 +++--
1 file changed, 7 insertions(+), 2 del
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/linker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index d6a62bf..be04f5b 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/main/tests/dispatch_sanity.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp
b/src/mesa/main/tests/dispatch_sanity.cpp
index 0ddda59..b19c6d7
From: Iago Toral Quiroga
v2:
- Fix ssbo loads with boolean variables.
v3:
- Simplify the changes (Kristian)
Reviewed-by: Connor Abbott
---
src/glsl/nir/glsl_to_nir.cpp| 66 +
This patch moves nir_instr_insert_after_cf_list call into each case
in the intrinsics switch at nir_visitor::visit(ir_call *ir) and
define a nir_dest variable which will be used when handling
ir->return_deref after the switch.
This patch simplifies the code for nir_intrinsic_load_ssbo
ion of this patch.
Sam
Iago Toral Quiroga (1):
nir: Implement __intrinsic_load_ssbo
Samuel Iglesias Gonsalvez (1):
nir: modify the instruction insertion in nir_visitor::visit(ir_call
*ir)
src/glsl/nir/glsl_to_nir.cpp| 79 +++--
src/glsl/nir/nir_intrinsic
v2:
- Fix a missing check in has_layout()
v3:
- Mention shader storage block in error message for layout qualifiers
(Kristian).
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.jus...@intel.com>
---
src/glsl/ast.h
v2:
- Remove inst->regs_written assignment as the instruction only
writes to one register.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 24
1 file changed, 24 insertions(+)
diff --git a/src/mes
They are used to calculate size, base alignment and array stride values
for a glsl_type following std430 rules.
v2:
- Paste OpenGL 4.3 spec wording as it mentions stride of array. (Jordan)
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Reviewed-by: Jordan Justen <jor
No functional changes.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/glsl_types.cpp | 140
1 file changed, 70 insertions(+), 70 deletions(-)
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
---
src/glsl/glsl_types.cpp | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
index b4525eb..07d7248 100644
--- a/src/glsl/glsl_types.cpp
+++ b/src/glsl/glsl_types.cpp
@@ -1351,7 +1351,7 @@ glsl_type::std140_size(bool
cpp instead
of using state->ARB_shader_storage_buffer_object_enable (Tapani).
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
---
src/glsl/ast_function.cpp | 13 +
src/glsl/ir.cpp | 7 +++
s
to std430_array_stride().
v3:
- Simplify size_mul change for std430's case (Jordan)
- Fix commit log lines length (Jordan)
- Pass 'packing' instead of 'is_std430' to emit_access() (Kristian)
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Reviewed-by: Jordan Justen <jor
No functional changes.
---
src/glsl/ast.h | 5 ++
src/glsl/glsl_parser.yy | 127 +---
src/glsl/glsl_parser_extras.cpp | 122 ++
3 files changed, 128 insertions(+), 126 deletions(-)
diff --git
Otherwise, generate a link time error as per the
ARB_shader_storage_buffer_object spec.
v2:
- Fix error message (Jordan)
v3:
- Move std140_size() changes to its own patch (Kristian)
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Reviewed-by: Jordan Justen <jor
Fix OpenGL ES 3.1 conformance tests: advanced-readWrite-case1-vsfs
and advanced-matrix-vsfs.
Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com>
Tested-by: Tapani Pälli <tapani.pa...@intel.com>
Cc: Francisco Jerez <curroje...@riseup.net>
---
src/mesa/drivers/dri/i96
From: Iago Toral Quiroga ito...@igalia.com
Notice that the spec requires that a default precision has been set for every
type used by a shader that can use a precision qualifier and does not have a
predefined precision, however, at the moment, Mesa only checks this for floats
in the fragment
From: Antia Puentes apuen...@igalia.com
Commit 1ca25ab (glsl: Do not eliminate 'shared' or 'std140' blocks
or block members) considered as active 'shared' and 'std140' uniform
blocks and uniform block arrays, but did not include the block array
elements. Because of that, it was possible to have
From: Eduardo Lima Mitev el...@igalia.com
Page 161 of the OpenGL-ES 3.1 (PDF) spec, and page 207 of the OpenGL 4.5 (PDF),
both on section '8.6. ALTERNATE TEXTURE IMAGE SPECIFICATION COMMANDS', states:
An INVALID_ENUM error is generated if an invalid value is specified for
From: Iago Toral Quiroga ito...@igalia.com
We do this in two steps: first we clip the dst rect and adjust the src
rect accordingly. Then we do it the other way around. In both passes
the adjustment part involves multiplying by a scale factor that can lead
to a small precision loss. This is
From: Iago Toral Quiroga ito...@igalia.com
From section 9.2. Binding and Managing Framebuffer Objects:
Upon successful return from Get*FramebufferAttachmentParameteriv, if
pname is FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, then params will contain
one of NONE, FRAMEBUFFER_DEFAULT, TEXTURE, or
qualifiers to the symbol
table
glsl: Add precision information to ir_variable
glsl: Add link time checks for GLSL precision qualifiers
glsl: Precision qualifiers are not allowed on structs
Samuel Iglesias Gonsalvez (1):
mesa: fix deletion of inactive bound transform feedback object
src
reverts to 0 (the default framebuffer object).
Fixes:
dEQP-GLES3.functional.lifetime.delete_bound.transform_feedback
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/main/transformfeedback.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git
From: Iago Toral Quiroga ito...@igalia.com
We will need this later on when we implement proper support for precision
qualifiers in the drivers and also to do link time checks for uniforms as
indicated by the spec.
This patch also adds compile-time checks for variables without precision
From: Iago Toral Quiroga ito...@igalia.com
As the comment in precision_qualifier_allowed() says, they are only allowed
for float, integer and sampler types.
---
src/glsl/ast_to_hir.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index
From: Iago Toral Quiroga ito...@igalia.com
These have scoping rules that match the ones defined for other things such
as variables, so we want them in the symbol table.
---
src/glsl/glsl_symbol_table.cpp | 24
src/glsl/glsl_symbol_table.h | 2 ++
2 files changed, 26
From: Iago Toral Quiroga ito...@igalia.com
Currently, we only consider precision qualifiers at compile-time. This patch
adds precision information to ir_variable so we can also do link time checks.
Specifically, from the GLSL ES3 spec, 4.5.3 Precision Qualifiers:
The same uniform declared in
From: Iago Toral Quiroga ito...@igalia.com
So they can hide declarations with the same name in other scopes.
Otherwise we get a parsing error for things like:
struct S { int val; };
int func (int S) { return S; }
Fixes the following 2 dEQP tests:
From: Eduardo Lima Mitev el...@igalia.com
Currently, glTexSubImageXD attempt to resolve the texture object
(by calling _mesa_get_current_tex_object()) before validating the given
target. However, that method explicitly states that target must have been
validated before calling it, so it never
From: Eduardo Lima Mitev el...@igalia.com
Argument validation for glTexSubImageXD is missing a check of format and type
against texture object's internal format when profile is OpenGL-ES 3.0+.
This patch also groups together all format and type checks into a single
block of code for clarity.
From: Eduardo Lima Mitev el...@igalia.com
Page 68, section 7.2 'Shader Binaries of the of the OpenGL ES 3.1,
and page 88 of the OpenGL 4.5 specs state:
An INVALID_VALUE error is generated if count or length is negative.
An INVALID_ENUM error is generated if binaryformat is not a
From: Iago Toral Quiroga ito...@igalia.com
We were doing this for all variables in a declaration list, but not
when there was just a single declaration. As a consequence, when we
used a single variable declaration to redeclare a type that existed
in a previous scope we would get a parsing error,
From: Iago Toral Quiroga ito...@igalia.com
Shaders with excessive number of attributes (16) can produce a crash
due to buffer overflow in assign_attribute_or_color_locations. The
overflow can happen because we declare a fixed size array that can hold
up to 16 attributes and we don't check that we
From: Iago Toral Quiroga ito...@igalia.com
The GLSL ES spec specifies default precision qualifiers for certain types,
so populate the symbol table with these.
Notice that the desktop GLSL spec also indicates defaults for some types
but this is not really useful since precision qualifiers are
v2:
- Add tessellation shader constants support
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/main/get.c | 1 +
src/mesa/main/get_hash_params.py | 14 ++
2 files changed, 15 insertions(+)
diff --git a/src/mesa/main/get.c b/src/mesa/main
v2:
- Add tessellation shader constants assignment
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/drivers/dri/i965/brw_context.c | 12
1 file changed, 12 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_context.c
b/src/mesa/drivers/dri/i965
://bugs.freedesktop.org/show_bug.cgi?id=91290
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
Cc: Anuj Phogat anuj.pho...@gmail.com
Cc: Carl Worth cwo...@cworth.org
---
src/glsl/glcpp/glcpp-parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src
When we compute output swizzle, avoid reusing it as the source of the
computation because, otherwise, it could calculate it wrongly.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/glsl/nir/nir_opt_peephole_ffma.c | 5 -
1 file changed, 4 insertions(+), 1 deletion
but just to array
variables.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
Reviewed-by: Tapani Pälli tapani.pa...@intel.com
---
As this patch is already reviewed, my plan is to push it tomorrow,
just in case someone wants to say something about it.
src/mesa/main/program_resource.c
.
This patch fixes the following dEQP test:
dEQP-GLES3.functional.shaders.conversions.matrix_combine.float_bvec4_ivec2_bool_to_mat4x2_vertex
dEQP-GLES3.functional.shaders.conversions.matrix_combine.float_bvec4_ivec2_bool_to_mat4x2_fragment
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
This output variables gives more flexibility for future changes
in autoconf to detect if it is needed to auto-generate files and
check for the auto-generation dependencies.
It is still returning error when Python is not installed.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
anyway because
Python is not present when trying to autogenerate the files from mako
templates.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89328
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
configure.ac | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff
)
if test -n $PYTHON2 -a $foo_mako_found = no; then
AC_MSG_ERROR([Python mako module v$PYTHON_MAKO_MODULE not found])
fi
Which one do you prefer? Is there a better solution for this?
Thanks,
Sam
[0] https://bugs.freedesktop.org/show_bug.cgi?id=89328
Samuel Iglesias Gonsalvez (1
.functional.shaders.functions.invalid.overload_builtin_function_fragment
dEQP-GLES3.functional.shaders.functions.invalid.redefine_builtin_function_vertex
dEQP-GLES3.functional.shaders.functions.invalid.redefine_builtin_function_fragment
No piglit regressions.
Signed-off-by: Samuel Iglesias Gonsalvez
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
Reviewed-by: Dave Airlie airl...@redhat.com
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d4cf4b8..3c614ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7
/show_bug.cgi?id=88335
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
Tested-by: Vinson Lee v...@freedesktop.org
---
configure.ac | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 3c614ea..c72fe92 100644
--- a/configure.ac
+++ b
This will be used to unify code in pack.c.
v2:
- Modify pack_int_*() function generator to use c.datatype() and
f.datatype()
v3:
- Only autogenerate pack_int_*() functions for non-normalized integer
formats.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/main
This patch fixes the duplicated layout qualifier detection
for geometry shader's layout qualifiers.
Also it makes the detection code more legible by defining
allowed_duplicates_mask variable.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80778
Signed-off-by: Samuel Iglesias Gonsalvez
that the none-initializer shader was
modified and tells the linker that it can link it with a new shader.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/glsl/ir.cpp | 1 +
src/glsl/ir.h | 1 +
src/glsl/linker.cpp | 39 ++-
3
It should compare with it's own size.
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/drivers/dri/i965/brw_eu_compact.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c
b/src/mesa/drivers/dri/i965
...@gmail.com
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/main/fbobject.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 6c4f1b5..7669a0c 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa
renderbuffertarget, otherwise an INVALID_OPERATION error is
generated.
This patch changes the previous returned GL_INVALID_VALUE to
GL_INVALID_OPERATION.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76894
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa
aliased to 0.
This patch is based on Eric Anholt's work on bug 28832.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=28832
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60797
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/drivers/dri/i965/gen6_sf_state.c
://bugs.freedesktop.org/show_bug.cgi?id=68365
Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com
---
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 9 +
1 file changed, 9 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
b/src/mesa/drivers/dri/i965
97 matches
Mail list logo