Re: [Mesa-dev] [PATCH 03/16] main: fix the validation of the number of samples

2015-02-23 Thread Martin Peres
On 23/02/15 17:35, Jason Ekstrand wrote: People do tend to use page numbers from what I've seen. Yes, it has the potential to get out-of-sync but probably never by more than a page or two. I don't thnk spec updates are all that substantial, especially in older versions. You could also give a

[Mesa-dev] [PATCH 3/4] glsl: use common intrastage array validation

2015-02-23 Thread Timothy Arceri
Use common intrastage array validation for interface blocks. This change also allows us to support interface blocks that are arrays of arrays. --- src/glsl/link_interface_blocks.cpp | 76 ++ 1 file changed, 35 insertions(+), 41 deletions(-) diff --git a/src/gl

[Mesa-dev] [PATCH 1/4] glsl: move array validation into its own function

2015-02-23 Thread Timothy Arceri
--- src/glsl/linker.cpp | 87 + src/glsl/linker.h | 5 +++ 2 files changed, 53 insertions(+), 39 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 3f5eac1..ff62e32 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker

Re: [Mesa-dev] [PATCH 1/2] gallium: include util/macros.h

2015-02-23 Thread Tobias Klausmann
Can somebody push this please?! Thanks, Tobias On 12.02.2015 23:04, Jose Fonseca wrote: LGTM. On 12/02/15 17:31, Tobias Klausmann wrote: The most common macros are defined there, no use to duplicate these Clean up the already redefinded macros Signed-off-by: Tobias Klausmann --- src/galli

[Mesa-dev] [PATCH 12/14] meta: Return if pixels == null and no pixel unpack buffer set

2015-02-23 Thread Anuj Phogat
This patch avoids the unnecessary texture upload when glTexImage{1,2,3}D() calls allocate a texture with pixels = null and we use _mesa_meta_pbo_TexSubImage() path. Texture upload is also avoided when glTexSubImage{1,2,3}D() calls have pixels = null and use mesa_meta_pbo_TexSubImage() path. We sh

[Mesa-dev] [PATCH 13/14] i965: Pass pointer to miptree as function parameter in intel_horizontal_texture_alignment_unit

2015-02-23 Thread Anuj Phogat
This will be used by next patch in the series. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_tex_layout.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c index

[Mesa-dev] [PATCH 11/14] i965: Allocate texture buffer in intelTexImage

2015-02-23 Thread Anuj Phogat
before calling _mesa_meta_pbo_TexSubImage(). This will be used in later patches and will be required in Skylake to get the tile resource mode of miptree before calling _mesa_meta_pbo_TexSubImage(). Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_tex_image.c | 13 +++-- 1 f

[Mesa-dev] [PATCH 10/14] i965: Make a function to check the conditions to use the blitter

2015-02-23 Thread Anuj Phogat
No functional changes in the patch. Just makes the code look cleaner. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 40 +++ 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/sr

[Mesa-dev] [PATCH 05/14] meta: Use GL_STREAM_READ for pbo created with GL_PIXEL_PACK_BUFFER

2015-02-23 Thread Anuj Phogat
create_texture_for_pbo() is used by both _mesa_meta_pbo_GetTexSubImage() and _mesa_meta_pbo_TexSubImage() functions with different PBO targets. Use GL_STREAM_READ with GL_PIXEL_PACK_BUFFER and GL_STREAM_DRAW with GL_PIXEL_UNPACK_BUFFER. Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta

[Mesa-dev] [PATCH 02/14] meta: Do power of two samples check only for samples > 0

2015-02-23 Thread Anuj Phogat
otherwise samples=0 passes the check, which is invalid. Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta_blit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c index bf893be..9498817 100

Re: [Mesa-dev] [PATCH 1/3] mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Eric Anholt
Jose Fonseca writes: > On 23/02/15 16:12, Emil Velikov wrote: >> On 23/02/15 07:05, Eric Anholt wrote: >>> Matt Turner writes: >>> --- This series is attempting to make some progress towards moving u_math.h to src/util. >>> >>> Hmm, looks like for other headers we've got include/c

Re: [Mesa-dev] [PATCH v2] glsl: add double support for packing varyings

