real reviews here but an Ack or two will be
appreciated.
I read them through and all look good, they also compile all ok on my box.
Acked-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
I noticed "util/strndup.h" is included only into linker.cpp and
shader_query.cpp of whi
In queryid_valid() fix handling of zero index.
CC: Robert Bragg <rob...@sixbynine.org>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/main/performance_query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/performanc
Oops. Original code can never fail on zero id but my patch is also
wrong. Please ignore this patch.
/Juha-Pekka
On 24.02.2017 15:10, Juha-Pekka Heikkila wrote:
In queryid_valid() index is unsigned so checking if it is less
than zero is useless. On queryid_to_index() is comment
saying 0
On both sides of the comment on what's being checked are exactly
same checks in different order. I took out ones before the comment
so comment can stay in place.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_eu_validate.c | 12 -
In queryid_valid() index is unsigned so checking if it is less
than zero is useless. On queryid_to_index() is comment
saying 0 is reserved to be invalid thus rule it out.
CC: Robert Bragg <rob...@sixbynine.org>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
s
I forgot to reply here on the list, I've just been talking about this
with Tapani face to face.
My series rebased and fixed on top of mesa master branch from yesterday
is here
https://github.com/juhapekka/juha_mesaexperimentals/tree/jenkins
Tapani was already taking rebased patches from
On 14.06.2016 18:03, Jason Ekstrand wrote:
On Tue, Jun 14, 2016 at 7:59 AM, Juha-Pekka Heikkila
<juhapekka.heikk...@gmail.com <mailto:juhapekka.heikk...@gmail.com>> wrote:
ralloc originally had had idea of using malloc but somehow
had slipped in calloc. Without these cha
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp| 2 +-
src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dr
Switch to use memory allocations which zero memory for places
where needed.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
src/compiler/glsl/glcpp/glcpp-parse.y | 4 ++--
src/compiler/glsl/link_uniform_blocks.c
rzalloc guarantee we get zeroed memory which is needed here.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/set.c b/src/util/set.c
index 99abefd..d64291d 100644
--- a/src/util
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp
b/src/mesa/drivers/dr
working.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/ralloc.c | 49 +
src/util/ralloc.h | 2 +-
2 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/src/util/ralloc.c b/src/util/ralloc.c
index 9
rzalloc guarantee we get zeroed memory which is needed here.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/hash_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/hash_table.c b/src/util/hash_table.c
index 4cfe3d9..9097e85
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/nir/nir.c | 6 +++---
src/compiler/nir/nir_opt_dce.c | 2 +-
src/compiler/nir/nir_phi_builder.c | 2 +-
src/compiler/nir/nir_search.c | 2 +-
src/compiler/nir/nir_to_ssa.c | 2 +
with these changes.
/Juha-Pekka
Juha-Pekka Heikkila (7):
glsl: Fix reading of uninitialized memory
util: use rzalloc instead on ralloc in _mesa_hash_table_create()
util: use rzalloc instead on ralloc in _mesa_set_create(()
nir: zero allocated memory where needed
i965/vec4: zero allocated
On 07.06.2016 20:26, Ian Romanick wrote:
On 06/07/2016 07:26 AM, Juha-Pekka Heikkila wrote:
ralloc originally had had idea of using malloc but somehow
had slipped in calloc. Without these changes rzalloc did double
job of zeroing the memory, first calloc and then memset.
Now change ralloc
On 07.06.2016 18:07, Ilia Mirkin wrote:
On Tue, Jun 7, 2016 at 10:26 AM, Juha-Pekka Heikkila
<juhapekka.heikk...@gmail.com> wrote:
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
src/mesa/driv
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp| 2 +-
src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp | 4 ++--
3 files changed, 4 inse
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp
b/src/mesa/drivers/dr
rzalloc guarantee we get zeroed memory which is needed here.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/set.c b/src/util/set.c
index 99abefd..d64291d 100644
--- a/src/util
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/nir/nir.c | 6 +++---
src/compiler/nir/nir_opt_dce.c | 2 +-
src/compiler/nir/nir_phi_builder.c | 2 +-
src/compiler/nir/nir_search.c | 2 +-
src/compiler/nir/nir_to_ssa.c | 2 +
rzalloc guarantee we get zeroed memory which is needed here.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/hash_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/hash_table.c b/src/util/hash_table.c
index 4cfe3d9..9097e85
working.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/util/ralloc.c | 31 +++
src/util/ralloc.h | 2 +-
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/src/util/ralloc.c b/src/util/ralloc.c
index 9526011..e27d835
Switch to use memory allocations which zero memory for places
where needed.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
src/compiler/glsl/glcpp/glcpp-parse.y | 4 ++--
src/compiler/glsl/link_uniform_blocks.c
now all
piglit tests are returning same results as without this set.
Tapani Pälli did earlier point out there were some problems with different
setups so this anyway have to be tested well if it was ever to be applied
on mesa master branch.
/Juha-Pekka
Juha-Pekka Heikkila (7):
util: Fix ralloc
base_mrf is unsigned, checking if its greater or equal to zero will
not fail.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dr
There seemed to be missing one break in nested switchcases.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/nir/nir_search.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c
index dc53a90..d
if brw_meta_stencil_blit() errored at wrong place 'target' would
be uninitialized and cause random behaviour on leaving the funtion.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c | 2 +-
1 file changed, 1 insertion
Initialize drawFb to NULL in _mesa_meta_CopyImageSubData_uncompressed()
if getting readFb fails uninitialized drawFb will cause randomness
on cleanup.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/common/meta_copy_image.c | 2 +-
1 file chan
These are just fixes for error paths.
Juha-Pekka Heikkila (2):
meta: Avoid random memory access on error
meta: initialize values to avoid random behaviour on error path
src/mesa/drivers/common/meta_copy_image.c | 2 +-
src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c | 2 +-
2
Just check miptree_create() returned other than NULL as everywhere
else in the file.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dr
Check _mesa_new_parameter_list() returned other than null.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_link.cpp | 4
src/mesa/main/ff_fragment_shader.cpp | 6 --
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git
Look after calloc give memory address.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/compiler/glsl/ir_variable_refcount.cpp | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/compiler/glsl/ir_variable_refcount.cpp
b/src/compile
I'm thinking these things maybe could be wrapped up inside something like
"#ifdef windows" or so in the future. At least for Android and Linux these
are normally quite useless.
/Juha-Pekka
Juha-Pekka Heikkila (2):
i965: in brw_link_shader() react to low memory
glsl: Check for nu
intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
Cc: Kenneth Graunke <kenn...@whitecape.org>
---
For a release build, I saw the code size shrink by 64 bytes.
src/util/ralloc.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --g
Look after _mesa_meta_setup_sampler() return value.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/common/meta_blit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/common/meta_blit.c
b/src/mesa/drivers/common/meta_blit.c
small comment on patch 2, otherwise these are
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
/Juha-Pekka
On 07.12.2015 11:29, Tapani Pälli wrote:
This will be used for validating SSO pipeline where all active stages
in linked programs should be in use when rendering.
On 07.12.2015 11:29, Tapani Pälli wrote:
This will be used for validating SSO pipeline where all active stages
in linked programs should be in use when rendering.
Signed-off-by: Tapani Pälli
---
src/mesa/main/mtypes.h | 2 ++
src/mesa/main/pipelineobj.c | 39
match_explicit_outputs_to_inputs() cannot get null inputs and if it ever did
triggering first null check would later in the function cause segfault.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
CC: timothy.arc...@collabora.com
---
src/glsl/linker.cpp | 10 +-
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
On 19.11.2015 13:12, Tapani Pälli wrote:
Previously pass did not traverse to those array dereferences which were
used as indices to arrays. This fixes Synmark2 Gl42CSCloth application
issues.
Signed-off-by: Tapani Pälli <
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
On 21.11.2015 10:02, Timothy Arceri wrote:
From: Timothy Arceri <timothy.arc...@collabora.com>
---
src/glsl/linker.cpp | 30 --
1 file changed, 12 insertions(+), 18 deletions(-)
diff
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
On 21.11.2015 10:02, Timothy Arceri wrote:
From: Timothy Arceri <timothy.arc...@collabora.com>
This will help avoid eliminating inputs/outputs needed by SSOs.
Cc: Gregory Hainaut <gregory.hain...@gmail.com&
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/mesa/drivers/dri/i965/brw_eu_validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_eu_validate.c
b/src/mesa/drivers/dri/i965/brw_eu_validate.c
index eb57962..2
This set was
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
On 28.10.2015 07:38, Jordan Justen wrote:
Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com>
Cc: Samuel Iglesias Gonsálvez <sigles...@igalia.com>
Cc: Iago Toral Quiroga <ito...@igali
These helpers are ran for same case the same loop. Here joined
their operation so the loop is ran just once. Also fixed
out-of-memory condition here.
v2: Make the loop simpler to read as per Tapani's suggestion
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
sr
These helpers are ran for same case the same loop. Here joined
their operation so the loop is ran just once. Also fixed
out-of-memory condition here.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>
---
src/glsl/linker.cpp
this set is
Reviewed-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
On 30.07.2015 17:14, Ian Romanick wrote:
All but the last of these patches have been sitting in one tree or
another for quite some time. All of these files were touched as part of
other work, but that work is stalled
On 06.05.2015 21:51, Rob Clark wrote:
On Wed, May 6, 2015 at 1:24 PM, Kenneth Graunke kenn...@whitecape.org wrote:
On Wednesday, May 06, 2015 03:35:27 PM Juha-Pekka Heikkila wrote:
rzalloc_size() call ralloc_size() to allocate memory. ralloc_size()
use calloc to get memory thus zeroing
rzalloc_size() call ralloc_size() to allocate memory. ralloc_size()
use calloc to get memory thus zeroing in rzalloc_size is not
necessary.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/util/ralloc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/util/ralloc.c
If _mesa_hash_table_create failed we'd get null pointer. Report
error and go away.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/formats.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index
name string is coming through API call, need to be careful with it.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/program_resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/program_resource.c b/src/mesa/main
I didn't find this being used anywhere.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/hash.c | 28
src/mesa/main/hash.h | 3 ---
2 files changed, 31 deletions(-)
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index
Just simple Klocwork found issues.
/Juha-Pekka
Juha-Pekka Heikkila (3):
mesa/main: Remove _mesa_HashClone()
mesa/main: avoid null access in format_array_table_init()
mesa/main: check for null in invalid_array_element_syntax()
src/mesa/main/formats.c | 10 ++
src/mesa
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/queryobj.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index fbccf3f..3adea35 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa
If there was memory allocation failure have to return away from
brw_new_buffer_object
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/intel_buffer_objects.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965
I guess this should not really be able to segfault but still it
seems to be able to during context creation.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/errors.c | 26 --
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git
context creation things
have not yet settled properly. After this set Waffle is able to
correctly report if there was failure during context creation,
before this set only possible result is segfault.
/Juha-Pekka
Juha-Pekka Heikkila (13):
mesa/meta: Don't free meta if it was never initialized
i965
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/common/meta.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index d2ab7b8..b2cb0d5 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/pipelineobj.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c
index 0fefa7d..73a6af8 100644
--- a/src/mesa/main/pipelineobj.c
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/transformfeedback.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/transformfeedback.c
b/src/mesa/main/transformfeedback.c
index 103011c..cbf8598 100644
--- a/src
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/varray.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 42e7f89..b65e6ef 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/brw_state_cache.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c
b/src/mesa/drivers/dri/i965/brw_state_cache.c
index 157b33d
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/program/prog_cache.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/mesa/program/prog_cache.c b/src/mesa/program/prog_cache.c
index ed93af7..eef5339 100644
--- a/src/mesa
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/texstate.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 1af9d47..d133104 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/performance_monitor.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/performance_monitor.c
b/src/mesa/main/performance_monitor.c
index 2d740da..292086c 100644
--- a/src
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/hash.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index d04cccd..533b1d1 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -152,7
Stop context creation if something failed. If something errored
during context creation we'd segfault. Now will clean up and
return error.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/shared.c | 66 +++---
1 file
These two patches
Reviewed-and-tested-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
On 04.05.2015 12:24, Iago Toral Quiroga wrote:
When we implemented the format conversion rewrite we forgot to handle
GL_COLOR_INDEX here, which needs special handling.
Fixes the following piglit test
: 6099580 - 6099443 (-0.00%)
instructions in affected programs: 47526 - 47389 (-0.29%)
helped:137
Ping.
Patch look ok to me.
Reviewed-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
___
mesa-dev mailing list
Took a moment to understand how this works but I think it does.
Reviewed-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
/Juha-Pekka
On 20.03.2015 22:58, Ian Romanick wrote:
From: Ian Romanick ian.d.roman...@intel.com
The only drivers that use this path are i915 and swrast. Both
src/egl/main/.install-mesa-links
src/glx/.install-mesa-links
src/mapi/.install-mesa-links
src/mesa/drivers/dri/i965/test_fs_cmod_propagation
src/mesa/drivers/dri/i965/test_fs_saturate_propagation
added to .gitignore files on their own directories
Signed-off-by: Juha-Pekka Heikkila
On 11.02.2015 19:02, Matt Turner wrote:
On Wed, Feb 11, 2015 at 6:37 AM, Juha-Pekka Heikkila
juhapekka.heikk...@gmail.com wrote:
There is no error path available thus instead of giving
realloc possibility to fail use new which will never
return null pointer and throws bad_alloc on failure
There is no error path available thus instead of giving
realloc possibility to fail use new which will never
return null pointer and throws bad_alloc on failure.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/brw_ir_allocator.h | 19
There is no error path available thus instead of giving
realloc possibility to fail use new which will never
return null pointer and throws bad_alloc on failure.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/brw_ir_allocator.h | 16
Check if we got requested temporary buffers and no NULL
pointer.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
In original patch there was missing '*'s for tmp_pbo and tmp_tex.
tmp_pbo will not get value if end up in rehashing and rehashing fails.
If tmp_tex does not get
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/glsl/nir/nir_print.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index 9c07950..c250850 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
Check we really got memory we were asking for.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/pack.c | 8
1 file changed, 8 insertions(+)
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index d1f368c..da2128d 100644
--- a/src/mesa/main/pack.c
Regular patch set about klocwork complaints to avoid segfaulting.
/Juha-Pekka
Juha-Pekka Heikkila (6):
mesa/main: in _mesa_unpack_color_index_to_rgba_ubyte() check allocated
pointers
nir: Check in register_*_instr() after null pointers
meta: react to NULL pointers
On 20.01.2015 21:43, Jason Ekstrand wrote:
On Mon, Jan 19, 2015 at 5:01 PM, Connor Abbott cwabbo...@gmail.com
mailto:cwabbo...@gmail.com wrote:
On Mon, Jan 19, 2015 at 4:04 PM, Jason Ekstrand
ja...@jlekstrand.net mailto:ja...@jlekstrand.net wrote:
I've got some specific
If _mesa_set_create() return null there is low memory.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/glsl/nir/nir_lower_vars_to_ssa.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/glsl/nir/nir_lower_vars_to_ssa.c
b/src/glsl/nir
Check if null pointers were given and bail out.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/common/meta_tex_subimage.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/drivers/common/meta_tex_subimage.c
b/src/mesa/drivers/common
Report memory error and bail out on failure.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/glsl/nir/nir_to_ssa.c | 20 +++-
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c
index 9c577fa
added calls to _mesa_error_no_memory() if memory allocation
returned null pointer.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/util/set.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/util/set.c b/src/util/set.c
index c3252a0..b0baccc
report error on null return value and bail out.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/glsl/nir/nir_print.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index 9c07950..79c4cd8 100644
--- a/src/glsl
Check returned texObj is not null. If texObj is null there is already
GL_INVALID_OPERATION error set.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/teximage.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main
On the same go remove src/mapi/shared-glapi/tests/.gitignore
and src/mapi/glapi/tests/.gitignore as useless.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mapi/.gitignore| 2 ++
src/mapi/glapi/tests/.gitignore| 1 -
src/mapi/shared-glapi
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/util/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/.gitignore b/src/util/.gitignore
index e945ecb..ecf4985 100644
--- a/src/util/.gitignore
+++ b/src/util/.gitignore
@@ -1 +1,2 @@
format_srgb.c
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/.gitignore
b/src/mesa/drivers/dri/i965/.gitignore
index cb66728..8eb9f4e 100644
--- a/src/mesa/drivers/dri/i965
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mapi/.gitignore | 1 +
1 file changed, 1 insertion(+)
create mode 100644 src/mapi/.gitignore
diff --git a/src/mapi/.gitignore b/src/mapi/.gitignore
new file mode 100644
index 000..060683b
--- /dev/null
+++ b/src/mapi
I didn't find this being used anywhere
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/glx/glxclient.h | 3 ---
src/glx/glxcmds.c | 17 -
2 files changed, 20 deletions(-)
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 74c19c4..aaca989
Stop context creation if something failed. If something errored
during context creation we'd segfault. Now will clean up and
return error.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/shared.c | 66 +++---
1 file
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/common/meta.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 87532c1..e106899 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/texstate.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index e0f0852..6f7d781 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa
Stop context creation if something failed. If something errored
during context creation we'd segfault. Now will clean up and
return error.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/shared.c | 63 ++
1 file
Declare local tables constant. Also added extra '32' at end of
width_for_reg to be future proof, cvt function which give
indexes to access here could already give index to reach place
number five now containing '32'.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/common/meta.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 87532c1..fab360d 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/brw_state_cache.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c
b/src/mesa/drivers/dri/i965/brw_state_cache.c
index cf42ada
in Piglit start to pass.
/Juha-Pekka
Juha-Pekka Heikkila (13):
mesa/meta: Don't free meta if it was never initialized
i965: If cache has no BO don't try to unmap BO
mesa/main: Don't go freeing texture data which was never allocated
mesa/main: Don't go freeing pipeline data which is not reserved
I guess this should not really be able to segfault but still it
seems to be able to during context creation.
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/main/errors.c | 26 --
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git
If there was memory allocation failure have to return away from
brw_new_buffer_object
Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com
---
src/mesa/drivers/dri/i965/intel_buffer_objects.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965
1 - 100 of 384 matches
Mail list logo