Re: [Mesa-dev] [RFC PATCH 1/5] i965: Add writes_accumulator flag

2014-03-21 Thread Matt Turner
On Fri, Mar 21, 2014 at 11:17 PM, Matt Turner wrote: > On Fri, Mar 21, 2014 at 7:33 AM, Juha-Pekka Heikkila > wrote: >> Our hardware has an "accumulator" register, which can be used to store >> intermediate results across multiple instructions. Many instructions >> can implicitly write a value t

Re: [Mesa-dev] [RFC PATCH 1/5] i965: Add writes_accumulator flag

2014-03-21 Thread Matt Turner
On Fri, Mar 21, 2014 at 7:33 AM, Juha-Pekka Heikkila wrote: > Our hardware has an "accumulator" register, which can be used to store > intermediate results across multiple instructions. Many instructions > can implicitly write a value to the accumulator in addition to their > normal destination r

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-21 Thread Jonathan Gray
On Sat, Mar 22, 2014 at 03:05:41PM +1100, Jonathan Gray wrote: > On Sat, Mar 22, 2014 at 12:10:26AM +, Emil Velikov wrote: > > On 19/03/14 01:06, Jonathan Gray wrote: > > > On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: > > >> On 18/03/14 14:59, Jonathan Gray wrote: > > >>> Signe

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-21 Thread Jonathan Gray
On Sat, Mar 22, 2014 at 12:10:26AM +, Emil Velikov wrote: > On 19/03/14 01:06, Jonathan Gray wrote: > > On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: > >> On 18/03/14 14:59, Jonathan Gray wrote: > >>> Signed-off-by: Jonathan Gray > >>> --- > >> Hi Jonathan > >> > >> While the s

[Mesa-dev] [Bug 76188] EGL_EXT_image_dma_buf_import fd ownership is incorrect

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76188 --- Comment #3 from veb...@hotmail.fr --- As an additional comment, I would like to add that glamor uses EGL_EXT_image_dma_buf_import with the new behaviour (actually I didn't know the spec was updated in December, but I knew the decision was take

[Mesa-dev] [PATCH 1/2] mesa: Stop skipping the FinishRenderTexture calls for winsys FBOs.

