Re: [Mesa-dev] [PATCH] radeon: remove unnecessary checks

2016-06-14 Thread Jakob Sinclair
0) rather than explicit. the same comment applies to your v2. Jan Thanks for the input. Now when I think about it again this is probably a bad change. Didn't think about the lower bound. So this patch should probably not be pushed. -- Mvh Jakob Sin

[Mesa-dev] [PATCH] V2 radeon: remove unnecessary checks

2016-06-14 Thread Jakob Sinclair
V2: Removed "- PIPE_SWIZZLE_X" for more consistency. CID: 1337954 Signed-off-by: Jakob Sinclair --- src/gallium/drivers/radeon/r600_texture.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_te

Re: [Mesa-dev] [PATCH] radeon: remove unnecessary checks

2016-06-14 Thread Jakob Sinclair
Reviewed-by: Nicolai Hähnle Thanks! -- Mvh Jakob Sinclair ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] radeon: remove unnecessary checks

2016-06-12 Thread Jakob Sinclair
gned-off-by: Jakob Sinclair --- I don't have push access so anyone reviewing this could push it. Thanks! src/gallium/drivers/radeon/r600_texture.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeo

Re: [Mesa-dev] [PATCH] glsl: initialise pointer to NULL

2016-06-06 Thread Jakob Sinclair
On 2016-06-06 15:48, Iago Toral wrote: Reviewed-by: Iago Toral Quiroga I don't have push access so I would be very happy if you could push this patch for me. Thanks! -- Mvh Jakob Sinclair On Sat, 2016-06-04 at 01:09 +0200, Jakob Sinclair wrote: Could cause issues if you tried to

[Mesa-dev] [PATCH] glsl: initialise pointer to NULL

2016-06-03 Thread Jakob Sinclair
Could cause issues if you tried to read from an uninitialised pointer. This just initalises the pointer to null to avoid that being a problem. Discovered by Coverity. CID: 1343616 Signed-off-by: Jakob Sinclair --- src/compiler/glsl/glsl_parser_extras.cpp | 1 + 1 file changed, 1 insertion

[Mesa-dev] [PATCH v2] radeon: fixed division by zero

2016-05-18 Thread Jakob Sinclair
Coverity is getting a false positive that a division by zero can occur here. This change will silence the Coverity warnings as a division by zero cannot occur in this case. Signed-off-by: Jakob Sinclair --- Changes since V1: We realised that Coverity was actually giving out a false positive and

Re: [Mesa-dev] [PATCH] radeon: fixed division by zero

2016-05-18 Thread Jakob Sinclair
On 2016-05-18 16:08, Nicolai Hähnle wrote: On 18.05.2016 08:17, Jakob Sinclair wrote: In the function r600_test_dma the max_width and max_height can be set to zero. Thanks for looking into that. Can they really? I see max_width = MIN2(tsrc.width0, tdst.width0); max_height = MIN2

[Mesa-dev] [PATCH] radeon: fixed division by zero

2016-05-18 Thread Jakob Sinclair
width or height to one. Issue was discoverd by Coverity. CID: 1361542, 1361543 Signed-off-by: Jakob Sinclair --- src/gallium/drivers/radeon/r600_test_dma.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_test_dma.c b/src/gallium

[Mesa-dev] [PATCH] glsl: fixed uninitialized pointer

2016-05-11 Thread Jakob Sinclair
e constructors. This issue was discovered by Coverity. CID: 401603, 401604, 401605, 401610 Signed-off-by: Jakob Sinclair --- I don't have push access so anyone reviewing this patch could push it. Thank you! src/compiler/glsl/ir.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/s

[Mesa-dev] [PATCH] glsl: fixed uninitialized pointer

2016-05-08 Thread Jakob Sinclair
e constructors. This issue was discovered by Coverity. CID: 401603, 401604, 401605, 401610 Signed-off-by: Jakob Sinclair --- src/compiler/glsl/ir.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index d69ab13..9637d7a 100644 --- a/src/

Re: [Mesa-dev] [PATCH] gallium, utils: Fix trivial sign compare warnings

2016-05-02 Thread Jakob Sinclair
Reviewed-by: Jakob Sinclair On 2016-05-02 07:15, Jan Vesely wrote: From: Jan Vesely Signed-off-by: Jan Vesely --- src/gallium/auxiliary/util/u_blitter.c| 10 +- src/gallium/auxiliary/util/u_cpu_detect.c | 2 +- src/gallium/auxiliary/util/u_format.c | 4

Re: [Mesa-dev] [PATCH] radeonsi: fix PIPE_FORMAT_R11G11B10_FLOAT handling

2016-04-29 Thread Jakob Sinclair
re careful with testing the patch. Anyways this looks all good to me. By the fact that you are using assert I'm guessing that first_non_void shouldn't be negative very often and that when it is negative something has gone horribly wrong.

Re: [Mesa-dev] [PATCH] radeonsi: check if value is negative

