lock_array
dEQP-GLES31.functional.program_interface_query.shader_storage_block.resource_list.block_array_single_element
v2:
- Change the position of rname_has_array_index_zero to avoid an out-of-bounds
read. Reported by Tapani Pälli.
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: tapani.pa...@int
lock_array
dEQP-GLES31.functional.program_interface_query.shader_storage_block.resource_list.block_array_single_element
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/main/shader_query.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp
.functional.program_interface_query.shader_storage_block.active_variables.block_array
Signed-off-by: Samuel Iglesias Gonsalvez
---
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
index eb71fdd..b7e25fe 100644
and GetProgramResourceName() (Tapani)
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Tapani Pälli
---
src/mesa/main/shader_query.cpp | 43 +-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_
298 dEQP-GLES31.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
---
src/glsl/ir.h| 1 +
src/glsl/link_atom
e_block.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
Cc: Tapani Pälli
---
src/mesa/main/program_resource.c | 6 ++---
src/mesa/main/shader_query.cpp | 58 +++-
src/mesa/ma
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
---
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
---
src/glsl/linker.cpp | 34 +-
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a
consecutive 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
---
src/mesa/drivers/dri/i965/brw_eu_emit.c | 12 +++-
1 file changed, 11 insertio
0] See attachment at
http://lists.freedesktop.org/archives/mesa-dev/2015-October/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 mem
Fixes a regression added by bb5aeb854915ba67abc56257f830d002c956439e.
Signed-off-by: Samuel Iglesias Gonsalvez
---
Piglit test that checks the regression:
http://patchwork.freedesktop.org/patch/62183/
src/glsl/lower_ubo_reference.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion
.*
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/src/glsl/builtin_functions.cpp
+++ b/src/glsl
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
Return the number of values written.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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
index 3bf4311..ecae3de 100644
array_stride > 0. Use it
instead of is_unsized_array flag (Timothy).
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/mesa/main/shader_query.cpp
index 3748
td430.row_major_mat2x3
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x4
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/glsl/lower_ubo_reference.cpp | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/glsl/lower_ubo_reference.cpp b/src
hader storage block is instanced
- Write auxiliary function to do the check.
Signed-off-by: Samuel Iglesias Gonsalvez
Tested-by: Tapani Pälli
---
src/mesa/main/shader_query.cpp | 51 +-
1 file changed, 50 insertions(+), 1 deletion(-)
diff --git a/src/mesa
nsized_array flag
(Timothy)
Signed-off-by: Samuel Iglesias Gonsalvez
---
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..3748b10 100644
--- a/src/mesa/main/sha
Use found_top_level_array_stride instead of found_top_level_array_size.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/mesa/main/shader_query.cpp
index
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Timothy Arceri
---
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.cpp b/src/glsl/link_uniforms.cpp
index 93a7df6..ef4a303
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Timothy Arceri
---
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 a1c80b1..9f8adcb 100644
--- a/src/mesa/main/shader_query.cpp
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Timothy Arceri
---
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_reference.cpp
index 183435e..f4150df 100644
--- a/src/glsl
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Timothy Arceri
---
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..3c7d257 100644
--- a/src/glsl/glsl_types.cpp
+++ b/src/glsl
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 s
esias Gonsalvez
Tested-by: Tapani Pälli
v2:
- Fix check when the shader storage block is instanced
- Write auxiliary function to do the check.
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/main/shader_query.cpp | 51 +-
1 file changed, 50 insertions(
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
Return the number of values written.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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
index 17076b8..1dbe319 100644
v2:
- Fix uniform's is_unsized_array flag assignment
Signed-off-by: Samuel Iglesias Gonsalvez
---
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 50fe76b..367de7d 1
LES31.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 Igl
---
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 gl_uniform_sto
td430.row_major_mat2x3
dEQP-GLES31.functional.ssbo.layout.instance_array_basic_type.std430.row_major_mat2x4
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/glsl/lower_ubo_reference.cpp | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/glsl/lower_ubo_reference.cpp b/src
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
---
src/mesa/main/shader_query.cpp | 6 +-
1 file changed, 5 insertions
(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
---
src/mesa/main/shader_query.cpp | 6 +-
1 file changed, 5 insertions(+),
Use found_top_level_array_stride instead of found_top_level_array_size.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/mesa/main/shader_query.cpp
index
disabled
component.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/src/glsl/lower_ubo_reference.cpp
If the string being copied is not NULL-terminated the result of
strlen() is undefined.
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/util/ralloc.c | 5 +
src/util/strndup.c | 6 ++
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/util/ralloc.c b/src/util/ralloc.c
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
Tested-by: Tapani Pälli
Cc: Francisco Jerez
---
src/mesa/d
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
---
src/glsl/linker.cpp | 58 +
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
Cc: Ilia Mirkin
---
src/glsl/glsl_types.cpp | 1 +
1 file changed, 1 insert
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
---
src/mesa/main/shader_query.cpp | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main
array element."
Signed-off-by: Samuel Iglesias Gonsalvez
---
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 100644
--- a/src/glsl/linker.cpp
+++
Signed-off-by: Samuel Iglesias Gonsalvez
---
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.0.html
@@ -45,6 +45,7 @@ Note
NumUniformBlocks also counts shader storage blocks.
NumUniformBlocks variable will be renamed in a later patch to avoid
misunderstandings.
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/main/shaderapi.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/mesa
Because it counts shader storage blocks too.
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/glsl/link_uniform_initializers.cpp | 2 +-
src/glsl/link_uniforms.cpp | 4 ++--
src/glsl/linker.cpp| 10 +-
src/glsl
Signed-off-by: Samuel Iglesias Gonsalvez
---
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
@@ -2836,7 +2836,7 @@ check_resources
Signed-off-by: Samuel Iglesias Gonsalvez
---
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 100644
--- a/src/mesa/main/tests
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
implementati
his 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
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 +
src/glsl/nir/nir_intrinsics.h | 2 +-
src/glsl/nir/nir_lower_ph
No functional changes.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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
index 97c79fa..b4525eb 100644
---
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 row_ma
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
Reviewed-by: Jordan Justen
---
src/glsl/ast.h | 1 +
src/glsl/ast_to_hir.cpp | 21
v2:
- Remove inst->regs_written assignment as the instruction only
writes to one register.
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 24
1 file changed, 24 insertions(+)
diff --git a/src/mesa/drivers/dri/i
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 a/src/
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
Reviewed-by: Jordan Justen
---
src/glsl/glsl_types.cpp | 207
cpp instead
of using state->ARB_shader_storage_buffer_object_enable (Tapani).
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/glsl/ast_function.cpp | 13 +
src/glsl/ir.cpp | 7 +++
src/gls
ls 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
Reviewed-by: Jordan Justen
---
src/glsl
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
Reviewed-by: Jordan Justen
---
src/glsl/link_uniform_blocks.cpp | 19
Fix OpenGL ES 3.1 conformance tests: advanced-readWrite-case1-vsfs
and advanced-matrix-vsfs.
Signed-off-by: Samuel Iglesias Gonsalvez
Tested-by: Tapani Pälli
Cc: Francisco Jerez
---
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 9 +
1 file changed, 9 insertions(+)
diff --git a/src
From: Iago Toral Quiroga
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 completely
ignored in
From: Iago Toral Quiroga
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 don't go beyond
From: Iago Toral Quiroga
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:
dEQP-GLES3.functional.shaders.scoping.valid.function_parameter_hid
From: Eduardo Lima Mitev
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 returns a user error
From: Iago Toral Quiroga
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 insertions(+)
diff
From: Iago Toral Quiroga
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 8b170c2..4a6ce71 10064
From: Iago Toral Quiroga
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
information (currently, Mes
From: Iago Toral Quiroga
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 different shaders th
From: Eduardo Lima Mitev
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 supported
format
From: Eduardo Lima Mitev
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.
Fixes 2 dEQP tests:
From: Iago Toral Quiroga
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, so this would work
From: Iago Toral Quiroga
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 RENDERBUFFER, identifying
From: Antia Puentes
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 an active uniform
blo
From: Eduardo Lima Mitev
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
internalformat".
It is curren
From: Iago Toral Quiroga
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 breaking a few dEQP test
From: Iago Toral Quiroga
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 shader. This is probab
nding reverts to 0 (the default framebuffer object).
Fixes:
dEQP-GLES3.functional.lifetime.delete_bound.transform_feedback
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/main/transformfeedback.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mesa
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
tps://bugs.freedesktop.org/show_bug.cgi?id=91290
Signed-off-by: Samuel Iglesias Gonsalvez
Cc: Anuj Phogat
Cc: Carl Worth
---
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/glsl/glcpp/glcpp-parse.y
index 7ef4dfd..dd5ec2a 100
v2:
- Add tessellation shader constants support
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/get.c
index 56cc3f2
v2:
- Add tessellation shader constants assignment
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/brw_context.c
index
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
---
src/glsl/nir/nir_opt_peephole_ffma.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/glsl
apply to arrays of interface blocks but just to array
variables.
Signed-off-by: Samuel Iglesias Gonsalvez
Reviewed-by: Tapani Pälli
---
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_resou
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
---
v2
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
---
configure.ac
UIRED)
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 Iglesi
ng to fail 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
---
configure.ac | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
di
id.overload_builtin_function_vertex
dEQP-GLES3.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 regr
esktop.org/show_bug.cgi?id=88335
Signed-off-by: Samuel Iglesias Gonsalvez
Tested-by: Vinson Lee
---
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/configure.ac
@@ -73,7 +73,13 @@ AX
Signed-off-by: Samuel Iglesias Gonsalvez
Reviewed-by: Dave Airlie
---
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 +76,7 @@ if test "x$INDENT"
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
---
src/mesa/main/format_pack.h | 3
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 Gons
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
---
src/glsl/ir.cpp | 1 +
src/glsl/ir.h | 1 +
src/glsl/linker.cpp | 39 ++-
3 files changed, 28
It should compare with it's own size.
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/brw_eu_comp
generated.
This patch changes the previous returned GL_INVALID_VALUE to
GL_INVALID_OPERATION.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76894
Cc: mesa-sta...@lists.freedesktop.org
Reviewed-by: Anuj Phogat
Signed-off-by: Samuel Iglesias Gonsalvez
---
src/mesa/main/fbobject.c
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
---
src/mesa/main/fbobject.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff
://bugs.freedesktop.org/show_bug.cgi?id=68365
Signed-off-by: Samuel Iglesias Gonsalvez
---
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/brw_blorp_blit.cpp
index
ctave plot 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
---
src/mesa/drivers/dri/i965/gen6_sf_state.c |
98 matches
Mail list logo