2015-02-23 Thread Ilia Mirkin
On Mon, Feb 23, 2015 at 4:27 PM, Ian Romanick wrote: > On 02/20/2015 10:56 AM, Ilia Mirkin wrote: >> Doubles are always packed, but a single double will never cross a slot >> boundary -- single slots can still be wasted in some situations. >> >> Signed-off-by: Ilia Mirkin >> --- >> >> Packing *al

[Mesa-dev] [PATCH v3 2/2] driconf: Update Catalan translation

2015-02-23 Thread Alex Henrie
Signed-off-by: Alex Henrie --- Version 3 leaves "Gallium Nine" as "Gallium Nine", because it is a proper name. src/mesa/drivers/dri/common/xmlpool/ca.po | 52 --- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlpool/ca.po

Re: [Mesa-dev] Mesa (master): mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Brian Paul
Looks like two things are needed. 1. replace INLINE with inline 2. #include math.h at the top of c99_copmat.h so that we get prototypes for floorf(), etc. to prevent a bunch of warnings where floorf() is called. This kind of feels wrong. Maybe there should be a c99_math.h wrapper for math.h

[Mesa-dev] [PATCH 7/8] radeonsi: small cleanup around current_rast_prim

2015-02-23 Thread Marek Olšák
From: Marek Olšák - remove the last parameter of si_emit_rasterizer_prim_state - remove the last unused parameter of si_emit_draw_registers - use current_rast_prim in si_emit_draw_registers --- src/gallium/drivers/radeonsi/si_state_draw.c | 15 ++- 1 file changed, 6 insertions(+), 9

[Mesa-dev] [PATCH 3/4] st/mesa: remove unused/broken function st_print_shaders