2016-04-27 Thread Jakob Sinclair
On 2016-04-27 12:17, Marek Olšák wrote: Reviewed-by: Marek Olšák Marek On Mon, Apr 25, 2016 at 9:03 AM, Jakob Sinclair wrote: Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code a bit safer

[Mesa-dev] [PATCH] radeonsi: check if value is negative

2016-04-25 Thread Jakob Sinclair
Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code a bit safer but overall should not have a big impact. CID: 1355598 Signed-off-by: Jakob Sinclair --- Resending this patch because I did not

[Mesa-dev] [PATCH 1/1] radeonsi: check if value is negative

2016-04-23 Thread Jakob Sinclair
Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code more clean and it doesn't change the outcome of the function. CID: 1355598 Signed-off-by: Jakob Sinclair --- src/gallium/drivers/rad

[Mesa-dev] [PATCH 0/1] radeonsi: fixing Coverity issue

2016-04-23 Thread Jakob Sinclair
This patch fixes a Coverity defect. By checking if the value is negative before using it to index an array it makes the code a bit safer and cleaner but it should not actually change the outcome of the functions. CID: 1355598 Jakob Sinclair (1): radeonsi: check if value is negative src

Re: [Mesa-dev] [PATCH 1/4] gallium/radeon: add clear_texture function

2016-04-15 Thread Jakob Sinclair
e that object to create a new surface which the old surface can now point too. Did I get the idea behind it or did I misunderstand the whole thing? -- Mvh Jakob Sinclair ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedes

[Mesa-dev] [PATCH 0/4] Implement ARB_clear_texture for radeon drivers

2016-04-15 Thread Jakob Sinclair
implementation of the same function. I don't have push access so someone reviewing this can push it. Regards Jakob Sinclair Jakob Sinclair (4): gallium/radeon: add clear_texture function gallium/radeonsi: enable ARB_clear_texture gallium/r600: enable ARB_clear_texture docs/GL3.txt:

Re: [Mesa-dev] [PATCH 1/4] gallium/radeon: add clear_texture function

2016-04-15 Thread Jakob Sinclair
tures...) Thanks for the heads up. It did at least not cause any errors on the piglit test. I will need to probably check with other radeon developers to see if this is actually safe. -- Mvh Jakob Sinclair ___ mesa-dev mailing list mes

[Mesa-dev] [PATCH 3/4] gallium/r600: enable ARB_clear_texture

2016-04-15 Thread Jakob Sinclair
Signed-off-by: Jakob Sinclair --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index c594f5c..7d1d6b2 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b

[Mesa-dev] [PATCH 4/4] docs/GL3.txt: mark ARB_clear_texture as done for r600 and radeonsi

2016-04-15 Thread Jakob Sinclair
Tested with piglit. All ARB_clear_texture tests passed. Signed-off-by: Jakob Sinclair --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index dc75cf8..654c856 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -192,7 +192,7 @@ GL 4.4

[Mesa-dev] [PATCH 1/4] gallium/radeon: add clear_texture function

2016-04-15 Thread Jakob Sinclair
This patch adds the needed function for ARB_clear_texture. The function itself is mostly based on the nouveau implementation. Signed-off-by: Jakob Sinclair --- src/gallium/drivers/radeon/r600_texture.c | 72 +++ 1 file changed, 72 insertions(+) diff --git a/src

[Mesa-dev] [PATCH 2/4] gallium/radeonsi: enable ARB_clear_texture

2016-04-15 Thread Jakob Sinclair
Signed-off-by: Jakob Sinclair --- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 6a990ed..2382b1d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c

[Mesa-dev] [PATCH 4/4] mesa: Remove every double semi-colon

2016-04-14 Thread Jakob Sinclair
Signed-off-by: Jakob Sinclair --- src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp | 2 +- src/mesa/math/m_debug_norm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp b/src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp index

[Mesa-dev] [PATCH 1/4] egl: Remove every double semi-colon

2016-04-14 Thread Jakob Sinclair
Removes all acidental semi-colons in egl. Signed-off-by: Jakob Sinclair --- src/egl/drivers/dri2/platform_android.c | 2 +- src/egl/drivers/dri2/platform_surfaceless.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl

[Mesa-dev] [PATCH 3/4] glx: Remove every double semi-colon