2014-03-21 Thread Eric Anholt
Now that BindRenderbufferTexImage() is a thing that drivers can do, winsys FBOs *can* have NeedsFinishRenderTexture set. v2: Keep the short-circuit for non-BindRenderbufferTexImage() drivers (review by Ken). --- src/mesa/main/fbobject.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(

[Mesa-dev] [PATCH 2/2] i965: Change the winsys MSAA blits from blorp to meta.

2014-03-21 Thread Eric Anholt
This gets us equivalent code paths on BDW and pre-BDW, except for stencil (where we don't have MSAA stencil resolve code yet) v2: Move the new meta code to brw_meta_updownsample.c, name it brw_meta_updownsample(), add a comment about intel_rb_storage_first_mt_slice(), and rename that funct

[Mesa-dev] [PATCH 1/4] i965: Add an env var for forcing window system MSAA.

2014-03-21 Thread Eric Anholt
Sometimes it would be nice to benchmark some app with MSAA versus not, but it doesn't offer the controls you want. Just provide a handy knob to force the issue. --- src/mesa/drivers/dri/i965/intel_screen.c | 15 +++ src/mesa/drivers/dri/i965/intel_screen.h | 2 ++ 2 files changed, 17

[Mesa-dev] [PATCH 4/4] i965: Skip reallocating the private MSAA miptree, unless it's resized.

2014-03-21 Thread Eric Anholt
Even if the singlesample_mt got reopened from DRI due to pageflipping/buffer swapping, our private miptree shouldn't need any changes. Improves performance of a little swapbuffers-loving microbenchmark with MSAA forced on, by 1.2371% +/- 0.624802% (n=102) --- src/mesa/drivers/dri/i965/intel_mipma

[Mesa-dev] [PATCH 3/4] i965: Simplify the no-reopening-the-winsys-buffer tests.

2014-03-21 Thread Eric Anholt
The formatting was weird, and the tests were duplicated, and it is guaranteed that mt->region exists. --- src/mesa/drivers/dri/i965/brw_context.c | 38 ++--- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/m

[Mesa-dev] [PATCH 2/4] i965: Don't forget to free the old singlesample_mt.

2014-03-21 Thread Eric Anholt
Fixes a memory leak with MSAA winsys buffers since my move of singlesample_mt to the rb in 4e0924c5de5f3964e4ca81f923d877dbb59fad0a --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/driver

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-21 Thread Emil Velikov
On 19/03/14 01:06, Jonathan Gray wrote: > On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: >> On 18/03/14 14:59, Jonathan Gray wrote: >>> Signed-off-by: Jonathan Gray >>> --- >> Hi Jonathan >> >> While the summary covers what the patch does, the *ahem* commit message >> fails to expla

[Mesa-dev] [PATCH] mesa: Skip clearing color buffers when color writes are disabled.

2014-03-21 Thread Kenneth Graunke
WebGL Aquarium in Chrome 24 actually hits this. v2: Move to core Mesa (wisely suggested by Ian); only consider components which actually exist. Signed-off-by: Kenneth Graunke Cc: Ian Romanick Cc: Paul Berry Cc: Anuj Phogat --- src/mesa/main/clear.c | 19 ++- 1 file change

[Mesa-dev] [PATCH 02/10] mesa: Add error condition for format=STENCIL_INDEX in glGetTexImage()

2014-03-21 Thread Anuj Phogat
>From OpenGL 4.0 spec, page 306: "Calling GetTexImage with a format of STENCIL_INDEX causes the error INVALID_ENUM." Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgeti

[Mesa-dev] [PATCH 06/10] mesa: Allow srcFormat=GL_DEPTH_STENCIL in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
_mesa_texstore_z24_s8() and _mesa_texstore_z32f_x24s8() are capable of handling GL_DEPTH_STENCIL format. So, allow it in both the functions. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/texsto

[Mesa-dev] [PATCH 05/10] mesa: Add missing types in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
Depth-stencil teture targets are allowed to use source data of type GL_UNSIGNED_INT_24_8_EXT and GL_FLOAT_32_UNSIGNED_INT_24_8_REV. Fixes few crashes in Khronos OpenGL CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 8 ++-- 1 file changed, 6 insertion

[Mesa-dev] [PATCH 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-21 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 79 ++- src/mesa/main/format_unpack.h | 5 +++ 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 7abbe46..1

[Mesa-dev] [PATCH 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-03-21 Thread Anuj Phogat
OpenGL 4.0 spec, page 306 suggests an INVALID_OPERATION in glGetTexImage if : "format is one of the integer formats in table 3.3 and the internal format of the texture image is not integer, or format is not one of the integer formats in table 3.3 and the internal format is integer." Cc:

[Mesa-dev] [PATCH 08/10] mesa: Add new helper function _mesa_unpack_depth_stencil_row()

2014-03-21 Thread Anuj Phogat
This patch makes non-functional changes in the code. New helper function added here will make it easier to support more data types in the following patches. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 24 src/mesa/main/format_unpack.h | 5 -

[Mesa-dev] [PATCH 07/10] mesa: Remove redundant if checks in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
This patch contains non-functional changes. Assertion checks made earlier in the functions make the if checks redundant. So, remove the if checks and unindent the code in if block. Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 170 ++- 1 fi

[Mesa-dev] [PATCH 04/10] i965: Fix crash in do_blit_readpixels()

2014-03-21 Thread Anuj Phogat
Fixes a crash in Khronos CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_pixel_read.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_pixel_read.c b/src/mesa/drivers/dri/i965/intel_pixel_read.c index 600d288

[Mesa-dev] [PATCH 01/10] mesa: Add entry for extension ARB_texture_stencil8

2014-03-21 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/mtypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a0d893c..0b754b1 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3535,6 +3535,7 @@ struct gl_extensions GLb

[Mesa-dev] [PATCH 10/10] mesa: Allow FLOAT_32_UNSIGNED_INT_24_8_REV in get_tex_depth_stencil()

2014-03-21 Thread Anuj Phogat
Fixes a crash in Khronos OpenGL CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 7129d4c..733985b 100644 --- a/src/mesa/

Re: [Mesa-dev] [PATCH 1/4] i965: Print number of multisamples in INTEL_DEBUG=blorp output.

2014-03-21 Thread Dylan Baker
On Friday, March 21, 2014 04:47:29 Kenneth Graunke wrote: > This lets us distinguish MSAA resolves from other ordinary blits. > > Signed-off-by: Kenneth Graunke > Cc: Dylan Baker > Cc: Keith Packard > Cc: Eric Anholt > --- > src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 8 > 1 file c

Re: [Mesa-dev] [PATCH] i965: Drop BLT TexSubImage Y-tiling restriction on Gen6+.

2014-03-21 Thread Anuj Phogat
On Thu, Mar 20, 2014 at 4:02 PM, Kenneth Graunke wrote: > Currently, we don't use this path on Sandybridge because we suspect > other paths will be faster. But we potentially could. If we do, we > should allow it to support Y-tiled BLTs. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/driv

Re: [Mesa-dev] [PATCH] i965: Avoid dependency hints on math opcodes

2014-03-21 Thread Mike Stroyan
On Wed, Mar 19, 2014 at 3:16 PM, Matt Turner wrote: > - Does the broken behavior depend on the hardware generation? I.e., > broken on Ivy Bridge and Haswell but not Ironlake? > - There are ~12 math ops. Are the dependency control hints broken for > all of them, or just exp2? The problem with NoD

Re: [Mesa-dev] [PATCH] i965: Drop BLT TexSubImage Y-tiling restriction on Gen6+.

2014-03-21 Thread Eric Anholt
Kenneth Graunke writes: > Currently, we don't use this path on Sandybridge because we suspect > other paths will be faster. But we potentially could. If we do, we > should allow it to support Y-tiled BLTs. > > Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt pgpT1CowWMQxC.pgp Descri

Re: [Mesa-dev] [PATCH] i965/fs: Don't emit saturates to do UNORM color clamping.

2014-03-21 Thread Eric Anholt
Kenneth Graunke writes: > Traditionally, we've implemented fragment color clamping by emitting > "mov.sat" in the fragment shader's final color write code, clamping > the output to [0, 1] prior to blending. (When clamping is off, we > use a regular "mov".) This means we have to recompile based

[Mesa-dev] [Bug 70410] egl-static/Makefile: linking fails with llvm >= 3.4

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70410 --- Comment #23 from Dave Witbrodt --- (In reply to comment #22) > > But I still cannot build without attachment 91725 [details] above. The LLVM > > fix referenced in this bug seems to have made it upstream (rev 202719), but > > that hasn't prev

Re: [Mesa-dev] [PATCH 1/2] mesa: Move TextureView layer error checks before dimension checking.

2014-03-21 Thread Anuj Phogat
On Thu, Mar 20, 2014 at 2:18 AM, Kenneth Graunke wrote: > If the number of layers is invalid, we're supposed to return > INVALID_VALUE. _mesa_legal_texture_dimensions detects some of these > cases (i.e. number of layers not being divisible by 6 for cubes), but > results in an INVALID_OPERATION er

[Mesa-dev] Wrong colors in 3D apps on big-endian systems

2014-03-21 Thread Christian Zigotzky
Tom, Thanks for your answer. On 21.03.2014 17:51, Tom Stellard wrote: On Fri, Mar 21, 2014 at 05:47:56PM +0100, Christian Zigotzky wrote: Hi All, I have compiled LLVM 3.4 and Mesa 10.0.4 without any changes. Here is the result of this test. -> glxinfo | grep OpenGL terminate called after t

Re: [Mesa-dev] [PATCH 1/4] i965: Print number of multisamples in INTEL_DEBUG=blorp output.

2014-03-21 Thread Anuj Phogat
On Fri, Mar 21, 2014 at 4:47 AM, Kenneth Graunke wrote: > This lets us distinguish MSAA resolves from other ordinary blits. > > Signed-off-by: Kenneth Graunke > Cc: Dylan Baker > Cc: Keith Packard > Cc: Eric Anholt > --- > src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 8 > 1 file ch

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 --- Comment #6 from Jonathan Gray --- Well the changes to not get the drm driver from the x server leaves non udev system with 'unknown chipset' and gpu hangs. So this patch alone isn't going to help matters on stable much. Even master needs so

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 --- Comment #5 from Fabio Pedretti --- The patch should also be applied on 10.1 brach. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@list

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 --- Comment #4 from Jonathan Gray --- Yes, the updated patch seems to have the --disable-dri3 behaviour by default here on OpenBSD. Thanks. -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [PATCHv3] configure: enable dri3 only for linux

2014-03-21 Thread Emil Velikov
Currently only linux can make use of dri3, so it would make sense to enable it explicitly for the platform. Drop a duplicated libudev check while we're at it. v3: Properly handle dri3 and reword commit message. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76377 Signed-off-by: Emil Velik

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 Emil Velikov changed: What|Removed |Added Attachment #96176|0 |1 is obsolete|

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 --- Comment #2 from Jonathan Gray --- Thanks, though perhaps the logic of the test would be better inverted? You seem to have missed disabling dri3 on gnu* (hurd) for example. Passing --disable-dri3 to configure also disables the test for dri3p

[Mesa-dev] [Bug 76377] DRI3 should only be enabled on Linux due to a udev dependency

2014-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76377 --- Comment #1 from Emil Velikov --- Created attachment 96176 --> https://bugs.freedesktop.org/attachment.cgi?id=96176&action=edit configure: drop duplicated libudev check Thanks for the report Jonathan. FWIW there is a bit of confusion wrt u

[Mesa-dev] [PATCHv2] configure: drop duplicated libudev check

2014-03-21 Thread Emil Velikov
For the purposes of configure.ac --enable-dri3 can be considered a subset of --enable-dri where the latter already checks for libudev. Additionally it's done in a platform aware manner, meaning that libudev will be required only on linux. v2: Disable dri3 on non-linux platforms. Bugzilla: https:/

Re: [Mesa-dev] [PATCH 2/4] i965: Skip doing color clears if color writes are disabled.

2014-03-21 Thread Ian Romanick
On 03/21/2014 04:47 AM, Kenneth Graunke wrote: > WebGL Aquarium in Chrome 24 actually hits this. > > Signed-off-by: Kenneth Graunke > Cc: Dylan Baker > Cc: Keith Packard > Cc: Eric Anholt > --- > src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 5 + > 1 file changed, 5 insertions(+) > > d

[Mesa-dev] [PATCH] configure: drop duplicated libudev check

2014-03-21 Thread Emil Velikov
For the purposes of configure.ac --enable-dri3 can be considered a subset of --enable-dri where the latter already checks for libudev. Additionally it's done in a platform aware manner, meaning that libudev will be required only on linux. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=7637

Re: [Mesa-dev] Wrong colors in 3D apps on big-endian systems

2014-03-21 Thread Tom Stellard
On Fri, Mar 21, 2014 at 05:47:56PM +0100, Christian Zigotzky wrote: > Hi All, > > I have compiled LLVM 3.4 and Mesa 10.0.4 without any changes. > > Here is the result of this test. > > -> glxinfo | grep OpenGL > > terminate called after throwing an instance of 'std::bad_alloc' > what(): std:

[Mesa-dev] Wrong colors in 3D apps on big-endian systems

2014-03-21 Thread Christian Zigotzky
Hi All, I have compiled LLVM 3.4 and Mesa 10.0.4 without any changes. Here is the result of this test. -> glxinfo | grep OpenGL terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc -> LIBGL_DEBUG=verbose glxinfo | grep OpenGL libGL: OpenDriver: trying /us

Re: [Mesa-dev] Questions regarding KHR_debug for OpenGL ES

2014-03-21 Thread Felipe Tonello
ping? ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/4] i965: For color clears, only disable writes to components that exist.

2014-03-21 Thread Paul Berry
On 21 March 2014 04:47, Kenneth Graunke wrote: > The SIMD16 replicated FB write message only works if we don't need the > color calculator to mask our framebuffer writes. Previously, we bailed > on it if color_mask wasn't . However, this was > needlessly strict for formats with fewer than four

[Mesa-dev] [RFC PATCH 1/5] i965: Add writes_accumulator flag

2014-03-21 Thread Juha-Pekka Heikkila
Our hardware has an "accumulator" register, which can be used to store intermediate results across multiple instructions. Many instructions can implicitly write a value to the accumulator in addition to their normal destination register. This is enabled by the "AccWrEn" flag. This patch introduc

[Mesa-dev] [RFC PATCH 2/5] i965/vec4: Add support for the MAC instruction.

2014-03-21 Thread Juha-Pekka Heikkila
This allows us to generate the MAC (multiply-accumulate) instruction, which can be used to implement some expressions in fewer instructions than doing a series of MUL and ADDs. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/brw_eu.h | 1 + src/mesa/drivers/dri/i96

[Mesa-dev] [RFC PATCH 3/5] i965/vec4: Change vec4_visitor::emit_lrp to use MAC for gen<6

2014-03-21 Thread Juha-Pekka Heikkila
This allows us to emit ADD/MUL/MAC instead of MUL/ADD/MUL/ADD, saving one instruction and two temporary registers. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src

[Mesa-dev] [RFC PATCH 4/5] i965/fs: Add support for the MAC instruction.

2014-03-21 Thread Juha-Pekka Heikkila
This allows us to generate the MAC (multiply-accumulate) instruction, which can be used to implement some expressions in fewer instructions than doing a series of MUL and ADDs. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/

[Mesa-dev] [RFC PATCH 5/5] i965/fs: Change fs_visitor::emit_lrp to use MAC for gen<6

2014-03-21 Thread Juha-Pekka Heikkila
This allows us to emit ADD/MUL/MAC instead of MUL/ADD/MUL/ADD, saving one instruction and two temporary registers. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/

[Mesa-dev] [RFC PATCH 0/5] Using MAC to optimize LRP on i965 gen < 6

2014-03-21 Thread Juha-Pekka Heikkila
Thanks Matt, Eric and Kenneth for the comments, I did rework my set to look a bit different. I noticed Matt has partially overlapping set of patches about dead code elimination and as for my set I did not have access this week to Ironlake machine thus calling this 'RFC'y set. Kenneth, I think pedan

Re: [Mesa-dev] [PATCH] i965: Enable ARB_vertex_type_10f_11f_11f_rev for Gen4/5 also.

2014-03-21 Thread Kenneth Graunke
On 03/21/2014 03:00 AM, Chris Forbes wrote: > Tested on ILK and CTG (with the GL3isms taken out of the piglits). > > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/intel_extensions.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 1/4] i965: Print number of multisamples in INTEL_DEBUG=blorp output.

2014-03-21 Thread Kenneth Graunke
This lets us distinguish MSAA resolves from other ordinary blits. Signed-off-by: Kenneth Graunke Cc: Dylan Baker Cc: Keith Packard Cc: Eric Anholt --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH 3/4] i965: For color clears, only disable writes to components that exist.

2014-03-21 Thread Kenneth Graunke
The SIMD16 replicated FB write message only works if we don't need the color calculator to mask our framebuffer writes. Previously, we bailed on it if color_mask wasn't . However, this was needlessly strict for formats with fewer than four components - only the components that actually exist matt

[Mesa-dev] [PATCH 4/4] i965: Report the type of color clear in INTEL_DEBUG=blorp.

2014-03-21 Thread Kenneth Graunke
It's useful to know whether a clear is fast (MCS-based), using the SIMD16 repdata message, or slow. Signed-off-by: Kenneth Graunke Cc: Dylan Baker Cc: Keith Packard Cc: Eric Anholt --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 11 +-- 1 file changed, 9 insertions(+), 2 deletions

[Mesa-dev] [PATCH 2/4] i965: Skip doing color clears if color writes are disabled.

2014-03-21 Thread Kenneth Graunke
WebGL Aquarium in Chrome 24 actually hits this. Signed-off-by: Kenneth Graunke Cc: Dylan Baker Cc: Keith Packard Cc: Eric Anholt --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa

[Mesa-dev] [PATCH] i965: Enable ARB_vertex_type_10f_11f_11f_rev for Gen4/5 also.

2014-03-21 Thread Chris Forbes
Tested on ILK and CTG (with the GL3isms taken out of the piglits). Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_exte