2015-02-23 Thread Marek Olšák
From: Marek Olšák --- src/mesa/state_tracker/st_program.c | 45 - src/mesa/state_tracker/st_program.h | 4 2 files changed, 49 deletions(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index ec123fb..744543f 10

[Mesa-dev] [PATCH 4/4] st/mesa: cleanup st_translate_geometry_program

2015-02-23 Thread Marek Olšák
From: Marek Olšák Mostly dead code or code that didn't do anything. Computing gs_num_outputs at the end was also useless. It's already set correctly. --- src/mesa/state_tracker/st_program.c | 132 1 file changed, 30 insertions(+), 102 deletions(-) diff --gi

[Mesa-dev] [PATCH] mesa: add a missing GS support check in GetActiveUniformBlockiv

2015-02-23 Thread Marek Olšák
From: Marek Olšák --- src/mesa/main/uniforms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index e471b87..4bb3dfb 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -1142,6 +1142,8 @@ _mesa_GetActiveUniformBlockiv

Re: [Mesa-dev] Mesa (master): mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Brian Paul
This broke the MSVC build for me. I'll try to sort it out... -Brian On 02/23/2015 11:50 AM, Matt Turner wrote: Module: Mesa Branch: master Commit: 5a191f49ad084e728122fed83bd7511817e66831 URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__cgit.freedesktop.org_mesa_mesa_commit_-3Fid-3

Re: [Mesa-dev] [PATCH 1/2] i965: Remove hand-rolled memcpy implementation.

2015-02-23 Thread Ian Romanick
On 02/22/2015 08:40 PM, Matt Turner wrote: > --- > I can't believe this is beneficial, especially since it came from the > i915tex import. My recollection is that memcpy does some weird optimizations (copying from the end first) assuming the memory is mapped in a certain way. We don't necessarily

Re: [Mesa-dev] [PATCH 3/3] i965: Emit MUL with a negated src for neg(mul(...)).

2015-02-23 Thread Matt Turner
On Sun, Feb 22, 2015 at 2:23 PM, Ben Widawsky wrote: > On Wed, Feb 11, 2015 at 02:54:51PM -0800, Matt Turner wrote: >> total instructions in shared programs: 5932832 -> 5932736 (-0.00%) >> instructions in affected programs: 8184 -> 8088 (-1.17%) >> helped:52 >>

[Mesa-dev] [PATCH 3/6 v2] i965/skl: Fix the qpitch value

2015-02-23 Thread Neil Roberts
On Skylake the qpitch value is uploaded as part of the surface state so we don't need to add the extra rows that are done for other generations. However for 3D textures it needs to be aligned to the tile height and for depth/stencil textures it needs to be a multiple of 8. Unlike previous generatio

Re: [Mesa-dev] [PATCH 1/3] mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Matt Turner
On Sun, Feb 22, 2015 at 11:05 PM, Eric Anholt wrote: > Matt Turner writes: > >> --- >> This series is attempting to make some progress towards moving u_math.h >> to src/util. > > Hmm, looks like for other headers we've got include/c99/whatever.h that > includes the system version and fixes it up.

Re: [Mesa-dev] [PATCH 2/2] util: move pipe_prim_names array into u_prim_name()

2015-02-23 Thread Jose Fonseca
For series Reviewed-by: Jose Fonseca 23/02/15 15:59, Brian Paul wrote: Also, wrapping the array in #ifdef DEBUG / #endif doesn't seem necessary. --- src/gallium/auxiliary/util/u_debug.c | 45 +--- 1 file changed, 21 insertions(+), 24 deletions(-) diff --gi

Re: [Mesa-dev] [PATCH] osmesa: add gallium include dirs to Makefile.am

2015-02-23 Thread Jose Fonseca
Reviewed-by: Jose Fonseca On 23/02/15 15:39, Brian Paul wrote: Bugzilla: https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fid-3D89260&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZCM2zzE&m=L3FUFZqbsV2eYNm6

Re: [Mesa-dev] [PATCH] osmesa: add gallium include dirs to Makefile.am

2015-02-23 Thread Kai Wasserbäch
Thanks Brian, this fixes the build for me. You can have my Tested-by: Kai Wasserbäch for this patch. Brian Paul wrote on 23.02.2015 16:39: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89260 > --- > src/mesa/drivers/osmesa/Makefile.am | 2 ++ > 1 file changed, 2 insertions(+) > > d

Re: [Mesa-dev] [PATCH 1/3] mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Emil Velikov
On 23/02/15 07:05, Eric Anholt wrote: > Matt Turner writes: > >> --- >> This series is attempting to make some progress towards moving u_math.h >> to src/util. > > Hmm, looks like for other headers we've got include/c99/whatever.h that > includes the system version and fixes it up. I think it s

[Mesa-dev] [Bug 89260] macros.h:34:25: fatal error: util/u_math.h: No such file or directory

2015-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89260 --- Comment #5 from Kai --- (In reply to Brian Paul from comment #4) > patch posted to mesa-dev for review. I replied there, but for the record of this bug: the posted patch works for me. -- You are receiving this mail because: You are the QA

[Mesa-dev] [PATCH 2/2] util: move pipe_prim_names array into u_prim_name()

2015-02-23 Thread Brian Paul
Also, wrapping the array in #ifdef DEBUG / #endif doesn't seem necessary. --- src/gallium/auxiliary/util/u_debug.c | 45 +--- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c

[Mesa-dev] [PATCH 1/2] util: rewrite debug_print_transfer_flags() using debug_dump_flags()

2015-02-23 Thread Brian Paul
Add add missing PIPE_TRANSFER_PERSISTENT, PIPE_TRANSFER_COHERENT flags. --- src/gallium/auxiliary/util/u_debug.c | 41 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c i

Re: [Mesa-dev] [PATCH] osmesa: Add gallium include dirs

2015-02-23 Thread Brian Paul
On 02/23/2015 01:31 AM, Martin Peres wrote: Signed-off-by: Martin Peres --- src/mesa/drivers/osmesa/Makefile.am | 2 ++ src/mesa/drivers/osmesa/SConscript | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: improve precision of double RCP/RSQ results

2015-02-23 Thread Ilia Mirkin
Oh right. I think the NVIDIA blob executes those steps conditionally based on the upper bits not being 0x7ff (== infinity/nan). I should do the same thing here. [FWIW I was able to test the nv50 code last night and that one's a total fail for rcp/rsq... will need to port that over to my nvc0 and de

[Mesa-dev] [Bug 89260] macros.h:34:25: fatal error: util/u_math.h: No such file or directory

2015-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89260 --- Comment #4 from Brian Paul --- patch posted to mesa-dev for review. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. ___ mesa-dev maili

[Mesa-dev] [PATCH] osmesa: add gallium include dirs to Makefile.am

2015-02-23 Thread Brian Paul
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89260 --- src/mesa/drivers/osmesa/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index 589b5ee..60048cc 100644 --- a/src/mesa/drivers/osmesa/Makefile

Re: [Mesa-dev] [PATCH 03/16] main: fix the validation of the number of samples

2015-02-23 Thread Jason Ekstrand
On Mon, Feb 23, 2015 at 12:51 AM, Martin Peres wrote: > On 20/02/15 20:38, Laura Ekstrand wrote: > >> Please provide a page number and a section title in your spec comment. >> > > I'm not very fond of giving the page number as Khronos updates the pdf > quite often > and the page number may change

Re: [Mesa-dev] [PATCH libdrm] add support for imx-drm in tests

2015-02-23 Thread Emil Velikov
Hi Lucas, On 23 February 2015 at 14:08, Lucas Stach wrote: > As this is a really trivial one I'm going to push this by Wednesday this > week if nobody voices any objections. > > Regards, > Lucas > > Am Mittwoch, den 18.02.2015, 12:01 +0100 schrieb Lucas Stach: >> From: Philipp Zabel >> >> Since

[Mesa-dev] [PATCH 06/16] main: Added entry point for glTransformFeedbackBufferRange

2015-02-23 Thread Martin Peres
v2: review from Laura Ekstrand - use the refactored code to lookup the objects - improve some error messages - factor out the gl method name computation - better handle the spec differences between the DSA and non-DSA cases - quote the spec a little more v3: review from Laura Ekstrand - use the ne

[Mesa-dev] [PATCH 05/16] main: Added entry point for glTransformFeedbackBufferBase

2015-02-23 Thread Martin Peres
v2: Review from Laura Ekstrand - give more helpful error messages - factor the lookup code for the xfb and objBuf - replace some already-existing tabs with spaces - add comments to explain the cases where xfb == 0 or buffer == 0 - fix the condition for binding the transform buffer or not v3: Revie

[Mesa-dev] [Bug 89260] macros.h:34:25: fatal error: util/u_math.h: No such file or directory

2015-02-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89260 Kai changed: What|Removed |Added Keywords||regression CC|

[Mesa-dev] [PATCH 1/2] egl: add EGL_MESA_transparent_alpha extension

2015-02-23 Thread Jonny Lamb
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67676 Reviewed-by: Chad Versace --- docs/specs/EGL_MESA_transparent_alpha.txt | 120 ++ 1 file changed, 120 insertions(+) create mode 100644 docs/specs/EGL_MESA_transparent_alpha.txt diff --git a/docs/specs/EGL_M

[Mesa-dev] [PATCH 2/2] egl: implement EGL_MESA_transparent_alpha for x11 and wayland

2015-02-23 Thread Jonny Lamb
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67676 --- include/EGL/eglmesaext.h| 5 + src/egl/drivers/dri2/platform_wayland.c | 9 +++-- src/egl/drivers/dri2/platform_x11.c | 22 +- src/egl/main/eglapi.c | 13 +++

Re: [Mesa-dev] [PATCH v2] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Eduardo Lima Mitev
On 02/23/2015 02:37 PM, Martin Peres wrote: > Looks better :) Indeed, this is only for OpenGLES 3. > > Reviewed-by: Martin Peres > Thanks Martin! The patch was already pushed by Samuel Iglesias. cheers, Eduardo ___ mesa-dev mailing list mesa-dev@list

Re: [Mesa-dev] [PATCH libdrm] add support for imx-drm in tests

2015-02-23 Thread Lucas Stach
As this is a really trivial one I'm going to push this by Wednesday this week if nobody voices any objections. Regards, Lucas Am Mittwoch, den 18.02.2015, 12:01 +0100 schrieb Lucas Stach: > From: Philipp Zabel > > Since imx-drm has graduated from staging it seems to be a good idea to > recogniz

Re: [Mesa-dev] [PATCH v2] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Martin Peres
Looks better :) Indeed, this is only for OpenGLES 3. Reviewed-by: Martin Peres On 23/02/15 14:03, Eduardo Lima Mitev wrote: This corrects a trivial error introduced in commit 19252fee46b835cb4f6b1cce18d7737d62b64a2e. That patch was merged recently and omits one condition (that 'samples' is gre

Re: [Mesa-dev] [PATCH 2/2] nvc0/ir: improve precision of double RCP/RSQ results

2015-02-23 Thread Roland Scheidegger
Does this give correct results for special floats (0, infs)? We tried to improve (for single floats) x86 rcp in llvmpipe with newton-raphson, but unfortunately not being able to give correct results for these two cases (without even more additional code) meant it got all disabled in the end (you ca

Re: [Mesa-dev] [PATCH 1/3] mesa: Move C99 MSVC compatibility code from u_math.h to c99_compat.h.

2015-02-23 Thread Jose Fonseca
Series looks good to me. It's a nice cleanup on its own right. Reviewed-by: Jose Fonseca Jose On 23/02/15 04:31, Matt Turner wrote: --- This series is attempting to make some progress towards moving u_math.h to src/util. include/c99_compat.h| 143 ++

Re: [Mesa-dev] [PATCH 06/16] main: Added entry point for glTransformFeedbackBufferRange

2015-02-23 Thread Martin Peres
Like the previous patch, I wonder what I was thinking. Anyway, should be good now. I'll send the new versions as a response. No need to re-send the whole series for now. On 21/02/15 03:02, Laura Ekstrand wrote: On Mon, Feb 16, 2015 at 6:13 AM, Martin Peres mailto:martin.pe...@linux.intel.c

Re: [Mesa-dev] [PATCH 05/16] main: Added entry point for glTransformFeedbackBufferBase

2015-02-23 Thread Martin Peres
On 21/02/15 02:25, Laura Ekstrand wrote: You still seem to be confused about the names of internal functions. If a function exists outside of its "class," (ie. is extern-ed from a *.h file), it should have the "_mesa" in front. If a function exists purely inside of a *.c file, it should be st

Re: [Mesa-dev] [PATCH] i965: Use new/delete instead of realloc() in brw_ir_allocator.h

2015-02-23 Thread Eero Tamminen
Hi, On 02/11/2015 08:45 PM, Kenneth Graunke wrote: On Wednesday, February 11, 2015 04:56:56 PM Juha-Pekka Heikkila 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. ... Okay,

[Mesa-dev] [PATCH v2] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Eduardo Lima Mitev
This corrects a trivial error introduced in commit 19252fee46b835cb4f6b1cce18d7737d62b64a2e. That patch was merged recently and omits one condition (that 'samples' is greater than zero) in one of the error checks. That error will definitely cause regressions. Also corrects the reference to the spe

Re: [Mesa-dev] [PATCH] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Eduardo Lima Mitev
On 02/23/2015 12:41 PM, Martin Peres wrote: >> >> Section 4.4 (Framebuffer objects), page 198 of the OpenGL 3.0.0 >> specification says: >> >> "If internalformat is a signed or unsigned integer format and >> samples is greater than zero, then the error INVALID_OPERATION >> is gener

Re: [Mesa-dev] [PATCH] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Martin Peres
On 23/02/15 11:24, Eduardo Lima Mitev wrote: On 02/23/2015 09:48 AM, Martin Peres wrote: On 23/02/15 10:33, Eduardo Lima Mitev wrote: Hi, can someone take a look? It should be very straight forward. Eduardo You are not supposed to return INVALID_OPERATION if samples < 0. Also, samples == 0

Re: [Mesa-dev] [PATCH] osmesa: Add gallium include dirs

2015-02-23 Thread Eric Anholt
Martin Peres writes: > Signed-off-by: Martin Peres Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Eduardo Lima Mitev
On 02/23/2015 09:48 AM, Martin Peres wrote: > > On 23/02/15 10:33, Eduardo Lima Mitev wrote: >> Hi, can someone take a look? It should be very straight forward. >> >> Eduardo > You are not supposed to return INVALID_OPERATION if samples < 0. > > Also, samples == 0 is valid [0], so this is a NAK f

Re: [Mesa-dev] [PATCH 03/16] main: fix the validation of the number of samples

2015-02-23 Thread Martin Peres
On 20/02/15 20:57, Ilia Mirkin wrote: On Mon, Feb 16, 2015 at 9:13 AM, Martin Peres wrote: Maybe this should be the job of the dispatch layer. Signed-off-by: Martin Peres --- src/mesa/main/multisample.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/mesa/main/multisample.

Re: [Mesa-dev] [PATCH 03/16] main: fix the validation of the number of samples

2015-02-23 Thread Martin Peres
On 20/02/15 20:38, Laura Ekstrand wrote: Please provide a page number and a section title in your spec comment. I'm not very fond of giving the page number as Khronos updates the pdf quite often and the page number may change. Since I see so little people write the pdf page number, is there

Re: [Mesa-dev] [PATCH] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Martin Peres
On 23/02/15 10:33, Eduardo Lima Mitev wrote: Hi, can someone take a look? It should be very straight forward. Eduardo You are not supposed to return INVALID_OPERATION if samples < 0. Also, samples == 0 is valid [0], so this is a NAK for me! The correct patch has already been posted to the ML:

Re: [Mesa-dev] [PATCH 1/4] i965: Don't emit saturates for instructions without destinations.

2015-02-23 Thread Kenneth Graunke
On Tuesday, February 10, 2015 11:09:57 AM Matt Turner wrote: > We were special casing OPCODE_END but no other instructions that have no > destination, like OPCODE_KIL, leading us to emitting MOVs with null > destinations. > > total instructions in shared programs: 5950886 -> 5947182 (-0.06%) > ins

Re: [Mesa-dev] [PATCH 3/4] i965/blorp: Optimize clamping tex coords.

2015-02-23 Thread Kenneth Graunke
On Tuesday, February 10, 2015 11:09:59 AM Matt Turner wrote: > Each emit_cond_mov() emits a CMP of its first to arguments using the > specified conditional mod, followed by a predicated MOV of the fifth > argument into the fourth. In all four cases here, it was just > implementing MIN/MAX which we

Re: [Mesa-dev] [PATCH] mesa: Adds missing error condition in _mesa_check_sample_count()

2015-02-23 Thread Eduardo Lima Mitev
Hi, can someone take a look? It should be very straight forward. Eduardo On 02/20/2015 02:09 PM, Eduardo Lima Mitev wrote: > This corrects a trivial error introduced in commit > 19252fee46b835cb4f6b1cce18d7737d62b64a2e. That patch was merged recently > and omits one condition (that 'samples' is g

[Mesa-dev] [PATCH] osmesa: Add gallium include dirs

2015-02-23 Thread Martin Peres
Signed-off-by: Martin Peres --- src/mesa/drivers/osmesa/Makefile.am | 2 ++ src/mesa/drivers/osmesa/SConscript | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index 589b5ee..590dd66 100644 --- a/src/mesa/drivers/os

Re: [Mesa-dev] [PATCH 4/4] i965: Force miptrees for BOs to have all slices in each lod.

2015-02-23 Thread Kenneth Graunke
On Friday, February 20, 2015 01:30:56 PM Laura Ekstrand wrote: > Textures made expressly for internal buffer objects shouldn't have extra > padding around them, but should be densely packed. I might explain this as: PBOs do not support miplevels - array slices are densely packed, with no extra pa

Re: [Mesa-dev] [PATCH 1/4] common: Correct texture initialization in create_texture_for_pbo.

2015-02-23 Thread Kenneth Graunke
On Friday, February 20, 2015 01:30:53 PM Laura Ekstrand wrote: > Solves bugs related to the driver not setting up the texture miptree > correctly, leading to faulty PBO uploads and downloads. > --- > src/mesa/drivers/common/meta_tex_subimage.c | 13 + > src/mesa/drivers/dri/i965/intel_

Re: [Mesa-dev] [PATCH 1/2] i965: Remove hand-rolled memcpy implementation.

2015-02-23 Thread Kenneth Graunke
On Sunday, February 22, 2015 08:40:17 PM Matt Turner wrote: > --- > I can't believe this is beneficial, especially since it came from the > i915tex import. > > src/mesa/drivers/dri/i965/brw_context.h | 27 > --- > src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 +