[Mesa-dev] [Bug 42688] attribute can't be used when it used fixed function vertex

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=42688 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 56836] xdemo/texture_from_pixmap failed to create drawable on swrast

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56836 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 62202] Mesa demo dest window of wincopy flickers while toggle f/b buffer on software render

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=62202 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 90797] [ALL bisected] Mesa change cause performance case manhattan fail.

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90797 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 54805] gl_ClipVertex support horribly broken with software TNL

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54805 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 79629] [Dri3 bisected] piglit glx_GLX_ARB_create_context_current_with_no_framebuffer fail

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79629 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 13978] [Mesa core] glGetIntegerv(GL_DRAW_BUFFER0) returns wrong buffer enum

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=13978 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [Bug 29418] ARB_vp: large offsets when using relative addressing

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29418 Shuang He changed: What|Removed |Added CC||christophe.prig...@intel.co

[Mesa-dev] [PATCH] winsys/radeon: Unmap GPU VM address range when destroying BO

2015-06-16 Thread Michel Dänzer
From: Michel Dänzer But only when doing so is safe according to the RADEON_INFO_VA_UNMAP_WORKING kernel query. This avoids GPU VM address range conflicts when the BO has other references than the GEM handle being closed, e.g. when the BO is shared. Bugzilla: https://bugs.freedesktop.org/show_bu

Re: [Mesa-dev] [PATCH] winsys/radeon: Unmap GPU VM address range when destroying BO

2015-06-16 Thread Christian König
On 16.06.2015 10:28, Michel Dänzer wrote: From: Michel Dänzer But only when doing so is safe according to the RADEON_INFO_VA_UNMAP_WORKING kernel query. This avoids GPU VM address range conflicts when the BO has other references than the GEM handle being closed, e.g. when the BO is shared. T

Re: [Mesa-dev] [PATCH] winsys/radeon: Unmap GPU VM address range when destroying BO

2015-06-16 Thread Michel Dänzer
On 16.06.2015 17:34, Christian König wrote: > On 16.06.2015 10:28, Michel Dänzer wrote: >> From: Michel Dänzer >> >> But only when doing so is safe according to the >> RADEON_INFO_VA_UNMAP_WORKING kernel query. >> >> This avoids GPU VM address range conflicts when the BO has other >> references th

[Mesa-dev] [PATCH] glsl: Fail linkage when UBO exceeds GL_MAX_UNIFORM_BLOCK_SIZE.

2015-06-16 Thread Jose Fonseca
It's not totally clear whether other Mesa drivers can safely cope with over-sized UBOs, but at least for llvmpipe receiving a UBO larger than its limit causes problems, as it won't fit into its internal display lists. This fixes piglit "arb_uniform_buffer_object-maxuniformblocksize fsexceed" witho

