Re: [Mesa-dev] [PATCH 09/29] mesa: Add _mesa_swap2_copy and _mesa_swap4_copy

2014-11-20 Thread Iago Toral
No good reason really, simply that the original functions seemed simpler for the case of in-place swapping since you don't have to pass the dst parameter explicitly, so I figured there was a marginal gain in letting them stay, specially since their implementation is just an inline call to the other

Re: [Mesa-dev] [PATCH 03/29] mesa: Do not assert on integer<->non-integer direct pack/unpack fast paths

2014-11-20 Thread Iago Toral
It is explained here: https://bugs.freedesktop.org/show_bug.cgi?id=84566#c35 So one example of this was a glReadPixels where we want to store the pixel data as RGBA UINT, but the render buffer format we read from is MESA_FORMAT_B8G8R8A8_UNORM. There are piglit tests that hit this case. Iago On

Re: [Mesa-dev] [PATCH 07/29] mesa: Add helper to convert a GL format and type to a mesa (array) format.

2014-11-20 Thread Iago Toral
On Wed, 2014-11-19 at 12:11 -0800, Jason Ekstrand wrote: > General comment: Maybe this would be better in gltypes rather than in > mesa_formats Ok, I'll move it. > On Tue, Nov 18, 2014 at 1:23 AM, Iago Toral Quiroga > wrote: > --- > src/mesa/main/formats.c | 285 > +

Re: [Mesa-dev] [PATCH 09/29] mesa: Add _mesa_swap2_copy and _mesa_swap4_copy

2014-11-20 Thread Iago Toral
On Wed, 2014-11-19 at 14:15 -0600, Patrick Baggett wrote: > > > On Tue, Nov 18, 2014 at 3:23 AM, Iago Toral Quiroga > wrote: > We have _mesa_swap{2,4} but these do in-place byte-swapping > only. The new > functions receive an extra parameter so we can swap bytes on a >

Re: [Mesa-dev] [PATCH 14/20] mesa: Add non-normalized formats support for ubyte packing functions

2014-11-20 Thread Iago Toral
On Thu, 2014-11-20 at 08:15 +0100, Samuel Iglesias Gonsálvez wrote: > On Tue, 2014-11-18 at 11:08 -0800, Jason Ekstrand wrote: > > > > > > On Tue, Nov 18, 2014 at 12:44 AM, Iago Toral Quiroga > > wrote: > > From: Samuel Iglesias Gonsalvez > > > > Signed-off-by: Samuel I

Re: [Mesa-dev] Using the 'f' suffix to create a float from an integer literal

2014-11-20 Thread Iago Toral
On Thu, 2014-11-20 at 08:08 +0100, Iago Toral wrote: > On Wed, 2014-11-19 at 10:27 -0800, Ian Romanick wrote: > > On 11/19/2014 03:47 AM, Iago Toral Quiroga wrote: > > > Hi, > > > > > > I came across a GLSL test that checks that doing something like this in > > > a shader should fail: > > > > Is