2016-04-14 Thread Jakob Sinclair
Signed-off-by: Jakob Sinclair --- src/glx/dri2_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 7710349..eae3c0f 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -405,7 +405,7 @@ dri2CreateDrawable(struct

[Mesa-dev] [PATCH 2/4] gallium: Remove every double semi-colon

2016-04-14 Thread Jakob Sinclair
Signed-off-by: Jakob Sinclair --- src/gallium/drivers/freedreno/a3xx/fd3_emit.c | 2 +- src/gallium/drivers/ilo/ilo_resource.c| 2 +- src/gallium/drivers/ilo/shader/ilo_shader_gs.c| 2 +- src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp | 2

[Mesa-dev] [PATCH 0/4] Removing all double semi-colons

2016-04-14 Thread Jakob Sinclair
yet either. Regards Jakob Sinclair Jakob Sinclair (4): egl: Remove every double semi-colon gallium: Remove every double semi-colon glx: Remove every double semi-colon mesa: Remove every double semi-colon src/egl/drivers/dri2/platform_android.c | 2 +- src/egl/dr

Re: [Mesa-dev] [PATCH 1/3] glsl: removing double semi-colons

2016-04-14 Thread Jakob Sinclair
On 2016-04-14 00:43, Ian Romanick wrote: It looks like there are a couple other instances dangling around the tree. src/glx/dri2_glx.c, src/mesa/math/m_debug_norm.c, etc. I did 'grep -r ';[[:space:]]*;' src/'. Most of the hits were for-loops. On 04/13/2016 09:43 AM,

[Mesa-dev] Rework uniform storage

2016-04-13 Thread Jakob Sinclair
he uniform storage so it just uses the gl_constant_value could lead to much simplier, but also more effiecient, code. So is it a reasonable idea to implement right now? What kind of problems could you expect and would anyone benefit from it? -- Mvh Jako

[Mesa-dev] [PATCH 1/3] glsl: removing double semi-colons

2016-04-13 Thread Jakob Sinclair
Trivial change. Removing unnecessary semi-colons from the code. I don't have push access so someone reviewing this can push it. Signed-off-by: Jakob Sinclair --- src/compiler/glsl/ast_function.cpp | 2 +- src/compiler/glsl/ir_rvalue_visitor.cpp | 2 +- 2 files changed, 2 insertions(

[Mesa-dev] [PATCH 3/3] gallium/r600: removing double semi-colons

2016-04-13 Thread Jakob Sinclair
Trivial change. Removing unnecessary semi-colons from the code. I don't have push access so someone reviewing this can push it. Signed-off-by: Jakob Sinclair --- src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/dr

[Mesa-dev] [PATCH 2/3] mesa/main: removing double semi-colons

2016-04-13 Thread Jakob Sinclair
Trivial change. Removing unnecessary semi-colons from the code. I don't have push access so someone reviewing this can push it. Signed-off-by: Jakob Sinclair --- src/mesa/main/pipelineobj.c | 2 +- src/mesa/main/shaderapi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [Mesa-dev] Newbie task to get started

2016-04-12 Thread Jakob Sinclair
On 2016-04-12 11:00, Timothy Arceri wrote: On Sun, 2016-04-10 at 21:45 +0200, Jakob Sinclair wrote: Hi! My name is Jakob Sinclair and I would like to start contributing to  mesa development. I was wondering if anyone has any easy tasks that I as  a newbie could start working on. I tried looking

[Mesa-dev] [PATCH] mesa/st: Replace GLvoid with void

2016-04-12 Thread Jakob Sinclair
ne that is reviewing this patch can push this. Signed-off-by: Jakob Sinclair --- src/mesa/state_tracker/st_cb_bufferobjects.c | 8 src/mesa/state_tracker/st_cb_drawpixels.c| 8 src/mesa/state_tracker/st_cb_readpixels.c| 4 ++-- src/mesa/state_tracker/st_cb_texture.c

Re: [Mesa-dev] Newbie task to get started

2016-04-11 Thread Jakob Sinclair
On 2016-04-11 17:25, Ilia Mirkin wrote: On Mon, Apr 11, 2016 at 11:18 AM, Jakob Sinclair wrote: Thanks for the tips! I have been looking at the ARB_shader_image_load_store and ARB_shader_image size extensions for GL ES 3.1 and noticed that the radeonsi drivers does not support them even

Re: [Mesa-dev] Newbie task to get started

2016-04-11 Thread Jakob Sinclair
the driver supports the extensions in the core profile. From what I can tell all supported functions are already in the driver. What needs to be added to the driver to gain support for the extensions in a GL ES 3.1 context? On Mon, Apr 11, 2016 at 11:54 AM, Jakob Sinclair wrote: On 2016-04-11 09

Re: [Mesa-dev] Newbie task to get started

2016-04-11 Thread Jakob Sinclair
Really appreciate it. On Sun, Apr 10, 2016 at 12:45 PM, Jakob Sinclair wrote: Hi! My name is Jakob Sinclair and I would like to start contributing to mesa development. I was wondering if anyone has any easy tasks that I as a newbie could start working on. I tried looking at https://wiki.freedesk

[Mesa-dev] Newbie task to get started

2016-04-10 Thread Jakob Sinclair
Hi! My name is Jakob Sinclair and I would like to start contributing to mesa development. I was wondering if anyone has any easy tasks that I as a newbie could start working on. I tried looking at https://wiki.freedesktop.org/dri/NewbieProjects/ but it seems that page is outdated and most of