[Mesa-dev] [Bug 65525] [llvmpipe] lp_scene.h:210:lp_scene_alloc: Assertion `size <= (64 * 1024)' failed.

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65525 José Fonseca changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@list

Re: [Mesa-dev] [PATCH] mesa: set override_version per api version override

2015-06-16 Thread Martin Peres
On 12/06/15 07:30, Tapani Pälli wrote: On 06/11/2015 09:05 PM, Jordan Justen wrote: On 2015-06-10 13:03:20, Jordan Justen wrote: Whoops. I re-wrote this last night: http://cgit.freedesktop.org/~jljusten/mesa/commit/?h=cs-33&id=3ebe7b79 On 2015-06-04 21:41:15, Tapani Pälli wrote: Before 9b5

Re: [Mesa-dev] [PATCH] mesa: set override_version per api version override

2015-06-16 Thread Martin Peres
On 16/06/15 13:38, Martin Peres wrote: On 12/06/15 07:30, Tapani Pälli wrote: On 06/11/2015 09:05 PM, Jordan Justen wrote: On 2015-06-10 13:03:20, Jordan Justen wrote: Whoops. I re-wrote this last night: http://cgit.freedesktop.org/~jljusten/mesa/commit/?h=cs-33&id=3ebe7b79 On 2015-06-04 2

Re: [Mesa-dev] [PATCH] winsys/radeon: Unmap GPU VM address range when destroying BO

2015-06-16 Thread Christian König
On 16.06.2015 10:56, Michel Dänzer wrote: On 16.06.2015 17:34, Christian König wrote: On 16.06.2015 10:28, Michel Dänzer wrote: From: Michel Dänzer But only when doing so is safe according to the RADEON_INFO_VA_UNMAP_WORKING kernel query. This avoids GPU VM address range conflicts when the B

[Mesa-dev] [PATCH v3 2/6] i965: Enable resource streamer for the batchbuffer

2015-06-16 Thread Abdiel Janulgue
Check first if the hardware and kernel supports resource streamer. If this is allowed, tell the kernel to enable the resource streamer enable bit on MI_BATCHBUFFER_START by specifying I915_EXEC_RESOURCE_STREAMER execbuffer flags. v2: - Use new I915_PARAM_HAS_RESOURCE_STREAMER ioctl to check if ker

Re: [Mesa-dev] [PATCH v3 2/6] i965: Enable resource streamer for the batchbuffer

2015-06-16 Thread Chris Wilson
On Tue, Jun 16, 2015 at 03:08:56PM +0300, Abdiel Janulgue wrote: > Check first if the hardware and kernel supports resource streamer. If this > is allowed, tell the kernel to enable the resource streamer enable bit on > MI_BATCHBUFFER_START by specifying I915_EXEC_RESOURCE_STREAMER > execbuffer fla

Re: [Mesa-dev] [dri2proto] Declare DRI2ParamXHasBufferAge

2015-06-16 Thread Martin Peres
On 20/01/15 22:53, Ian Romanick wrote: On 01/19/2015 03:00 AM, Chris Wilson wrote: In order for X/DDX to reuse a driver specific field of the DRI2GetBuffers reply, we need to declare the change in semantics. To indicate that the flags field now continues the last swap buffers count instead, we i

Re: [Mesa-dev] [PATCH v3 2/6] i965: Enable resource streamer for the batchbuffer

2015-06-16 Thread Abdiel Janulgue
On 06/16/2015 03:20 PM, Chris Wilson wrote: > On Tue, Jun 16, 2015 at 03:08:56PM +0300, Abdiel Janulgue wrote: >> Check first if the hardware and kernel supports resource streamer. If this >> is allowed, tell the kernel to enable the resource streamer enable bit on >> MI_BATCHBUFFER_START by spec

Re: [Mesa-dev] [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*

2015-06-16 Thread Marc-André Lureau
Hi Marek On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák wrote: > The idea of drm_driver.h and the DRM prefix is that it's meant to be > Linux-specific, and winsys_handle should be considered an opaque > structure by most state trackers. I think VMWare have their own > definition of winsys_handle

[Mesa-dev] [PATCH] i965/skl: Fix aligning mt->total_width to the block size

2015-06-16 Thread Neil Roberts
brw_miptree_layout_2d tries to ensure that mt->total_width is a multiple of the compressed block size, presumably because it wouldn't be possible to make an image that has a fraction of a block. However it was doing this by aligning mt->total_width to align_w. Previously align_w has been used as a

Re: [Mesa-dev] [xorg 1/3] dri2: Allow GetBuffers to match any format

2015-06-16 Thread Martin Peres
On 20/01/15 22:49, Ian Romanick wrote: On 01/19/2015 03:00 AM, Chris Wilson wrote: Since the introduction of DRI2GetBuffersWithFormat, the old DRI2GetBuffers interface would always recreate all buffers all the time as it was no longer agnostic to the format value being set by the DDXes. This cau

[Mesa-dev] Fwd: [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*

2015-06-16 Thread Marek Olšák
On Tue, Jun 16, 2015 at 2:42 PM, Marc-André Lureau wrote: > Hi Marek > > On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák wrote: >> >> The idea of drm_driver.h and the DRM prefix is that it's meant to be >> Linux-specific, and winsys_handle should be considered an opaque >> structure by most state t

Re: [Mesa-dev] Fwd: [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*

2015-06-16 Thread Marc-André Lureau
Hi On Tue, Jun 16, 2015 at 3:33 PM, Marek Olšák wrote: > On Tue, Jun 16, 2015 at 2:42 PM, Marc-André Lureau > wrote: > > Hi Marek > > > > On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák wrote: > >> > >> The idea of drm_driver.h and the DRM prefix is that it's meant to be > >> Linux-specific, and

Re: [Mesa-dev] Fwd: [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*

2015-06-16 Thread Marek Olšák
On Tue, Jun 16, 2015 at 3:44 PM, Marc-André Lureau wrote: > Hi > > On Tue, Jun 16, 2015 at 3:33 PM, Marek Olšák wrote: >> >> On Tue, Jun 16, 2015 at 2:42 PM, Marc-André Lureau >> wrote: >> > Hi Marek >> > >> > On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák wrote: >> >> >> >> The idea of drm_driv

[Mesa-dev] [Bug 71199] [llvmpipe] piglit gl-1.4-polygon-offset regression

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71199 --- Comment #10 from José Fonseca --- On me Mesa DRI Intel(R) Haswell Mobile I actually get the reverse problem: $ ./bin/gl-1.4-polygon-offset -auto Actual MRD is too large (may waste depth-buffer range) Ideal MRD at near plane is 5.96

Re: [Mesa-dev] [PATCH] glsl: Fail linkage when UBO exceeds GL_MAX_UNIFORM_BLOCK_SIZE.

2015-06-16 Thread Roland Scheidegger
This looks like a good idea to me. That said, llvmpipe would still crash if the declared size in the shader wouldn't exceed the max uniform block size, but the bound buffer does IIRC (the test doesn't test this but could be easily modified to do so). So, I'm wondering if we should do both - fail to

Re: [Mesa-dev] [PATCH] glsl: Fail linkage when UBO exceeds GL_MAX_UNIFORM_BLOCK_SIZE.

2015-06-16 Thread Ilia Mirkin
On Tue, Jun 16, 2015 at 10:22 AM, Roland Scheidegger wrote: > This looks like a good idea to me. > That said, llvmpipe would still crash if the declared size in the shader > wouldn't exceed the max uniform block size, but the bound buffer does > IIRC (the test doesn't test this but could be easily

Re: [Mesa-dev] Fwd: [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*

2015-06-16 Thread Brian Paul
On 06/16/2015 07:44 AM, Marc-André Lureau wrote: Hi On Tue, Jun 16, 2015 at 3:33 PM, Marek Olšák mailto:mar...@gmail.com>> wrote: On Tue, Jun 16, 2015 at 2:42 PM, Marc-André Lureau mailto:marcandre.lur...@gmail.com>> wrote: > Hi Marek > > On Mon, Jun 15, 2015 at 10:21 PM,

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/x11: Set version of swrastLoader to 2

2015-06-16 Thread Ian Romanick
Gak... I thought we fixed all of those. :( Reviewed-by: Ian Romanick On 06/15/2015 08:08 PM, Boyan Ding wrote: > which it actually implements instead of the newest version defined in > dri_interface.h > > Cc: "10.5 10.6" > Signed-off-by: Boyan Ding > --- > src/egl/drivers/dri2/platform_x11.c

Re: [Mesa-dev] [PATCH] glsl: Fail linkage when UBO exceeds GL_MAX_UNIFORM_BLOCK_SIZE.

2015-06-16 Thread Jose Fonseca
On 16/06/15 15:29, Ilia Mirkin wrote: On Tue, Jun 16, 2015 at 10:22 AM, Roland Scheidegger wrote: This looks like a good idea to me. That said, llvmpipe would still crash if the declared size in the shader wouldn't exceed the max uniform block size, but the bound buffer does IIRC (the test does

[Mesa-dev] [PATCH 07/14] mesa: Set green, blue channels to zero only for formats with these components

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 214a68a..fceb25d 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/driver

[Mesa-dev] [PATCH 05/14] meta: Abort meta pbo path if readpixels need signed-unsigned conversion

2015-06-16 Thread Anuj Phogat
Without this patch, piglit test fbo_integer_readpixels_sint_uint fails, when forced to use the meta pbo path. Signed-off-by: Anuj Phogat Cc: --- src/mesa/drivers/common/meta_tex_subimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/

[Mesa-dev] [PATCH 09/14] meta: Use _mesa_unpack_format_to_base_format() to handle integer formats

2015-06-16 Thread Anuj Phogat
_mesa_base_tex_format() doesn't handle GL_*_INTEGER formats. Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index fceb25d..c9e58d8 100644 --- a

[Mesa-dev] [PATCH 10/14] mesa: Add a helper function _mesa_need_luminance_to_rgb_conversion()

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat Cc: --- src/mesa/main/readpix.c | 18 ++ src/mesa/main/readpix.h | 4 2 files changed, 22 insertions(+) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 1038983..c98975f 100644 --- a/src/mesa/main/readpix.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 12/14] meta: Fix reading luminance texture as rgba in _mesa_meta_pbo_GetTexSubImage()

2015-06-16 Thread Anuj Phogat
After recent addition of pbo testing in piglit test getteximage-luminance, it fails on i965. This patch makes a sub test pass. This patch adds additional clear color operation which I think is better than falling back to software path. Signed-off-by: Anuj Phogat Cc: --- src/mesa/drivers/common

[Mesa-dev] [PATCH 01/14] mesa: Turn get_readpixels_transfer_ops() in to a global function

2015-06-16 Thread Anuj Phogat
This utility function is utilized in a later patch. Signed-off-by: Anuj Phogat Cc: --- Jenkins showed no piglit regressions with this series. src/mesa/main/readpix.c | 14 -- src/mesa/main/readpix.h | 6 ++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/me

[Mesa-dev] [PATCH 14/14] meta: Use _mesa_need_rgb_to_luminance_conversion() in decompress_texture_image()

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 6108d98..e123500 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common

[Mesa-dev] [PATCH 06/14] meta: Don't do fragment color clamping in case of ReadPixels

2015-06-16 Thread Anuj Phogat
Without this patch, piglit test arb_color_buffer_float-readpixels fails, when forced to use the meta pbo path. Signed-off-by: Anuj Phogat Cc: --- src/mesa/drivers/common/meta_tex_subimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/s

[Mesa-dev] [PATCH 08/14] mesa: Add a helper function _mesa_unpack_format_to_base_format()

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/main/glformats.c | 44 src/mesa/main/glformats.h | 3 +++ 2 files changed, 47 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index ac69fab..cac243c 100644 --- a/src/mesa/main/g

[Mesa-dev] [PATCH 03/14] mesa: Fix conditions to test signed, unsigned integer format

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat Cc: --- src/mesa/main/readpix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index caa2648..a9416ef 100644 --- a/src/mesa/main/readpix.c +++ b/src/mesa/main/readpix.c @@ -160,10 +160,12 @@ _mesa_readpixels_need

[Mesa-dev] [PATCH 13/14] mesa: Change the signature of _mesa_need_rgb_to_luminance_conversion()

2015-06-16 Thread Anuj Phogat
This allows us to handle cases when texImage->_BaseFormat doesn't match _mesa_format_get_base_format(texImage->Format). _BaseFormat is what we care about in this function. Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta_tex_subimage.c | 4 +++- src/mesa/main/readpix.c

[Mesa-dev] [PATCH 11/14] meta: Use _mesa_need_luminance_to_rgb_conversion() in decompress_texture_image()

2015-06-16 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index c9e58d8..6108d98 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers

[Mesa-dev] [PATCH 04/14] mesa: Add a mesa utility function _mesa_need_signed_unsigned_int_conversion()

2015-06-16 Thread Anuj Phogat
This utility function is used in a later patch. Signed-off-by: Anuj Phogat Cc: --- src/mesa/main/readpix.c | 32 ++-- src/mesa/main/readpix.h | 4 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c

[Mesa-dev] [PATCH 02/14] meta: Fix transfer operations check in meta pbo path for readpixels

2015-06-16 Thread Anuj Phogat
Without this patch, arb_color_buffer_float-readpixels test fails, when forced to use meta pbo path. Signed-off-by: Anuj Phogat Cc: --- src/mesa/drivers/common/meta_tex_subimage.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/common/meta_tex_subi

Re: [Mesa-dev] [PATCH] configure.ac: rename LLVM_VERSION_PATCH to avoid conflict with llvm-config.h

2015-06-16 Thread Emil Velikov
On 13 June 2015 at 19:16, Marek Olšák wrote: > From: Marek Olšák > > --- > configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index 34d1ac9..e6d947e 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -1929,7 +1929,7 @@ if test "

Re: [Mesa-dev] [PATCH 5/6] mesa: don't rebind constant buffers after every state change if GS is active

2015-06-16 Thread Emil Velikov
Hi Marek, Out of curiosity: Any rough idea of how much of a perf. improvement this might bring ? Would the hardware ignore the newly (re)bound const. bufs, when the values are unchanged ? Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop

Re: [Mesa-dev] [PATCH] configure.ac: rename LLVM_VERSION_PATCH to avoid conflict with llvm-config.h

2015-06-16 Thread Tom Stellard
On Tue, Jun 16, 2015 at 08:07:57PM +0100, Emil Velikov wrote: > On 13 June 2015 at 19:16, Marek Olšák wrote: > > From: Marek Olšák > > > > --- > > configure.ac | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/configure.ac b/configure.ac > > index 34d1ac9..e6d947e 10

[Mesa-dev] [RFC shader-db] Add support for shadertoy tests

2015-06-16 Thread Rob Clark
Attached script grabs shaders from shadertoy, and dumps them out as .shader_test files which can be run through shader-db for compiler testing. shadertoy only gives you a fragment shader (which works based on gl_FragCoord), so a generic vertex shader is used. And a blurb is inserted for the pre-d

Re: [Mesa-dev] [PATCH 5/6] mesa: don't rebind constant buffers after every state change if GS is active

2015-06-16 Thread Marek Olšák
There are probably 0 apps using GS, so the answer is 0. The hardware doesn't ignore anything. It only does what it's told to do. The radeonsi driver doesn't check if the state change is redundant or not. Marek On Tue, Jun 16, 2015 at 10:13 PM, Emil Velikov wrote: > Hi Marek, > > Out of curiosi

[Mesa-dev] [Bug 89819] WebGL Conformance swrast failure in conformance/uniforms/uniform-default-values.html

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89819 Luke changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH 1/2] i965/cs: Setup push constant data for uniforms

2015-06-16 Thread Jordan Justen
brw_upload_cs_push_constants was based on gen6_upload_push_constants. Signed-off-by: Jordan Justen --- These 2 patches allow this piglit to pass: tests/spec/arb_compute_shader/execution/basic-uniform-access-atomic.shader_test (Also requires overriding the GL version and some extensions...) s

[Mesa-dev] [PATCH 2/2] main/state: Flag new constants for compute shaders

2015-06-16 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/main/state.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index bede7fe..beb2721 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -278,6 +278,16 @@ update_program_constants(

[Mesa-dev] [PATCH] i965/compute: Fix undefined code with right_mask for SIMD32

2015-06-16 Thread Jordan Justen
Although we don't support SIMD32, krh pointed out that the left shift by 32 is undefined by C/C++ for 32-bit integers. Suggested-by: Kristian Høgsberg Signed-off-by: Jordan Justen Cc: Kristian Høgsberg --- src/mesa/drivers/dri/i965/brw_compute.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

Re: [Mesa-dev] [PATCH 2/2] main/state: Flag new constants for compute shaders

2015-06-16 Thread Marek Olšák
One question: Why? I just removed the same code for GS: http://cgit.freedesktop.org/mesa/mesa/commit/?id=42a3c1ec8471fc76eb6d3d6f1bd1739e24a5f33a Marek On Tue, Jun 16, 2015 at 11:21 PM, Jordan Justen wrote: > Signed-off-by: Jordan Justen > --- > src/mesa/main/state.c | 10 ++ > 1 file

[Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
Hi: I am new to this email list. I would like to get a help from you. I found a patch with number of 47790 which supports Intel Broadwell(BDW) system gen8 GPU. The author is Topi Pohjolainen. The description is in below. I need this patch to launch a virtual machine on BDW system in which we a

Re: [Mesa-dev] [PATCH v2 15/82] mesa: Initialize and free shader storage buffers

2015-06-16 Thread Jordan Justen
On 2015-06-03 00:01:05, Iago Toral Quiroga wrote: > --- > src/mesa/main/bufferobj.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c > index c5d4ada..a528787 100644 > --- a/src/mesa/main/bufferobj.c > +++ b/src/mes

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Anuj Phogat
Adding Topi to Cc. On Tue, Jun 16, 2015 at 3:08 PM, Meng, David wrote: > Hi: > I am new to this email list. I would like to get a help from you. > > I found a patch with number of 47790 which supports Intel Broadwell(BDW) > system gen8 GPU. The author is Topi Pohjolainen. The description is i

[Mesa-dev] [Bug 89818] WebGL Conformance conformance/textures/texture-size-limit.html -> OUT_OF_MEMORY

2015-06-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89818 Luke changed: What|Removed |Added CC||srol...@vmware.com --- Comment #1 from Luke ---

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
Thank you Anuj. -Original Message- From: Anuj Phogat [mailto:anuj.pho...@gmail.com] Sent: Tuesday, June 16, 2015 3:35 PM To: Meng, David Cc: mesa-dev@lists.freedesktop.org; Pohjolainen, Topi Subject: Re: [Mesa-dev] What branch to get patch 47790 Adding Topi to Cc. On Tue, Jun 16, 2015

Re: [Mesa-dev] [PATCH] i965/skl: Fix aligning mt->total_width to the block size

2015-06-16 Thread Anuj Phogat
On Tue, Jun 16, 2015 at 5:53 AM, Neil Roberts wrote: > brw_miptree_layout_2d tries to ensure that mt->total_width is a > multiple of the compressed block size, presumably because it wouldn't > be possible to make an image that has a fraction of a block. However > it was doing this by aligning mt->

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Kenneth Graunke
On Tuesday, June 16, 2015 10:08:38 PM Meng, David wrote: > Hi: > I am new to this email list. I would like to get a help from you. > > I found a patch with number of 47790 which supports Intel Broadwell(BDW) > system gen8 GPU. The author is Topi Pohjolainen. The description is in > below. > I

Re: [Mesa-dev] [PATCH] i965/compute: Fix undefined code with right_mask for SIMD32

2015-06-16 Thread Kenneth Graunke
On Tuesday, June 16, 2015 02:46:22 PM Jordan Justen wrote: > Although we don't support SIMD32, krh pointed out that the left shift > by 32 is undefined by C/C++ for 32-bit integers. > > Suggested-by: Kristian Høgsberg > Signed-off-by: Jordan Justen > Cc: Kristian Høgsberg > --- > src/mesa/driv

[Mesa-dev] [PATCHES] Tessellation is here

2015-06-16 Thread Marek Olšák
Hi, First, I'd like to thank Fabian Bieler, Chris Forbes, and Ilia Mirkin for their contributions to this. The development of tessellation has reached the point that the only way to make it better and more compliant is to write piglit tests that help find small bugs that are difficult to catch du

[Mesa-dev] [PATCH 10/46] mesa: take tessellation into account when validating GS input primitive mode

2015-06-16 Thread Marek Olšák
From: Marek Olšák I've reported the bug in the Khronos bugzilla. --- src/mesa/main/api_validate.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 3871765..401120a 100644 --- a/src/mesa/m

[Mesa-dev] [PATCH 07/46] mesa: add misc tessellation shader support

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/mesa/program/program.c | 27 src/mesa/program/program.h | 62 +- 2 files changed, 88 insertions(+), 1 deletion(-) diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index ffad395..2d03

[Mesa-dev] [PATCH 09/46] mesa: allow drawing of patch primitives

2015-06-16 Thread Marek Olšák
From: Chris Forbes Cosmetic changes and fixes by Marek. --- src/mesa/main/api_validate.c | 45 1 file changed, 45 insertions(+) diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 9c2e29e..3871765 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 02/46] mapi: add ARB_tessellation_shader

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/mapi/glapi/gen/ARB_tessellation_shader.xml | 62 ++ src/mapi/glapi/gen/gl_API.xml | 6 ++- src/mapi/glapi/gen/gl_enums.py | 1 + src/mesa/main/mtypes.h | 2 +- src/mesa/main/shaderapi.

[Mesa-dev] [PATCH 03/46] mesa: add tessellation shader structs

2015-06-16 Thread Marek Olšák
From: Fabian Bieler Marek: remove unused members, cleanup --- src/mesa/main/mtypes.h | 105 + 1 file changed, 105 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 086f553..12789f1 100644 --- a/src/mesa/main/mtypes.h

[Mesa-dev] [PATCH 05/46] mesa: add tessellation shader state and limits

2015-06-16 Thread Marek Olšák
From: Chris Forbes --- src/mesa/main/config.h| 8 src/mesa/main/context.c | 8 src/mesa/main/mtypes.h| 6 ++ src/mesa/main/shaderapi.c | 7 +++ 4 files changed, 29 insertions(+) diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 9c3baf4..833d8

[Mesa-dev] [PATCH 33/46] glsl: restrict indexing for writes to TCS outputs to gl_InvocationID

2015-06-16 Thread Marek Olšák
From: Chris Forbes Marek: handle ir_swizzle --- src/glsl/ast_to_hir.cpp | 69 + 1 file changed, 58 insertions(+), 11 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index fb957a1..7ffe169 100644 --- a/src/glsl/ast_to_hi

[Mesa-dev] [PATCH 23/46] glsl: allow linking of tessellation shaders.

2015-06-16 Thread Marek Olšák
From: Chris Forbes Marek: require a tess eval shader if a tess control shader is present --- src/glsl/link_interface_blocks.cpp | 11 +- src/glsl/link_varyings.cpp | 10 +- src/glsl/linker.cpp| 280 - 3 files changed, 294 insertions(+

[Mesa-dev] [PATCH 36/46] glsl: push vertex count determination down one level

2015-06-16 Thread Marek Olšák
From: Chris Forbes We have the prog here, so we don't need the caller to work this out for us. --- src/glsl/link_varyings.cpp | 12 ++-- src/glsl/link_varyings.h | 3 +-- src/glsl/linker.cpp| 13 - 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/sr

[Mesa-dev] [PATCH 11/46] mesa: support tess stages in glGetProgramPipelineiv

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/mesa/main/pipelineobj.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index b4795ff..591b1aa 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@

[Mesa-dev] [PATCH 19/46] mesa: don't allow drawing with tess ctrl shader and without tess eval shader

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/mesa/main/api_validate.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 401120a..9a5ac69 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -69,6 +69

[Mesa-dev] [PATCH 20/46] glsl: add tessellation shader parsing support.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/glsl/ast.h | 54 +++- src/glsl/ast_to_hir.cpp | 133 +++- src/glsl/ast_type.cpp | 112 - src/glsl/glsl_parser.yy | 118 +

[Mesa-dev] [PATCH 34/46] glsl: properly size unsized arrays in tess stages

2015-06-16 Thread Marek Olšák
From: Chris Forbes --- src/glsl/ast_to_hir.cpp | 49 +++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 7ffe169..32e7f7f 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_t

[Mesa-dev] [PATCH 28/46] glsl: don't lower variable indexing on non-patch tessellation inputs/outputs

2015-06-16 Thread Marek Olšák
From: Marek Olšák There is no way to lower them, because the array sizes are unknown at compile time. Based on a patch from: Fabian Bieler --- src/glsl/ir_optimization.h | 5 +-- src/glsl/lower_variable_index_to_cond_assign.cpp | 43 +--- src/glsl/tes

[Mesa-dev] [PATCH 25/46] glsl: lower gl_TessLevel* from float[n] to vecn.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler Similar to gl_ClipDistance -> gl_ClipDistanceMESA --- src/glsl/Makefile.sources | 1 + src/glsl/ir_optimization.h | 1 + src/glsl/link_varyings.cpp | 51 +++- src/glsl/link_varyings.h| 13 +- src/glsl/linker.cpp

[Mesa-dev] [PATCH 26/46] glsl: add "in" or "out" prefix to name when flattening interface blocks

2015-06-16 Thread Marek Olšák
From: Fabian Bieler This is to prevent a name conflict in tessellation shaders built-in interface blocks. --- src/glsl/lower_named_interface_blocks.cpp | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_int

[Mesa-dev] [PATCH 24/46] glsl: make lower_clip_distance work with tessellation shaders.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/glsl/lower_clip_distance.cpp | 185 ++- 1 file changed, 105 insertions(+), 80 deletions(-) diff --git a/src/glsl/lower_clip_distance.cpp b/src/glsl/lower_clip_distance.cpp index 01f028b..1ada215 100644 --- a/src/glsl/lower_clip_dis

[Mesa-dev] [PATCH 39/46] glsl: validate restrictions on use of barrier()

2015-06-16 Thread Marek Olšák
From: Chris Forbes With the exception of always-taken switch cases (which are indistinguishable from straight line code in our IR), this disallows use of the builtin barrier() function in all the places it may not appear. Signed-off-by: Chris Forbes --- src/glsl/linker.cpp | 99 +++

[Mesa-dev] [PATCH 30/46] glsl: relax unsized input/output block arrays for TCS/TES

2015-06-16 Thread Marek Olšák
From: Chris Forbes --- src/glsl/ast_to_hir.cpp | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 837bac7..fb957a1 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -59

[Mesa-dev] [PATCH 38/46] glsl: allow barrier() in tessellation control shaders

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/glsl/builtin_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index efab299..2175c66 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@

[Mesa-dev] [PATCH 44/46] glsl: fix locations of 2-dimensional varyings without varying packing

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/glsl/link_varyings.cpp | 37 - 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 5fa9ddf..6bd8dba 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_v

[Mesa-dev] [PATCH 14/46] mesa: allow setting of patch parameters.

2015-06-16 Thread Marek Olšák
From: Marek Olšák Based on a patch from Fabian Bieler . --- src/mesa/main/mtypes.h| 5 + src/mesa/main/shaderapi.c | 44 ++-- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 07a

[Mesa-dev] [PATCH 17/46] mesa: add program interface queries for tessellation shaders

2015-06-16 Thread Marek Olšák
From: Marek Olšák Based on a patch by Chris Forbes . --- src/mesa/main/shader_query.cpp | 8 ++-- src/mesa/main/uniforms.c | 21 +++-- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index

[Mesa-dev] [PATCH 37/46] glsl: analyze TES usage of gl_ClipDistance

2015-06-16 Thread Marek Olšák
From: Chris Forbes --- src/glsl/linker.cpp | 19 +++ src/mesa/main/mtypes.h| 7 +++ src/mesa/main/shaderapi.c | 1 + 3 files changed, 27 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 5ee84fc..1315867 100644 --- a/src/glsl/linker.cpp +

[Mesa-dev] [PATCH 27/46] glsl: make stand-alone compiler work with tessellation shaders.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/glsl/main.cpp | 8 +++- src/glsl/standalone_scaffolding.cpp | 1 + src/glsl/standalone_scaffolding.h | 4 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 2341298..df93a01 100644 --

[Mesa-dev] [PATCH 01/46] drirc: drop support for Heaven 3.0, fixes tessellation in 4.0

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/mesa/drivers/dri/common/drirc | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc index 145e707..97d961b 100644 --- a/src/mesa/drivers/dri/common/drirc +++ b/

[Mesa-dev] [PATCH 46/46] mesa: implement GL_IS_PER_PATCH

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/mesa/main/shader_query.cpp | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 8438d19..65f9400 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.

[Mesa-dev] [PATCH 32/46] glsl: add builtin constants for ARB_tessellation_shader

2015-06-16 Thread Marek Olšák
From: Chris Forbes Limits from other extensions added by Marek. --- src/glsl/builtin_variables.cpp | 40 src/glsl/glsl_parser_extras.cpp | 19 +++ src/glsl/glsl_parser_extras.h | 17 + 3 files changed, 72 insertions(+),

[Mesa-dev] [PATCH 21/46] glsl: add tessellation shader defines and built-in variables.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/glsl/builtin_variables.cpp | 72 +- src/glsl/glcpp/glcpp-parse.y | 3 ++ src/glsl/shader_enums.h| 13 +++- src/mesa/main/mtypes.h | 6 src/mesa/program/prog_print.c | 4 +++ 5 files changed, 96 ins

[Mesa-dev] [PATCH 04/46] mesa: add tessellation shader enums

2015-06-16 Thread Marek Olšák
From: Fabian Bieler --- src/glsl/shader_enums.h | 8 +--- src/mesa/drivers/common/meta.c | 2 ++ src/mesa/drivers/dri/i965/intel_debug.c | 4 +++- src/mesa/main/context.c | 2 ++ src/mesa/main/shaderobj.h | 4 src/mesa/program/prog_

[Mesa-dev] [PATCH 43/46] glsl: don't demote tess control shader outputs

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/glsl/link_varyings.cpp | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index a4d0f1c..5fa9ddf 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -1451,8 +1451,12 @@

[Mesa-dev] [PATCH 15/46] mesa: add tessellation shader getters.

2015-06-16 Thread Marek Olšák
From: Fabian Bieler Tessellation dependencies added by Marek. --- src/mesa/main/get.c | 1 + src/mesa/main/get_hash_params.py | 28 ++ src/mesa/main/shaderapi.c| 84 3 files changed, 113 insertions(+) diff --git a/src/me

[Mesa-dev] [PATCH 41/46] glsl: allow indexing of gl_out with a non-const if length isn't known

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/glsl/ast_array_index.cpp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp index 0130c14..0b6b5c7 100644 --- a/src/glsl/ast_array_index.cpp +++ b/src/glsl/ast_array_index.cpp @@ -216,6 +216,16 @@

[Mesa-dev] [PATCH 18/46] mesa: handle tessellation shaders in use_shader_program

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/mesa/main/shaderapi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 1cc3e37..3428680 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1139,11 +1139,9 @@ use

[Mesa-dev] [PATCH 42/46] glsl: disable varying packing between tessellation shaders

2015-06-16 Thread Marek Olšák
From: Marek Olšák --- src/glsl/link_varyings.cpp | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 2f7d19b..a4d0f1c 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.

  1   2   >