Re: [Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-20 Thread Alexandre Courbot
Hi Pekka, On 11/19/2014 04:34 PM, Pekka Paalanen wrote: On Wed, 19 Nov 2014 15:32:38 +0900 Alexandre Courbot wrote: Some more information: CPU usage of the EGL app (glmark2 here) is much higher when this patch is applied, which I presume is what triggers the frame skips. On 11/19/2014 03:05

Re: [Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

2014-11-20 Thread Iago Toral
On Wed, 2014-11-19 at 11:28 -0800, Jason Ekstrand wrote: > By and large, this looks good to me. Most of my comments are cosmetic > or suggestions for added documentation. There is one issue that I > think is subtly wrong with integer format conversion but that should > be easy to fix. > > --Jaso

Re: [Mesa-dev] [PATCH] i965: Don't call _mesa_load_state_parameters when nr_params == 0.

2014-11-20 Thread Kenneth Graunke
On Friday, November 14, 2014 10:49:04 AM Matt Turner wrote: > On Thu, Nov 13, 2014 at 11:22 PM, Kenneth Graunke > wrote: > > Saves a tiny bit of CPU overhead. > > > > Signed-off-by: Kenneth Graunke > > --- > > src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 10 +- > > src/mesa/driver

Re: [Mesa-dev] [PATCH 05/29] mesa: Consider internal base format in _mesa_format_convert

2014-11-20 Thread Iago Toral
On Thu, 2014-11-20 at 08:42 +0100, Iago Toral wrote: > On Wed, 2014-11-19 at 11:43 -0800, Jason Ekstrand wrote: > > A couple of specific comments are below. More generally, why are you > > only considering the base format on two cases? Do we never use it for > > anything else? > > I thought abou

Re: [Mesa-dev] [PATCH 14/20] mesa: Add non-normalized formats support for ubyte packing functions

2014-11-20 Thread Samuel Iglesias Gonsálvez
On Thu, 2014-11-20 at 09:55 +0100, Iago Toral wrote: > On Thu, 2014-11-20 at 08:15 +0100, Samuel Iglesias Gonsálvez wrote: > > On Tue, 2014-11-18 at 11:08 -0800, Jason Ekstrand wrote: > > > > > > > > > On Tue, Nov 18, 2014 at 12:44 AM, Iago Toral Quiroga > > > wrote: > > > From: Samuel I

Re: [Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-20 Thread Pekka Paalanen
On Thu, 20 Nov 2014 18:24:34 +0900 Alexandre Courbot wrote: > Hi Pekka, > > On 11/19/2014 04:34 PM, Pekka Paalanen wrote: > > On Wed, 19 Nov 2014 15:32:38 +0900 > > Alexandre Courbot wrote: > > > >> Some more information: CPU usage of the EGL app (glmark2 here) is much > >> higher when this pat

Re: [Mesa-dev] [PATCH 14/20] mesa: Add non-normalized formats support for ubyte packing functions

2014-11-20 Thread Samuel Iglesias Gonsálvez
On Thu, 2014-11-20 at 12:14 +0100, Samuel Iglesias Gonsálvez wrote: > On Thu, 2014-11-20 at 09:55 +0100, Iago Toral wrote: > > On Thu, 2014-11-20 at 08:15 +0100, Samuel Iglesias Gonsálvez wrote: > > > On Tue, 2014-11-18 at 11:08 -0800, Jason Ekstrand wrote: > > > > > > > > > > > > On Tue, Nov 18,

Re: [Mesa-dev] [PATCH 16/20] mesa/formats: add new mesa formats and their pack/unpack functions.

2014-11-20 Thread Samuel Iglesias Gonsálvez
On Tue, 2014-11-18 at 11:50 -0800, Jason Ekstrand wrote: > > > On Tue, Nov 18, 2014 at 12:44 AM, Iago Toral Quiroga > wrote: > From: Samuel Iglesias Gonsalvez > > This will be used to refactor code in pack.c and support > conversion > to/from these type

Re: [Mesa-dev] Using the 'f' suffix to create a float from an integer literal

2014-11-20 Thread Neil Roberts
For what it's worth, I did a quick grep through the internal and public shader-db and I couldn't find anything using this. git grep -P '\b(? writes: > On Thu, 2014-11-20 at 08:08 +0100, Iago Toral wrote: >> On Wed, 2014-11-19 at 10:27 -0800, Ian Romanick wrote: >> > On 11/19/2014 03:47 AM, Iago

Re: [Mesa-dev] [PATCH] rtasm,translate: Re-enable SSE on Mingw64.

2014-11-20 Thread Jose Fonseca
On 19/11/14 17:21, Jon TURNEY wrote: On 19/11/2014 15:25, Jose Fonseca wrote: No idea. But the impression I generally have is MinGW has come a long way since then (3 years ago.) I think there was at least one bug in mesa which prevented this from working, see commit cedfd79b Yes, you're prob

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-20 Thread Jose Fonseca
On 19/11/14 21:17, Ilia Mirkin wrote: On Wed, Nov 19, 2014 at 3:45 PM, Jose Fonseca wrote: On 19/11/14 19:45, Ilia Mirkin wrote: On Wed, Nov 19, 2014 at 2:32 PM, Eric Anholt wrote: Eric Anholt writes: This series removes a bunch of unused opcodes, mostly from TGSI. It doesn't go as far

Re: [Mesa-dev] Require micro-benchmarks for performance optimization oriented patches

2014-11-20 Thread Eero Tamminen
Hi, > Honestly, I think I'm okay with our usual metrics like: > - Increased FPS in a game or benchmark > - Reduced number of instructions or memory accesses in a shader program > - Reduced memory consumption > - Significant cycle reduction in callgrind or better generated code > (ideally if

Re: [Mesa-dev] Using the 'f' suffix to create a float from an integer literal

2014-11-20 Thread Ian Romanick
On 11/20/2014 05:33 AM, Neil Roberts wrote: > For what it's worth, I did a quick grep through the internal and public > shader-db and I couldn't find anything using this. > > git grep -P '\b(? > If AMD disallows it then it seems like it would be reasonably safe to > disallow it in Mesa too. > >

Re: [Mesa-dev] [PATCH 1/9] i915: Only use TEXCOORDTYPE_VECTOR with cube maps on gen2

2014-11-20 Thread Ian Romanick
On 08/06/2014 11:56 AM, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Check that the target is GL_TEXTURE_CUBE_MAP before emitting > TEXCOORDTYPE_VECTOR texture coordinates. > > I'm not sure if the hardware would like CARTESIAN coordinates > with cube maps, and as I'm too lazy t

Re: [Mesa-dev] [PATCH 1/3] i965: Rename two intelEmit*Blit functions to not use camel-case

2014-11-20 Thread Ian Romanick
Just clearing some old patch back log... Patch 1 is Reviewed-by: Ian Romanick With Matt's nits about patch 2 fixed, it is also R-b, but I guess the point of that patch is really to enable patch 3. Where do we stand on that? On 10/01/2014 02:07 PM, Jason Ekstrand wrote: > I think these are abo

[Mesa-dev] [PATCH] egl: Expose EGL_KHR_get_all_proc_addresses and its client extension

2014-11-20 Thread Chad Versace
Mesa already implements the behavior of EGL_KHR_get_all_proc_addresses and EGL_KHR_client_get_all_proc_addresses. This patch just exposes the extension strings. See: https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_get_all_proc_addresses.txt Cc: Daniel Kurtz Cc: Frank Henigman Signed

Re: [Mesa-dev] [PATCH 02/29] mesa: Set normalized=true for float array formats.

2014-11-20 Thread Jason Ekstrand
On Wed, Nov 19, 2014 at 11:24 PM, Iago Toral wrote: > Hi Jason, > > we discussed this some weeks ago actually, the detailed explanation is > here: > https://bugs.freedesktop.org/show_bug.cgi?id=84566#c5 > > the short answer is that this is necessary because there is a normalized > parameter to _m

Re: [Mesa-dev] [PATCH 06/29] mesa: Avoid pack/unpack fast paths if base internal format != base format

2014-11-20 Thread Jason Ekstrand
On Wed, Nov 19, 2014 at 11:58 PM, Iago Toral wrote: > On Wed, 2014-11-19 at 11:57 -0800, Jason Ekstrand wrote: > > A couple of general comments on this patch: > > > > > > 1) The prerequisites should be moved to before the first patch in the > > series and it should be squashed into the patch that

Re: [Mesa-dev] [PATCH 09/29] mesa: Add _mesa_swap2_copy and _mesa_swap4_copy

2014-11-20 Thread Jason Ekstrand
On Thu, Nov 20, 2014 at 12:48 AM, Iago Toral wrote: > On Wed, 2014-11-19 at 14:15 -0600, Patrick Baggett wrote: > > > > > > On Tue, Nov 18, 2014 at 3:23 AM, Iago Toral Quiroga > > wrote: > > We have _mesa_swap{2,4} but these do in-place byte-swapping > > only. The new > >

Re: [Mesa-dev] [PATCH 09/29] mesa: Add _mesa_swap2_copy and _mesa_swap4_copy

2014-11-20 Thread Patrick Baggett
> > >> > The restrict keyword is a C99 thing and I don't think it's supported in > MSVC so that would be a problem. If it won't build with MSVC then it's a > non-starter. If MSVC can handle "restrict", then I don't know that I care > much either way about 2 functions or 4 > > MSVC uses "__restric

Re: [Mesa-dev] [PATCH 05/29] mesa: Consider internal base format in _mesa_format_convert

2014-11-20 Thread Jason Ekstrand
On Wed, Nov 19, 2014 at 11:42 PM, Iago Toral wrote: > On Wed, 2014-11-19 at 11:43 -0800, Jason Ekstrand wrote: > > A couple of specific comments are below. More generally, why are you > > only considering the base format on two cases? Do we never use it for > > anything else? > > I thought abou

Re: [Mesa-dev] [PATCH 2/4] i965: Fix intel_miptree_map() signature to be more 64-bit safe

2014-11-20 Thread Chad Versace
On Wed 19 Nov 2014, Kenneth Graunke wrote: On Wednesday, November 19, 2014 02:13:03 PM Ian Romanick wrote: On 11/18/2014 09:11 PM, Chad Versace wrote: > This patch should diminish the likelihood of pointer arithmetic overflow > bugs, like the one fixed by b69c7c5dac. > > Change the type of param

Re: [Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

2014-11-20 Thread Jason Ekstrand
On Thu, Nov 20, 2014 at 1:48 AM, Iago Toral wrote: > On Wed, 2014-11-19 at 11:28 -0800, Jason Ekstrand wrote: > > By and large, this looks good to me. Most of my comments are cosmetic > > or suggestions for added documentation. There is one issue that I > > think is subtly wrong with integer fo

Re: [Mesa-dev] [PATCH 1/9] i915: Only use TEXCOORDTYPE_VECTOR with cube maps on gen2

2014-11-20 Thread Ville Syrjälä
On Thu, Nov 20, 2014 at 09:59:00AM -0800, Ian Romanick wrote: > On 08/06/2014 11:56 AM, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Check that the target is GL_TEXTURE_CUBE_MAP before emitting > > TEXCOORDTYPE_VECTOR texture coordinates. > > > > I'm not sure if the hardw

[Mesa-dev] [PATCH 3/7] mesa: Silence unused parameter warnings in _mesa_validate_Draw functions

2014-11-20 Thread Ian Romanick
From: Ian Romanick ../../src/mesa/main/api_validate.c: In function '_mesa_validate_DrawElements': ../../src/mesa/main/api_validate.c:376:37: warning: unused parameter 'basevertex' [-Wunused-parameter] ../../src/mesa/main/api_validate.c: In function '_mesa_validate_MultiDrawElements': ../../src/

[Mesa-dev] [PATCH 4/7] mesa: Use unreachable instead of assert in check_valid_to_render

2014-11-20 Thread Ian Romanick
From: Ian Romanick This is generally the prefered style these days. Signed-off-by: Ian Romanick --- src/mesa/main/api_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 181a61d..304d576 100644 --- a/s

[Mesa-dev] [PATCH 1/7] mesa: Generate GL_INVALID_OPERATION when drawing w/o a VAO in core profile

2014-11-20 Thread Ian Romanick
From: Ian Romanick GL 3-ish versions of the spec are less clear that an error should be generated here, so Ken (and I during review) just missed it in 1afe335. Signed-off-by: Ian Romanick Cc: Kenneth Graunke --- src/mesa/main/api_validate.c | 10 +- 1 file changed, 9 insertions(+), 1

[Mesa-dev] [PATCH 7/7] i965: Reorder fields of brw_state_flags to plug a hole on 64-bit

2014-11-20 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 656cbe8..d1b5af7 100644 --- a/src/mesa/driv

[Mesa-dev] [PATCH 0/7] valid-to-render house keeping

2014-11-20 Thread Ian Romanick
This little series is just a bit of house keeping in the valid-to-render path. There is a follow-up series in progress that tries to optimize some of these paths for CPU-bound workloads. The whole series has been reordered several times. Orignally patches 4 and 5 of this series were farther apar

[Mesa-dev] [PATCH 2/7] mesa: Refactor common validation code to validate_DrawElements_common

2014-11-20 Thread Ian Romanick
From: Ian Romanick Most of the code in _mesa_validate_DrawElements, _mesa_validate_DrawRangeElements, and _mesa_validate_DrawElementsInstanced was the same. Refactor this out to common code. As a side-effect, a bug in _mesa_validate_DrawElementsInstanced was fixed. Previously this function wou

[Mesa-dev] [PATCH 5/7] mesa: Use current Mesa coding style in check_valid_to_render

2014-11-20 Thread Ian Romanick
From: Ian Romanick This makes some others patches (still in my local tree) a bit cleaner. NOTE: This and the previous patch can probably get squashed together. Signed-off-by: Ian Romanick --- src/mesa/main/api_validate.c | 49 ++-- 1 file changed, 24 in

[Mesa-dev] [PATCH 6/7] i965: Just return void from brw_try_draw_prims

2014-11-20 Thread Ian Romanick
From: Ian Romanick --- src/mesa/drivers/dri/i965/brw_draw.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index b28eaf2..4c2802a 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/m

Re: [Mesa-dev] [PATCH 2/4] i965: Fix intel_miptree_map() signature to be more 64-bit safe

2014-11-20 Thread Ian Romanick
On 11/19/2014 09:18 PM, Kenneth Graunke wrote: > On Wednesday, November 19, 2014 02:13:03 PM Ian Romanick wrote: >> On 11/18/2014 09:11 PM, Chad Versace wrote: >>> This patch should diminish the likelihood of pointer arithmetic overflow >>> bugs, like the one fixed by b69c7c5dac. >>> >>> Change the

[Mesa-dev] [PATCH] radeonsi: use minnum and maxnum LLVM intrinsics for MIN and MAX opcodes

2014-11-20 Thread Marek Olšák
From: Marek Olšák So far it has been compiled into pretty ugly code (8 instructions or so for either opcode). --- src/gallium/drivers/radeonsi/si_shader.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader

[Mesa-dev] [Bug 86480] Mesa 10.4.0-devel implementation error: unexpected format GL_DEPTH24_STENCIL8 in _mesa_choose_tex_format()

2014-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86480 Benjamin Bellec changed: What|Removed |Added CC||b.bel...@gmail.com -- You are receivi

Re: [Mesa-dev] [PATCH] radeonsi: use minnum and maxnum LLVM intrinsics for MIN and MAX opcodes

2014-11-20 Thread Tom Stellard
On Thu, Nov 20, 2014 at 10:21:07PM +0100, Marek Olšák wrote: > From: Marek Olšák > Reviewed-by: Tom Stellard > So far it has been compiled into pretty ugly code (8 instructions or so > for either opcode). > --- > src/gallium/drivers/radeonsi/si_shader.c | 7 +++ > 1 file changed, 7 insert

Re: [Mesa-dev] [PATCH 1/9] i915: Only use TEXCOORDTYPE_VECTOR with cube maps on gen2

2014-11-20 Thread Ian Romanick
On 11/20/2014 11:13 AM, Ville Syrjälä wrote: > On Thu, Nov 20, 2014 at 09:59:00AM -0800, Ian Romanick wrote: >> On 08/06/2014 11:56 AM, ville.syrj...@linux.intel.com wrote: >>> From: Ville Syrjälä >>> >>> Check that the target is GL_TEXTURE_CUBE_MAP before emitting >>> TEXCOORDTYPE_VECTOR texture

[Mesa-dev] [PATCH 3/3] nine: Drop use of TGSI_OPCODE_CND.

2014-11-20 Thread Eric Anholt
From: Jose Fonseca This was the only state tracker emitting it, and hardware was just having to lower it anyway (or failing to lower it at all). v2: Extracted from a larger patch by Jose (which also dropped DP2A), fixed to actually not reference TGSI_OPCODE_CND. Change by anholt. --- src/g

[Mesa-dev] [PATCH 2/3] nine: Don't reference the dead TGSI_OPCODE_NRM.

2014-11-20 Thread Eric Anholt
From: Jose Fonseca The translation is lowering it to not using TGSI_OPCODE_NRM, anyway. v2: Extracted from a larger patch by Jose that also dropped DP2A usage. --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state

[Mesa-dev] [PATCH 1/3] nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

2014-11-20 Thread Eric Anholt
--- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index cc027b4..9b324c3 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++

Re: [Mesa-dev] [PATCH 1/3] nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

2014-11-20 Thread Axel Davy
Hi, Series looks good. You can add my r-b. Do you want also to remove the DP2A reference like did Jose patch ? Axel Davy On 20/11/2014 23:31, Eric Anholt wrote : --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/galliu

Re: [Mesa-dev] [PATCH 3/3] nine: Drop use of TGSI_OPCODE_CND.

2014-11-20 Thread Jose Fonseca
Reviewed-by: Jose Fonseca for the series. Jose On 20/11/14 22:31, Eric Anholt wrote: From: Jose Fonseca This was the only state tracker emitting it, and hardware was just having to lower it anyway (or failing to lower it at all). v2: Extracted from a larger patch by Jose (which also droppe

Re: [Mesa-dev] [PATCH 6/7] i965: Just return void from brw_try_draw_prims

2014-11-20 Thread Kenneth Graunke
On Thursday, November 20, 2014 11:14:54 AM Ian Romanick wrote: > From: Ian Romanick Suggested commit message addition: We used to use the return value to indicate whether software fallbacks were necessary, but we haven't in years. Reviewed-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i96

Re: [Mesa-dev] [PATCH 0/7] valid-to-render house keeping

2014-11-20 Thread Kenneth Graunke
On Thursday, November 20, 2014 11:14:48 AM Ian Romanick wrote: > This little series is just a bit of house keeping in the valid-to-render > path. There is a follow-up series in progress that tries to optimize > some of these paths for CPU-bound workloads. > > The whole series has been reordered s

Re: [Mesa-dev] [PATCH 1/7] mesa: Generate GL_INVALID_OPERATION when drawing w/o a VAO in core profile

2014-11-20 Thread Kenneth Graunke
On Thursday, November 20, 2014 11:14:49 AM Ian Romanick wrote: > From: Ian Romanick > > GL 3-ish versions of the spec are less clear that an error should be > generated here, so Ken (and I during review) just missed it in 1afe335. > > Signed-off-by: Ian Romanick > Cc: Kenneth Graunke > --- >

Re: [Mesa-dev] [PATCH 03/29] mesa: Do not assert on integer<->non-integer direct pack/unpack fast paths

2014-11-20 Thread Jason Ekstrand
On Thu, Nov 20, 2014 at 12:29 AM, Iago Toral wrote: > It is explained here: > https://bugs.freedesktop.org/show_bug.cgi?id=84566#c35 > > So one example of this was a glReadPixels where we want to store the > pixel data as RGBA UINT, but the render buffer format we read from is > MESA_FORMAT_B8G8

Re: [Mesa-dev] [PATCH 03/29] mesa: Do not assert on integer<->non-integer direct pack/unpack fast paths

2014-11-20 Thread Jason Ekstrand
On Thu, Nov 20, 2014 at 9:33 PM, Jason Ekstrand wrote: > > > On Thu, Nov 20, 2014 at 12:29 AM, Iago Toral wrote: > >> It is explained here: >> https://bugs.freedesktop.org/show_bug.cgi?id=84566#c35 >> >> So one example of this was a glReadPixels where we want to store the >> pixel data as RGBA U

Re: [Mesa-dev] [PATCH 06/29] mesa: Avoid pack/unpack fast paths if base internal format != base format

2014-11-20 Thread Iago Toral
On Thu, 2014-11-20 at 10:49 -0800, Jason Ekstrand wrote: > > > On Wed, Nov 19, 2014 at 11:58 PM, Iago Toral > wrote: > On Wed, 2014-11-19 at 11:57 -0800, Jason Ekstrand wrote: > > A couple of general comments on this patch: > > > > > > 1) The prerequisites

Re: [Mesa-dev] [PATCH 02/29] mesa: Set normalized=true for float array formats.

2014-11-20 Thread Iago Toral
On Thu, 2014-11-20 at 10:40 -0800, Jason Ekstrand wrote: > > > On Wed, Nov 19, 2014 at 11:24 PM, Iago Toral > wrote: > Hi Jason, > > we discussed this some weeks ago actually, the detailed > explanation is > here: > https://bugs.freedesktop.org/sh