Re: [Mesa-dev] [PATCH v3 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Ilia Mirkin
On Thu, Sep 22, 2016 at 5:16 PM, Dylan Baker wrote: > See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of > this commit. > > Signed-off-by: Dylan Baker > --- > > Changes since v2: > > Re-sort the whole list, and remove

Re: [Mesa-dev] [PATCH v3 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
Quoting Ilia Mirkin (2016-09-22 14:37:05) > On Thu, Sep 22, 2016 at 5:16 PM, Dylan Baker wrote: > > See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of > > this commit. > > > > Signed-off-by: Dylan Baker > > --- > > > > Changes

[Mesa-dev] [PATCH 1/3] isl: Only allow Y-tiling for ASTC textures

2016-09-22 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/isl/isl_gen7.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c index 4f1cc9d..36a3401 100644 --- a/src/intel/isl/isl_gen7.c +++ b/src/intel/isl/isl_gen7.c @@ -231,6

[Mesa-dev] [PATCH 0/3] anv: Prevent creation of invalid compressed textures

2016-09-22 Thread Nanley Chery
This series prevents invalid compressed textures from being created in the Vulkan driver. There aren't any Vulkan CTS tests for 1D compressed textures, so no change has been observed in that test suite. Nanley Chery (3): isl: Only allow Y-tiling for ASTC textures anv/formats: Disallow linear

[Mesa-dev] [PATCH] osmesa: Unbind the current context when given a null context and buffer.

2016-09-22 Thread Emilio Cobos Álvarez
This is needed to be consistent with other drivers. I used both the context and the buffer as a condition in order to ensure it's an intentional unbind, and not a programming error, but let me know if you think I should change it to check only the context. Also, this is my very first mesa patch,

Re: [Mesa-dev] [PATCH 2/2] st/mesa: enable ARB_ES3_2_compatibility when enough available

2016-09-22 Thread Ilia Mirkin
ping On Tue, Sep 13, 2016 at 8:54 PM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > --- > src/mesa/state_tracker/st_extensions.c | 20 > 1 file changed, 20 insertions(+) > > diff --git a/src/mesa/state_tracker/st_extensions.c

Re: [Mesa-dev] [PATCH 1/2] st/mesa: enable GL_ANDROID_extension_pack_es31a when available

2016-09-22 Thread Ilia Mirkin
ping On Tue, Sep 13, 2016 at 8:54 PM, Ilia Mirkin wrote: > For now that's never since advanced blend hasn't been piped through. > > Signed-off-by: Ilia Mirkin > --- > src/mesa/state_tracker/st_extensions.c | 18 ++ > 1 file changed,

[Mesa-dev] [PATCH 3/3] anv/formats: Disallow 1D compressed textures

2016-09-22 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_formats.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 701add5..accf45c 100644 --- a/src/intel/vulkan/anv_formats.c +++

[Mesa-dev] [PATCH 2/3] anv/formats: Disallow linear ASTC textures

2016-09-22 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_formats.c | 4 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index ff59f47..701add5 100644 --- a/src/intel/vulkan/anv_formats.c +++

Re: [Mesa-dev] [PATCH 1/3] intel/i965: make gen_device_info mutable

2016-09-22 Thread Kenneth Graunke
On Friday, September 23, 2016 1:17:14 AM PDT Lionel Landwerlin wrote: > Make gen_device_info a mutable structure so we can update the fields that > can be refined by querying the kernel (like subslices and EU numbers). > > This patch does not make any functional change, it just make >

Re: [Mesa-dev] [PATCH v3 3/7] intel/isl: Add support for 1-D compressed textures

2016-09-22 Thread Nanley Chery
On Thu, Sep 22, 2016 at 02:12:08PM -0700, Jason Ekstrand wrote: > On Sep 22, 2016 11:11 PM, "Nanley Chery" wrote: > > > > On Wed, Sep 14, 2016 at 01:28:23PM -0700, Jason Ekstrand wrote: > > > Compressed 1-D textures are a well-defined thing in both GL and Vulkan. > > > >

Re: [Mesa-dev] [PATCH] i965/gen8+: Enable GL_OES_viewport_array

2016-09-22 Thread Ilia Mirkin
On Wed, Sep 21, 2016 at 2:15 PM, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > > --- > This patch requires below series: > https://patchwork.freedesktop.org/series/12594/ FYI, this is now pushed. Given that the ext relies on OES_geometry_shader,

[Mesa-dev] [Bug 97879] [amdgpu] Rocket League: long hangs (several seconds) when loading assets (models/textures/shaders?)

2016-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97879 --- Comment #12 from Michel Dänzer --- (In reply to Andreas Hartmetz from comment #4) > Assuming the problem was shader compilation, what could be done about it, > though? Optimizing shader compilation by a factor of 10 seems

[Mesa-dev] [AppVeyor] mesa master #2241 failed

2016-09-22 Thread AppVeyor
Build mesa 2241 failed Commit e66a2b879b by Dylan Baker on 9/22/2016 6:30 PM: mapi: export all GLES 3.2 functions in libGLESv2.so\n\nSee commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of\nthis commit.\n\nSigned-off-by: Dylan Baker

[Mesa-dev] [PATCH 0/3] anv/i965: make gen_device_info mutable

2016-09-22 Thread Lionel Landwerlin
Hi, Kenneth metionned that we might be interested in making gen_device_info mutable so that its values could be updated (for example after querying the kernel about the number of EUs and subslices). Here is a first attempt. I think a follow up series could add the subslices number to

[Mesa-dev] [PATCH 3/3] anv: get rid of duplicated values from gen_device_info

2016-09-22 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: Kenneth Graunke --- src/intel/vulkan/anv_allocator.c | 15 --- src/intel/vulkan/anv_device.c| 22 +++--- src/intel/vulkan/anv_private.h | 11 ---

[Mesa-dev] [PATCH 1/3] intel/i965: make gen_device_info mutable

2016-09-22 Thread Lionel Landwerlin
Make gen_device_info a mutable structure so we can update the fields that can be refined by querying the kernel (like subslices and EU numbers). This patch does not make any functional change, it just make gen_get_device_info() fill a structure rather than returning a const pointer. Cc: Kenneth

[Mesa-dev] [PATCH 2/3] i965: get rid of duplicated values from gen_device_info

2016-09-22 Thread Lionel Landwerlin
Now that we have gen_device_info mutable, we can update its values and drop all copies we had in brw_context. Signed-off-by: Lionel Landwerlin Cc: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_compute.c | 3 ++-

[Mesa-dev] [PATCH] glsl: move xfb BufferStride into gl_transform_feedback_info

2016-09-22 Thread Timothy Arceri
It makes more sense to have this here where we store the other values from xfb qualifiers. The struct it was previously part of is now only used to store values to come from the api. --- src/compiler/glsl/link_varyings.cpp | 4 ++-- src/compiler/glsl/linker.cpp| 8

Re: [Mesa-dev] [PATCH v3 3/7] intel/isl: Add support for 1-D compressed textures

2016-09-22 Thread Jason Ekstrand
On Sep 22, 2016 11:11 PM, "Nanley Chery" wrote: > > On Wed, Sep 14, 2016 at 01:28:23PM -0700, Jason Ekstrand wrote: > > Compressed 1-D textures are a well-defined thing in both GL and Vulkan. > > Could you provide a reference? I could not find any documentation on 1D >

[Mesa-dev] [PATCH v3 1/3] mapi: retab static_data.py to be consistent

2016-09-22 Thread Dylan Baker
This file currently uses a mixture of 3 and 4 space indent. I have changed it all to 4 space indent, matching the settings in $ROOT/.editorconfig. Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 2570 ++--- 1 file

[Mesa-dev] [PATCH v3 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of this commit. Signed-off-by: Dylan Baker --- Changes since v2: Re-sort the whole list, and remove duplicates, which there were several. I've also checked that there are no duplicates by

[Mesa-dev] [PATCH v3 2/3] mapi: sort static_data.py functions

2016-09-22 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 164 +++--- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py index 396f941..bb11c1d

Re: [Mesa-dev] [PATCH 0/2] Implement lanczos interpolation filter

2016-09-22 Thread Andy Furniss
Christian König wrote: Am 21.09.2016 um 16:38 schrieb Andy Furniss: Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: bz2 compressed vid showing the issue - https://drive.google.com/open?id=0BxP5-S1t9VEEUE5sbUFBV20zSms To be clear this is just the test rez vid I used so you can

[Mesa-dev] [PATCH] isl/surface_state: Fix typo in alignment comment

2016-09-22 Thread Nanley Chery
Change SUFFACE to SURFACE. Signed-off-by: Nanley Chery --- src/intel/isl/isl_surface_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index e18fa50..4ed177a 100644 ---

[Mesa-dev] [RFC 5/7] eglplatform.h: remove local mesa hacks/workarounds from eglplatform.h

2016-09-22 Thread Emil Velikov
From: Emil Velikov This commit effectively reverts the following: 7d642442d9339e5b65c30802c44091816cdf18be 400b833592d9aad7b2c4627a897380642d52189f 2c6186390c48e0d1f2b4d4136c11eb0bedfd1aec eddcecbf74da26716509c047b95e85b00c12bab4

Re: [Mesa-dev] Expose ES 3.2 symbols in libGLESv2.so?

2016-09-22 Thread Erik Faye-Lund
On Wed, Sep 21, 2016 at 8:57 PM, Kenneth Graunke wrote: > Commit 5921f372c89a68fac6ddefc009442721d9df4db2 exposed GLES 3.1 symbols > in libGLESv2.so. Are we supposed to do the same thing for GLES 3.2? > > I imagine we're supposed to, but I'm not certain what spec actually

[Mesa-dev] [RFC 0/7] eglplatform.h: removing local hacks and improving robustness

2016-09-22 Thread Emil Velikov
Hi all, This series aims to make platform detection/selection easier, explicit and less fragile. To do that I've introduced Vulkan inspired EGL_USE_PLATFORM_*_KHR macro guards. The user _really_ wants to select the on they use, yet things should continue to compile (albeit there can be ABI

[Mesa-dev] [PATCH 1/3] mapi: retab static_data.py to be consistent

2016-09-22 Thread Dylan Baker
This file currently uses a mixture of 3 and 4 space indent. I have changed it all to 4 space indent, matching the settings in $ROOT/.editorconfig. Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 2570 ++--- 1 file

[Mesa-dev] [PATCH 2/3] mapi: sort static_data.py functions

2016-09-22 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 164 +++--- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py index 396f941..bb11c1d

[Mesa-dev] [PATCH 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of this commit. Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 16 1 file changed, 16 insertions(+) diff --git a/src/mapi/glapi/gen/static_data.py

[Mesa-dev] [Bug 97879] [amdgpu] Rocket League: long hangs (several seconds) when loading assets (models/textures/shaders?)

2016-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97879 --- Comment #11 from Gregor Münch --- Experiencing same problem with Radeon HD 7970 Mesa Git radeonsi, LLVM Git, Linux 4.8 rc6. The Hangs are always there when: -start of the match 5-7sec -multiple times within the 1st

Re: [Mesa-dev] [PATCH 1/8] i965: Fix missing _NEW_TRANSFORM in Gen8+ 3DSTATE_DS atom.

2016-09-22 Thread Nanley Chery
On Wed, Sep 21, 2016 at 10:31:05PM -0700, Kenneth Graunke wrote: > Needed for user clip plane enables. Brkoen since this code was ^^ Broken -Nanley > introduced. > > Cc: mesa-sta...@lists.freedesktop.org >

Re: [Mesa-dev] [PATCH 8/8] i965: Drop pointless stage == MESA_SHADER_FRAGMENT checks.

2016-09-22 Thread Jason Ekstrand
Heh... Rb On Sep 22, 2016 4:46 PM, "Kenneth Graunke" wrote: > There's an assert right above this. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff

[Mesa-dev] [PATCH 0/3] Update libGLESv2.so to expose GLES 3.2 symbols

2016-09-22 Thread Dylan Baker
This adds the GLES 3.2 symbols to libGLESv2.so. The first two patches (which have all of the changes in them), do some basic cleanup. The first makes tabs consistent (this is the giant patch), and the second sorts the list alphabetically. Dylan Baker (3): mapi: retab static_data.py to be

Re: [Mesa-dev] [PATCH] isl/surface_state: Fix typo in alignment comment

2016-09-22 Thread Jason Ekstrand
Rb On Sep 22, 2016 5:28 PM, "Nanley Chery" wrote: > Change SUFFACE to SURFACE. > > Signed-off-by: Nanley Chery > --- > src/intel/isl/isl_surface_state.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Mesa-dev] [PATCH 2/4] glsl: Immediately inline built-ins rather than generating calls.

2016-09-22 Thread Kenneth Graunke
On Thursday, September 22, 2016 1:54:44 PM PDT Ian Romanick wrote: > On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > > In the past, we imported the prototypes of built-in functions, generated > > calls to those, and waited until link time to resolve the calls and > > import the actual code for

Re: [Mesa-dev] Expose ES 3.2 symbols in libGLESv2.so?

2016-09-22 Thread Erik Faye-Lund
On Thu, Sep 22, 2016 at 5:45 PM, Emil Velikov wrote: > On 22 September 2016 at 08:10, Erik Faye-Lund wrote: >> On Wed, Sep 21, 2016 at 8:57 PM, Kenneth Graunke >> wrote: >>> Commit 5921f372c89a68fac6ddefc009442721d9df4db2

Re: [Mesa-dev] Expose ES 3.2 symbols in libGLESv2.so?

2016-09-22 Thread Emil Velikov
On 22 September 2016 at 08:10, Erik Faye-Lund wrote: > On Wed, Sep 21, 2016 at 8:57 PM, Kenneth Graunke > wrote: >> Commit 5921f372c89a68fac6ddefc009442721d9df4db2 exposed GLES 3.1 symbols >> in libGLESv2.so. Are we supposed to do the same thing for

Re: [Mesa-dev] [PATCH] i915g: fix incorrect gl_FragCoord value

2016-09-22 Thread Stéphane Marchesin
On Thu, Sep 22, 2016 at 8:40 AM, Emil Velikov wrote: > Hi Nicholas, > > On 26 August 2016 at 00:31, Nicholas Bishop wrote: > > From: Nicholas Bishop > > > > On Intel Pineview M hardware, the i915 gallium driver doesn't

Re: [Mesa-dev] [PATCH] swr: replace mesa->swr format enum conversion

2016-09-22 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Sep 20, 2016, at 2:24 PM, Tim Rowley wrote: > > Replace old string comparison with a mapping table. > --- > src/gallium/drivers/swr/swr_screen.cpp | 344 - > 1 file changed,

Re: [Mesa-dev] [PATCH 0/2] Implement lanczos interpolation filter

2016-09-22 Thread Andy Furniss
Nayan Deshmukh wrote: Hi Andy, On Wed, Sep 21, 2016 at 9:30 PM, Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: bz2 compressed vid showing the issue -

Re: [Mesa-dev] [PATCH 1/2] gbm/dri2: propagate errors when creating a DMA-BUF fd

2016-09-22 Thread Emil Velikov
Hi Nicholas, On 8 September 2016 at 20:55, Nicholas Bishop wrote: > Changed dri2_query_image to check the return value of > resource_get_handle and return GL_FALSE if an error occurs. Similarly > changed gbm_dri_bo_get_fd to check the return value of queryImage and >

Re: [Mesa-dev] [PATCH] i915g: fix incorrect gl_FragCoord value

2016-09-22 Thread Emil Velikov
Hi Nicholas, On 26 August 2016 at 00:31, Nicholas Bishop wrote: > From: Nicholas Bishop > > On Intel Pineview M hardware, the i915 gallium driver doesn't output > the correct gl_FragCoord. It seems to always have an X coord of 0.0 > and a Y coord

Re: [Mesa-dev] [PATCH 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Ilia Mirkin
2016-09-22 14:53 GMT-04:00 Dylan Baker : > See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of > this commit. > > Signed-off-by: Dylan Baker > --- > src/mapi/glapi/gen/static_data.py | 16 > 1 file changed, 16

[Mesa-dev] [PATCH v2 1/3] mapi: retab static_data.py to be consistent

2016-09-22 Thread Dylan Baker
This file currently uses a mixture of 3 and 4 space indent. I have changed it all to 4 space indent, matching the settings in $ROOT/.editorconfig. Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 2570 ++--- 1 file

[Mesa-dev] [PATCH v2 2/3] mapi: sort static_data.py functions

2016-09-22 Thread Dylan Baker
Signed-off-by: Dylan Baker --- src/mapi/glapi/gen/static_data.py | 164 +++--- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py index 396f941..bb11c1d

[Mesa-dev] [PATCH v2 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of this commit. Signed-off-by: Dylan Baker --- v2: - fix TexBufferRange typo (Ilia) - Remove duplicate TexParameterIuiv src/mapi/glapi/gen/static_data.py | 15 +++ 1 file changed, 15

Re: [Mesa-dev] [PATCH v2 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Ilia Mirkin
On Thu, Sep 22, 2016 at 3:56 PM, Dylan Baker wrote: > @@ -1305,6 +1318,7 @@ functions = [ > "SamplerParameterfv", > "SamplerParameteri", > "SamplerParameteriv", > +"SamplerParameterIiv", > "Scaled", > "Scalef", > "Scalex", This is the case

Re: [Mesa-dev] [PATCH 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
Quoting Ilia Mirkin (2016-09-22 11:57:14) > 2016-09-22 14:53 GMT-04:00 Dylan Baker : > > See commit 5921f372c89a68fac6ddefc009442721d9df4db2 for the rational of > > this commit. > > > > Signed-off-by: Dylan Baker > > --- > >

Re: [Mesa-dev] [PATCH v3 3/7] intel/isl: Add support for 1-D compressed textures

2016-09-22 Thread Nanley Chery
On Wed, Sep 14, 2016 at 01:28:23PM -0700, Jason Ekstrand wrote: > Compressed 1-D textures are a well-defined thing in both GL and Vulkan. Could you provide a reference? I could not find any documentation on 1D compressed textures. Instead I found that OpenGL disallows them and Vulkan does not

[Mesa-dev] [AppVeyor] mesa master #2239 completed

2016-09-22 Thread AppVeyor
Build mesa 2239 completed Commit 36f0f03182 by Eric Anholt on 9/7/2016 2:45 AM: nir: Allow opt_peephole_sel to be more aggressive in flattening IFs.\n\nVC4 was running into a major performance regression from enabling control\nflow in the glmark2 conditionals

Re: [Mesa-dev] [PATCH v2 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
Quoting Ilia Mirkin (2016-09-22 12:59:49) > On Thu, Sep 22, 2016 at 3:56 PM, Dylan Baker wrote: > > @@ -1305,6 +1318,7 @@ functions = [ > > "SamplerParameterfv", > > "SamplerParameteri", > > "SamplerParameteriv", > > +"SamplerParameterIiv", > >

Re: [Mesa-dev] [PATCH v2 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Ilia Mirkin
On Thu, Sep 22, 2016 at 4:17 PM, Dylan Baker wrote: > Quoting Ilia Mirkin (2016-09-22 12:59:49) >> On Thu, Sep 22, 2016 at 3:56 PM, Dylan Baker wrote: >> > @@ -1305,6 +1318,7 @@ functions = [ >> > "SamplerParameterfv", >> > "SamplerParameteri",

Re: [Mesa-dev] [PATCH v2 3/3] mapi: export all GLES 3.2 functions in libGLESv2.so

2016-09-22 Thread Dylan Baker
Quoting Ilia Mirkin (2016-09-22 13:21:04) > On Thu, Sep 22, 2016 at 4:17 PM, Dylan Baker wrote: > > Quoting Ilia Mirkin (2016-09-22 12:59:49) > >> On Thu, Sep 22, 2016 at 3:56 PM, Dylan Baker wrote: > >> > @@ -1305,6 +1318,7 @@ functions = [ > >> >

[Mesa-dev] [PATCH] intel/blorp: Use documented RECTLIST vertex positions

2016-09-22 Thread Nanley Chery
Use the vertex positions described in the PRMs. This has no effect on rendering but quiets the simulator warnings seen when the vertices appear out of order. Signed-off-by: Nanley Chery Cc: Jason Ekstrand Cc: Marek Olšák ---

Re: [Mesa-dev] [PATCH 1/2] mesa/extensions: expose EXT_texture_compression_s3tc for ES2

2016-09-22 Thread Ilia Mirkin
Are there tests anywhere for either of these extensions? If not, can you send some patches to piglit which either add tests or, preferably, take tests for the existing desktop functionality and make them ES-friendly (e.g.

[Mesa-dev] [RFC 3/7] eglplatform.h: Introduce EGL_USE_PLATFORM_APPLE_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov --- XXX: This is the upstream/Khronos definition of it, although I'm not perfectly sure if/how many users depend on it. XXX: Worth folding with the original commit which introduces the EGL_USE PLATFORM... lot ? --- include/EGL/eglplatform.h | 6

Re: [Mesa-dev] [PATCH 1/2] gbm/dri2: propagate errors when creating a DMA-BUF fd

2016-09-22 Thread Nicholas Bishop
Bump, could someone push this? Thanks, -Nicholas On Wed, Sep 14, 2016 at 1:06 PM, Nicholas Bishop wrote: > Thanks for review. Could someone with commit access push this for me? > > On Wed, Sep 14, 2016 at 8:48 AM, Eric Engestrom > wrote: >> On

[Mesa-dev] [RFC 6/7] Revert "build: fix EGL build when no X11 headers are present"

2016-09-22 Thread Emil Velikov
This reverts commit 1a7275de9a0088cedab17131eec82bd2cada26c3. No longer required/needed as-of last commit. Conflicts: configure.ac --- configure.ac | 7 --- 1 file changed, 7 deletions(-) diff --git a/configure.ac b/configure.ac index 0604ad9..d16447f 100644 --- a/configure.ac +++

[Mesa-dev] [PATCH 7/8] i965: Drop _NEW_TRANSFORM from 3DSTATE_VS atom on Gen6-7.

2016-09-22 Thread Kenneth Graunke
commit e07457d0aec96970a39a2dd1cb4e46da6107eb77 removed the last use of ctx->Transform on Gen6. It looks like Gen7 never needed this, but I copied it over when I originally ported the driver to Ivybridge. Signed-off-by: Kenneth Graunke ---

[Mesa-dev] [RFC 7/7] eglplatform.h: remove buggy/fragile autodetection

2016-09-22 Thread Emil Velikov
From: Emil Velikov With the previous EGL_USE_PLATFORM_*_KHR in place one no longer needs any of this fragile and somewhat buggy heuristics. Users are responsible for requesting their preferred platform, with adding a default to none/native types. --- XXX: Similar to

[Mesa-dev] [RFC 1/7] eglplatform.h: introduce and use EGL_USE_PLATFORM_*_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov In order to avoid the current, somewhat fragile detection in eglplatform.h introduce explicit platform selection. The approach is based on the one used in Vulkan and allows one to explicitly "request" the platform they will be using without the

Re: [Mesa-dev] [PATCH] anv: Check for VK_WHOLE_SIZE in anv_CmdFillBuffer

2016-09-22 Thread Jason Ekstrand
On Wed, Sep 21, 2016 at 3:40 PM, Nicolas Koch wrote: > Hey Jason, thanks for reviewing. > > This is my first mesa contribution, and I'm not really familiar with > the mailing-list workflow. > Thanks for the contribution and welcome to mesa! > Is there anything else I need

Re: [Mesa-dev] [PATCH 0/2] intel: Enable EGL_KHR_gl_texture_3D_image

2016-09-22 Thread Eric Anholt
Adam Jackson writes: > This extension is a prerequisite for EGL 1.5, but the Intel drivers don't > report support for it, and I'm not really sure why, the driver code certainly > looks prepared for it. That said, I haven't tested either of these patches, > and > I'm not aware

Re: [Mesa-dev] [PATCH 0/4] glsl: Builtins, now!

2016-09-22 Thread Eric Anholt
Kenneth Graunke writes: > Hello, > > This series reworks the GLSL compiler to inline built-in functions > immediately, at compile time, rather than importing prototypes and > linking against an extra shader later on. > > Without this, compile time optimizations are nearly

Re: [Mesa-dev] [PATCH 1/4] glsl: Check TCS barrier restrictions at ast_to_hir time, not link time.

2016-09-22 Thread Ian Romanick
This is much simpler. This patch is Reviewed-by: Ian Romanick On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > We want to check prior to optimization - otherwise we might fail to > detect cases where barrier() is in control flow which is always taken > (and therefore

Re: [Mesa-dev] [PATCH 0/4] glsl: Builtins, now!

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > Hello, > > This series reworks the GLSL compiler to inline built-in functions > immediately, at compile time, rather than importing prototypes and > linking against an extra shader later on. > > Without this, compile time optimizations are nearly

[Mesa-dev] Was: Re: [PATCH] r600g: Add support for PK2H/UP2H

2016-09-22 Thread Dieter Nützel
Ping. - Again. Ilia and Marek voted for it. Any progress? Anyone, Marek, Nicolai? Should I rebase? Dieter [Mesa-dev] [PATCH] r600g: Add support for PK2H/UP2H Glenn Kennard glenn.kennard at gmail.com Sun Jan 3 14:47:18 PST 2016 Previous message: [Mesa-dev] [PATCH 1/2] WIP gallivm: add

[Mesa-dev] [PATCH v2 6/9] gallium/radeon: cleanup getting PIPE_QUERY_TIMESTAMP result

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle Reviewed-by: Edward O'Callaghan --- src/gallium/drivers/radeon/r600_query.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_query.c

[Mesa-dev] [PATCH v2 4/9] radeonsi: add save_qbo_state

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle Save compute shader state that will be used for the ARB_query_buffer_object implementation. --- src/gallium/drivers/radeon/r600_pipe_common.h | 3 +++ src/gallium/drivers/radeon/r600_query.h | 7 +++

Re: [Mesa-dev] [PATCH 0/2] Implement lanczos interpolation filter

2016-09-22 Thread Christian König
Am 21.09.2016 um 16:38 schrieb Andy Furniss: Andy Furniss wrote: Andy Furniss wrote: Andy Furniss wrote: bz2 compressed vid showing the issue - https://drive.google.com/open?id=0BxP5-S1t9VEEUE5sbUFBV20zSms To be clear this is just the test rez vid I used so you can possibly recreate the

Re: [Mesa-dev] [PATCH 3/4] glsl: Delete ftransform support from builtin_functions.cpp.

2016-09-22 Thread Ian Romanick
Pending patch 2, this patch is Reviewed-by: Ian Romanick On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > This is now handled directly by ast_function.cpp. > > Signed-off-by: Kenneth Graunke > --- > src/compiler/glsl/builtin_functions.cpp | 30

Re: [Mesa-dev] [PATCH 00/15] Compile GLSL to ir_builder

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:29 PM, Kenneth Graunke wrote: > Hi Ian, > > I just sent out a four patch series that I think will accomplish a lot > of what you were trying to do with the "do post-link optimizations, but > only for built-ins" patches. But it deletes code. > >

[Mesa-dev] [PATCH v2 8/9] gallium/radeon: implement get_query_result_resource (v2)

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle v2: fix a comment (Gustaw Smolarczyk) --- src/gallium/drivers/radeon/r600_pipe_common.c | 3 + src/gallium/drivers/radeon/r600_pipe_common.h | 2 + src/gallium/drivers/radeon/r600_query.c | 391 +-

[Mesa-dev] [PATCH v2 1/9] gallium/radeon: add barrier_flags to r600_common_screen

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle There are driver-specific context flags for barriers that are not covered by the Gallium barrier interfaces. The R600 settings of these flags may not be optimal, but we're not going to use them yet anyway. --- src/gallium/drivers/r600/r600_pipe.c

[Mesa-dev] [PATCH 5/8] i965: Add missing BRW_NEW_CS_PROG_DATA to compute constant atom.

2016-09-22 Thread Kenneth Graunke
CACHE_NEW_CS_PROG hasn't existed in quite a long time...the old comment was there, but not the actual bit. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen7_cs_state.c | 3 ++- 1 file changed, 2 insertions(+), 1

[Mesa-dev] [PATCH 3/8] i965: Move BRW_NEW_FRAGMENT_PROGRAM from 3DSTATE_PS to PS_EXTRA.

2016-09-22 Thread Kenneth Graunke
3DSTATE_PS doesn't need this. 3DSTATE_PS_EXTRA however does, for brw_color_buffer_write_enabled(). Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_ps_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Mesa-dev] [PATCH 6/8] i965: Add missing BRW_CS_PROG_DATA to CS work group surface atom.

2016-09-22 Thread Kenneth Graunke
Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c

[Mesa-dev] [PATCH 8/8] i965: Drop pointless stage == MESA_SHADER_FRAGMENT checks.

2016-09-22 Thread Kenneth Graunke
There's an assert right above this. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index

[Mesa-dev] [PATCH 1/8] i965: Fix missing _NEW_TRANSFORM in Gen8+ 3DSTATE_DS atom.

2016-09-22 Thread Kenneth Graunke
Needed for user clip plane enables. Brkoen since this code was introduced. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_ds_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 4/8] i965: Add missing BRW_NEW_FS_PROG_DATA to render target reads.

2016-09-22 Thread Kenneth Graunke
Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c

[Mesa-dev] [Bug 97879] [amdgpu] Rocket League: long hangs (several seconds) when loading assets (models/textures/shaders?)

2016-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97879 --- Comment #10 from Silvan Jegen --- (In reply to Michel Dänzer from comment #3) > (In reply to Silvan Jegen from comment #2) > > Just to clarify: the trace also includes loading of the game itself (which > > takes a long

[Mesa-dev] [PATCH 1/2] mesa/extensions: expose EXT_texture_compression_s3tc for ES2

2016-09-22 Thread Kevin Strasser
The extension spec has been revised to include dependencies for OpenGL ES 2 and 3. Signed-off-by: Kevin Strasser --- src/mesa/main/extensions_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/extensions_table.h

[Mesa-dev] [PATCH 2/2] mesa/extensions: expose OES_vertex_half_float for ES2

2016-09-22 Thread Kevin Strasser
Half float support already exists for desktop GL. Reuse the ARB_half_float_vertex enable bit and account for the different enum to enable the extension for ES2. Signed-off-by: Kevin Strasser --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/varray.c |

[Mesa-dev] [RFC 2/7] eglplatform.h: introduce EGL_USE_PLATFORM_XCB_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov There is no concept of display on XCB thus the connection is used instead. --- XXX: Pure XCB/Xlib-free implementation anyone ? --- include/EGL/eglplatform.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/EGL/eglplatform.h

Re: [Mesa-dev] [PATCH] i915g: fix incorrect gl_FragCoord value

2016-09-22 Thread Roland Scheidegger
Am 22.09.2016 um 17:40 schrieb Emil Velikov: > Hi Nicholas, > > On 26 August 2016 at 00:31, Nicholas Bishop wrote: >> From: Nicholas Bishop >> >> On Intel Pineview M hardware, the i915 gallium driver doesn't output >> the correct gl_FragCoord. It

[Mesa-dev] [PATCH] anv: device: never allocate more memory than heap_size

2016-09-22 Thread Nicolas Koch
Previously, the heap size of a physical device was kind of useless because it was not enforced. Now, we keep track of allocation sizes so that the sum of all allocations can never exceed the heap size advertised by anv_GetPhysicalDeviceMemoryProperties. --- src/intel/vulkan/anv_device.c | 42

Re: [Mesa-dev] [PATCH 4/4] glsl: Delete linker stuff relating to built-in functions.

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > Now that we generate built-in functions inline, there's no need to link > against the built-in shader, and no built-in prototypes to consider. > > This lets us delete a bunch of code. Boy howdy. This simplifies things quite a bit. Pending patch

[Mesa-dev] [PATCH v2 3/9] radeonsi: add si_get_shader_buffers/get_pipe_constant_buffers (v2)

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle These functions extract the pipe state structure from the current descriptors, for state saving. v2: correctly dereference *buf (Bas) --- src/gallium/drivers/radeonsi/si_descriptors.c | 46 +++

[Mesa-dev] [PATCH v2 9/9] radeonsi: enable ARB_query_buffer_object (v2)

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle v2: enable only when compute is available --- docs/features.txt | 2 +- docs/relnotes/12.1.0.html | 1 + src/gallium/drivers/radeonsi/si_pipe.c | 21 ++--- 3 files changed, 16 insertions(+), 8

[Mesa-dev] [PATCH v2 5/9] gallium/radeon: add query fences and r600_get_hw_query_params

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle We will support the waiting option in ARB_query_buffer_object using WAIT_REG_MEM on an appropriate fence-like dword. Some queries conveniently write their results with the highest bit set, and we can just use that; for others, we have to write a

Re: [Mesa-dev] [PATCH] anv/blorp: Handle zero width/height copying in copy_buffer_to_image

2016-09-22 Thread Nanley Chery
Is this to avoid needless computation? If an app copies such an image, that's likely an app bug right? On Wed, Sep 21, 2016 at 11:17:08AM -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/intel/vulkan/anv_blorp.c | 4 > 1 file changed, 4

[Mesa-dev] [PATCH 2/8] i965: Add missing BRW_NEW_VS_PROG_DATA to 3DSTATE_CLIP.

2016-09-22 Thread Kenneth Graunke
Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen6_clip_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/gen6_clip_state.c b/src/mesa/drivers/dri/i965/gen6_clip_state.c index

[Mesa-dev] [PATCH] intel/blorp: Constify blorp[_batch]_init() arguments

2016-09-22 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/blorp/blorp.c | 8 src/intel/blorp/blorp.h | 9 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index 1c8fd55..e5dcf0a 100644 ---

Re: [Mesa-dev] [PATCH 14/14] gallium/radeon/winsyses: reduce the number of pb_cache buckets

2016-09-22 Thread Marek Olšák
For 9-14: Reviewed-by: Marek Olšák Marek On Tue, Sep 13, 2016 at 11:56 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Small buffers are now handled via the slabs code, so separate buckets in > pb_cache have become

[Mesa-dev] [PATCH v2 0/9] radeonsi: ARB_query_buffer_object implementation

2016-09-22 Thread Nicolai Hähnle
Hi all, some fixes based on feedback from v1. In related news, https://reviews.llvm.org/D24822 improves the lowering of the division-by-constant for timestamp queries in LLVM, but is not required for this series to work. Please review! Nicolai ___

Re: [Mesa-dev] [PATCH 2/4] glsl: Immediately inline built-ins rather than generating calls.

2016-09-22 Thread Ian Romanick
On 09/21/2016 10:20 PM, Kenneth Graunke wrote: > In the past, we imported the prototypes of built-in functions, generated > calls to those, and waited until link time to resolve the calls and > import the actual code for the built-in functions. I thought part of the reason we did this was to

[Mesa-dev] [PATCH v2 2/9] gallium/radeon: add r600_gfx_{write, wait}_fence

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle For bottom-of-pipe fences inside the gfx command stream. --- src/gallium/drivers/radeon/r600_pipe_common.c | 52 +++ src/gallium/drivers/radeon/r600_pipe_common.h | 5 +++ src/gallium/drivers/radeonsi/si_perfcounter.c | 41

[Mesa-dev] [PATCH v2 7/9] gallium/radeon: zero all query buffers

2016-09-22 Thread Nicolai Hähnle
From: Nicolai Hähnle To ensure that fences are properly initialized. --- src/gallium/drivers/radeon/r600_query.c | 26 ++ src/gallium/drivers/radeon/r600_query.h | 2 +- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git

  1   2   >