Re: [Mesa-dev] [PATCH 31/34] i965: Use partial resolves for CCS buffers being scanned out

2017-01-31 Thread Pohjolainen, Topi
On Tue, Jan 31, 2017 at 01:37:25PM -0800, Jason Ekstrand wrote: >On Wed, Jan 25, 2017 at 10:39 AM, Pohjolainen, Topi ><[1]topi.pohjolai...@gmail.com> wrote: > > On Mon, Jan 23, 2017 at 10:21:54PM -0800, Ben Widawsky wrote: > > On Gen9 hardware, the display engine is able to

Re: [Mesa-dev] [PATCH v3] i965: Prevent coverity warning

2017-01-31 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Tue, 2017-01-31 at 15:20 -0500, Robert Foss wrote: > Add assert checking that num_sources is never larger than 3. > > This prevents Coverity from concluding that the unhandled > cases of num_sources not being 0-3 are relevant. > >

Re: [Mesa-dev] [PATCH 1/2] radv/ac: add const_index to fetch index for gs inputs

2017-01-31 Thread Bas Nieuwenhuizen
Patches 1-2 are Reviewed-by: Bas Nieuwenhuizen On Wed, Feb 1, 2017, at 02:12, Dave Airlie wrote: > From: Dave Airlie > > This fixes clip distance fetches as they are single item loads > with a const_index like float[1]. > > Fixes: >

Re: [Mesa-dev] [PATCH] radv: handle VK_QUEUE_FAMILY_IGNORED in image transitions (v3)

2017-01-31 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Feb 1, 2017, at 01:25, Dave Airlie wrote: > From: Dave Airlie > > The CTS tests at least are using this, and we were totally > ignoring it. > > This hopefully fixes the bouncing multisample CTS tests. > >

Re: [Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Pohjolainen, Topi
On Tue, Jan 31, 2017 at 11:12:31AM -0800, Jason Ekstrand wrote: >On Tue, Jan 31, 2017 at 10:38 AM, Jason Ekstrand ><[1]ja...@jlekstrand.net> wrote: > >On Tue, Jan 31, 2017 at 8:15 AM, Topi Pohjolainen ><[2]topi.pohjolai...@gmail.com> wrote: > > Current estimate doesn't

Re: [Mesa-dev] [PATCH v2 1/2] mesa: make glFramebuffer* check immutable texture level bounds

2017-01-31 Thread Ilia Mirkin
On Tue, Jan 31, 2017 at 2:55 PM, Antía Puentes wrote: > On mar, 2017-01-31 at 12:09 +0100, Nicolai Hähnle wrote: >> On 30.01.2017 19:09, Ilia Mirkin wrote: >> > >> > On Mon, Jan 30, 2017 at 1:06 PM, Ilia Mirkin wrote: >> > > >> > > On Mon, Jan 30, 2017

Re: [Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 7:11 PM, Jason Ekstrand wrote: > Looks really good! I made a comment earlier about how it would be good to > add a couple more #defines for these magic vertex buffer handles. Also, > now that things are working, I'd like to re-confirm whether or

[Mesa-dev] [PATCH] radeonsi/ac: move frag interp emission code to shared llvm code.

2017-01-31 Thread Dave Airlie
From: Dave Airlie This code should be used in radv, so move it to a shared location in advance of doing that. Signed-off-by: Dave Airlie --- src/amd/common/ac_llvm_util.c| 71 ++ src/amd/common/ac_llvm_util.h

Re: [Mesa-dev] i965: Use ISL for auxiliary buffer layout

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > This series is a step towards using ISL instead of current > intel_mipnap_tree/brw_tex_layout logic in i965. First 11 patches > simplify the workspace for the rest and more functional changes. > > Next seven

Re: [Mesa-dev] [PATCH 10/27] i965/blorp/gen6: Drop unnecessary stencil/hiz surf dimension adjust

2017-01-31 Thread Jason Ekstrand
On Fri, Jan 20, 2017 at 11:25 AM, Jason Ekstrand wrote: > On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < > topi.pohjolai...@gmail.com> wrote: > >> Hardware state setup only needs offset and pitch and ignores the >> rest. >> > > True... But it seems a a bit sketchy to

Re: [Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-01-31 Thread Jason Ekstrand
Looks really good! I made a comment earlier about how it would be good to add a couple more #defines for these magic vertex buffer handles. Also, now that things are working, I'd like to re-confirm whether or not vertex buffer 33 works. If it does, we should use it. If it doesn't, then I'm

Re: [Mesa-dev] [PATCH 6/7] anv: emit DrawID if needed

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/vulkan/genX_cmd_buffer.c | 43 ++ > +++- > src/intel/vulkan/genX_pipeline.c | 25

Re: [Mesa-dev] [PATCH 4/7] anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/vulkan/genX_cmd_buffer.c | 2 +- > src/intel/vulkan/genX_pipeline.c | 2 +- > 2 files changed, 2 insertions(+), 2

Re: [Mesa-dev] [PATCH 3/7] anv: limit vertex buffers to 31

2017-01-31 Thread Jason Ekstrand
Did we actually end up needing this? After you got your gl_DrawId issues sorted, were you ever able to get element 33 to work? The Sky Lake docs say it should... On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin

[Mesa-dev] [PATCH] isl: Add assertions for render target swizzle restrictions

2017-01-31 Thread Jason Ekstrand
--- src/intel/isl/isl_surface_state.c | 32 1 file changed, 32 insertions(+) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index b735478..c7b220b 100644 --- a/src/intel/isl/isl_surface_state.c +++

Re: [Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-01-31 Thread Anuj Phogat
On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin wrote: > Enables 10 tests from: > >dEQP-VK.draw.shader_draw_parameters.* and I assume they all pass with this series. > > Signed-off-by: Lionel Landwerlin > --- >

Re: [Mesa-dev] [PATCH] radeonsi: Fix build on LLVM < 3.9 v2

2017-01-31 Thread Mark Janes
Tested-by: Mark Janes Tom Stellard writes: > This was broken by: e0cc0a614c96011958bc3a1b84da9168e0e1ccbb > > v2: > - Use preprocessor macro > --- > src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 6 -- > 1 file changed, 4

Re: [Mesa-dev] [PATCH 1/2] radv/ac: add const_index to fetch index for gs inputs

2017-01-31 Thread Edward O'Callaghan
Patches 1&2 are, Reviewed-by: Edward O'Callaghan On 02/01/2017 12:12 PM, Dave Airlie wrote: > From: Dave Airlie > > This fixes clip distance fetches as they are single item loads > with a const_index like float[1]. > > Fixes: >

[Mesa-dev] [Bug 91556] [Clover / OpenCL] struct and union arguments handled incorrectly, producing CL_INVALID_ARG_SIZE

2017-01-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91556 Jan Vesely changed: What|Removed |Added Blocks||99553

Re: [Mesa-dev] [PATCH] winsys/radeon: Allow visible VRAM size > 256MB with kernel driver >= 2.49

2017-01-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Tuesday, January 31, 2017 1:54 AM > To: amd-...@lists.freedesktop.org; mesa-dev@lists.freedesktop.org > Subject: [PATCH] winsys/radeon: Allow visible VRAM size > 256MB

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Tuesday, January 31, 2017 1:54 AM > To: amd-...@lists.freedesktop.org; mesa-dev@lists.freedesktop.org > Subject: [PATCH] drm/radeon: Fix vram_size/visible values in >

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Dieter Nützel > Sent: Tuesday, January 31, 2017 6:25 AM > To: Michel Dänzer > Cc: Alex Deucher; mesa-dev@lists.freedesktop.org; amd- > g...@lists.freedesktop.org > Subject: Re: [Mesa-dev]

Re: [Mesa-dev] [PATCH 26/27] i965/blorp: Use hiz surface instead of creating copy

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 16, 2017 at 1:14 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_blorp.c | 25 > - > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6

[Mesa-dev] [PATCH 2/2] radv/ac: handle clip/cull distance sizing in geometry shader outputs

2017-01-31 Thread Dave Airlie
From: Dave Airlie Otherwise we were writing these as 4 components, and things went bad. Fixes (the remaining): dEQP-VK.clipping.user_defined.*.vert_geom.* Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 18 ++ 1 file

[Mesa-dev] [PATCH 1/2] radv/ac: add const_index to fetch index for gs inputs

2017-01-31 Thread Dave Airlie
From: Dave Airlie This fixes clip distance fetches as they are single item loads with a const_index like float[1]. Fixes: dEQP-VK.clipping.user_defined.*.vert_geom.[0-6] Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 2 +- 1 file

Re: [Mesa-dev] [PATCH 1/3] st: st_atom_shader.c C99 tidy up

2017-01-31 Thread Edward O'Callaghan
Patches 1,2&3 are, Reviewed-by: Edward O'Callaghan On 02/01/2017 11:58 AM, Timothy Arceri wrote: > From: Timothy Arceri > > --- > src/mesa/state_tracker/st_atom_shader.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff

Re: [Mesa-dev] [PATCH] glsl: Allow compatibility shaders with MESA_GL_VERSION_OVERRIDE=...

2017-01-31 Thread Ilia Mirkin
I wonder if it'd be beneficial to adjust the _mesa_glsl_process_extension logic to force api = API_OPENGL_COMPAT when compat_shader is set. For now, ctx->API has to match, so it should never matter, but perhaps in the future, this would be a tricky little bug to track down. On Tue, Jan 31, 2017

[Mesa-dev] [PATCH 1/3] st: st_atom_shader.c C99 tidy up

2017-01-31 Thread Timothy Arceri
From: Timothy Arceri --- src/mesa/state_tracker/st_atom_shader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c index 8c10ac9..f79afe0 100644 ---

[Mesa-dev] [PATCH 3/3] st/mesa: inline get_mesa_program()

2017-01-31 Thread Timothy Arceri
From: Timothy Arceri In the past I've gotten this function confused with the one in ir_to_mesa.cpp of the same name. Now that the affected flag setting has move into a helper it makes sense just to inline this remaining code. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] [PATCH 2/3] st/mesa: create set_prog_affected_state_flags() helper

2017-01-31 Thread Timothy Arceri
From: Timothy Arceri This will be used when restoring tgsi from the on-disk shader cache. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 217 +++-- 1 file changed, 111 insertions(+), 106 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 13/27] i965/gen6: Calculate hiz offset on demand

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 4:44 PM, Jason Ekstrand wrote: > On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < > topi.pohjolai...@gmail.com> wrote: > >> This is kept on purpose in i965. It can be moved to ISL if it >> is needed in vulkan. >> >> Pointers to miptrees are given

Re: [Mesa-dev] [PATCH 13/27] i965/gen6: Calculate hiz offset on demand

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > This is kept on purpose in i965. It can be moved to ISL if it > is needed in vulkan. > > Pointers to miptrees are given solely for verification purposes. > These will be dropped in following patches. > >

Re: [Mesa-dev] [PATCH] glsl: Allow compatibility shaders with MESA_GL_VERSION_OVERRIDE=...

2017-01-31 Thread Anuj Phogat
On Tue, Jan 31, 2017 at 4:20 PM, Matt Turner wrote: > Previously if you used MESA_GL_VERSION_OVERRIDE=3.3COMPAT, Mesa exposed > an OpenGL 3.3 compatibility profile context (with various unimplemented > features and bugs), but still refused to compile shaders with > >

[Mesa-dev] [PATCH] radv: handle VK_QUEUE_FAMILY_IGNORED in image transitions (v3)

2017-01-31 Thread Dave Airlie
From: Dave Airlie The CTS tests at least are using this, and we were totally ignoring it. This hopefully fixes the bouncing multisample CTS tests. v2: get family mask in ignored case from command buffer. v3: only change things in one place, use logic from Bas.

[Mesa-dev] [PATCH] radeonsi: Fix build on LLVM < 3.9 v2

2017-01-31 Thread Tom Stellard
This was broken by: e0cc0a614c96011958bc3a1b84da9168e0e1ccbb v2: - Use preprocessor macro --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

[Mesa-dev] [PATCH] glsl: Allow compatibility shaders with MESA_GL_VERSION_OVERRIDE=...

2017-01-31 Thread Matt Turner
Previously if you used MESA_GL_VERSION_OVERRIDE=3.3COMPAT, Mesa exposed an OpenGL 3.3 compatibility profile context (with various unimplemented features and bugs), but still refused to compile shaders with #version 330 compatibility This patch simply adds a small bit of plumbing to let that

Re: [Mesa-dev] [PATCH 0/3] radv: VK_KHR_shader_draw_parameters.

2017-01-31 Thread Edward O'Callaghan
This series is, Reviewed-by: Edward O'Callaghan On 02/01/2017 07:42 AM, Bas Nieuwenhuizen wrote: > A basic implementation of VK_KHR_shader_draw_parameters. I haven't > bothered with optimizing it away in the case the shader doesn't > use it, but the impact seems low

Re: [Mesa-dev] [PATCH] radv: handle VK_QUEUE_FAMILY_IGNORED in image transitions (v2)

2017-01-31 Thread Bas Nieuwenhuizen
On Wed, Feb 1, 2017, at 00:48, Dave Airlie wrote: > From: Dave Airlie > > The CTS tests at least are using this, and we were totally > ignoring it. > > This hopefully fixes the bouncing multisample CTS tests. > > v2: get family mask in ignored case from command buffer. >

Re: [Mesa-dev] [PATCH 0/3] radv: VK_KHR_shader_draw_parameters.

2017-01-31 Thread Dave Airlie
Look good to me, For the series: Reviewed-by: Dave Airlie On 1 February 2017 at 06:42, Bas Nieuwenhuizen wrote: > A basic implementation of VK_KHR_shader_draw_parameters. I haven't > bothered with optimizing it away in the case the shader doesn't

[Mesa-dev] [PATCH] radv: handle VK_QUEUE_FAMILY_IGNORED in image transitions (v2)

2017-01-31 Thread Dave Airlie
From: Dave Airlie The CTS tests at least are using this, and we were totally ignoring it. This hopefully fixes the bouncing multisample CTS tests. v2: get family mask in ignored case from command buffer. Signed-off-by: Dave Airlie ---

Re: [Mesa-dev] [PATCH 2/2] isl/formats: Only advertise sampling for A4B4G4R4 on Broadwell

2017-01-31 Thread Kenneth Graunke
On Friday, January 27, 2017 2:18:35 PM PST Jason Ekstrand wrote: > This causes hangs on Broadwell if you try to render to it. I have no > idea how we managed to not hit this earlier. > > Cc: "13.0 17.0" > --- > src/intel/isl/isl_format.c | 5 +++-- > 1 file

Re: [Mesa-dev] [PATCH 1/2] intel/blorp: Handle clearing of A4B4G4R4 on all platforms

2017-01-31 Thread Kenneth Graunke
On Friday, January 27, 2017 2:18:34 PM PST Jason Ekstrand wrote: > Cc: "13.0 17.0" > --- > src/intel/blorp/blorp_clear.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c

[Mesa-dev] [PATCH] radeonsi: Fix build on LLVM < 3.9

2017-01-31 Thread Tom Stellard
This was broken by: e0cc0a614c96011958bc3a1b84da9168e0e1ccbb --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

Re: [Mesa-dev] [PATCH 1/6] ac/nir: Add core Float64 support.

2017-01-31 Thread Dave Airlie
On 31 January 2017 at 17:35, Bas Nieuwenhuizen wrote: > Signed-off-by: Bas Nieuwenhuizen > --- > src/amd/common/ac_nir_to_llvm.c | 173 > ++-- > 1 file changed, 129 insertions(+), 44 deletions(-) > > diff --git

Re: [Mesa-dev] [PATCH] anv: Improve flushing around STATE_BASE_ADDRESS

2017-01-31 Thread Kenneth Graunke
On Tuesday, January 31, 2017 10:33:41 AM PST Jason Ekstrand wrote: > It is not clear from the docs exactly how pipelined STATE_BASE_ADDRESS > actually is. Previously, we knew we needed to flush prior to re-emitting > STATE_BASE_ADDRESS on gen8+ but we had never confirmed it on gen7 so we > left

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Alex Deucher
On Tue, Jan 31, 2017 at 5:06 PM, Emil Velikov wrote: > On 31 January 2017 at 15:43, Deucher, Alexander > wrote: >>> -Original Message- >>> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf >>> Of Dieter Nützel >>>

[Mesa-dev] [PATCH 1/2] radeonsi: Use build_buffer_load helper function for geometry shaders

2017-01-31 Thread Tom Stellard
Also modify build_buffer_load to always pass soffset to an intrinsic if it is set. This is required to avoid failing buffer range checks in some cases. --- src/gallium/drivers/radeonsi/si_shader.c | 67 ++-- 1 file changed, 20 insertions(+), 47 deletions(-) diff

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Emil Velikov
On 31 January 2017 at 15:43, Deucher, Alexander wrote: >> -Original Message- >> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf >> Of Dieter Nützel >> Sent: Tuesday, January 31, 2017 6:25 AM >> To: Michel Dänzer >> Cc: Alex Deucher;

Re: [Mesa-dev] [PATCH 1/3] vc4: Make Neon inline assembly clang compatible

2017-01-31 Thread Eric Anholt
Rob Herring writes: > clang throws an error on "%r2" and similar. I couldn't find any > documentation on what "%r?" is supposed to mean and I've never seen any > use like that as far as I remember. The parameter is supposed to be > cpu_stride and just %2/%3 should be sufficient.

Re: [Mesa-dev] [PATCH] radeonsi: Fix build on LLVM < 3.9

2017-01-31 Thread Mark Janes
I still get build errors when compiling with LLVM 3.6: Tom Stellard writes: > This was broken by: e0cc0a614c96011958bc3a1b84da9168e0e1ccbb > --- > src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 14 ++ > 1 file changed, 10 insertions(+), 4

[Mesa-dev] [PATCH 2/2] radeonsi: Use llvm.amdgcn.s.buffer.load instead of llvm.SI.load.const

2017-01-31 Thread Tom Stellard
Advantages of using llvm.amdgcn.s.buffer.load - We can use a real pointer type, which LLVM can better reason about and do alias analysis on. This will also ease the transition to using fat pointers and LLVM IR loads. - llvm.amdgcn.s.buffer.load is defined in IntrinsicsAMDGPU.td so passes

Re: [Mesa-dev] [PATCH 34/34] i965: Handle compression modifier

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > FINISHME: Use the kernel's final choice for the fb modifier > > bwidawsk@norris2:~/intel-gfx/kmscube (modifiers $) > ~/scripts/measure_bandwidth.sh ./kmscube none > Read bandwidth: 603.91 MiB/s > Write bandwidth: 615.28

Re: [Mesa-dev] [PATCH 31/34] i965: Use partial resolves for CCS buffers being scanned out

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:39 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:54PM -0800, Ben Widawsky wrote: > > On Gen9 hardware, the display engine is able to scanout a compressed > > framebuffer by providing an offset to auxiliary compression

Re: [Mesa-dev] [PATCH 27/34] i965: Make CCS stride match kernel's expectations

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > v2: Put the commit message as a comment (Topi) > > Cc: Topi Pohjolainen > Cc: Ville Syrjälä > Cc: Jason Ekstrand > Signed-off-by: Ben

Re: [Mesa-dev] [PATCH 26/34] i965: Pretend that CCS modified images are two planes

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Signed-off-by: Ben Widawsky > Acked-by: Daniel Stone > --- > src/mesa/drivers/dri/i965/intel_screen.c | 18 ++ > 1 file changed, 14 insertions(+), 4

Re: [Mesa-dev] [PATCH 25/34] i965/miptree: Allocate mt earlier in update winsys

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Allows us to continue utilizing common miptree creation using __DRIimage > without creating a new DRIimage (for the intel_process_dri2_buffer() > case). > > This is a bit ugly, but I think it's the best one can do. > >

Re: [Mesa-dev] [PATCH 24/34] i965/miptree: Add a return for updating of winsys

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > There is nothing particularly useful to do currently if the update > fails, but there is no point carrying on either. As a result, this has a > behavior change. > > v2: Make the return type a bool (Topi) > >

Re: [Mesa-dev] [PATCH] drm/radeon: Fix vram_size/visible values in DRM_RADEON_GEM_INFO ioctl

2017-01-31 Thread Dieter Nützel
Am 31.01.2017 16:43, schrieb Deucher, Alexander: -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Dieter Nützel Sent: Tuesday, January 31, 2017 6:25 AM To: Michel Dänzer Cc: Alex Deucher; mesa-dev@lists.freedesktop.org; amd-

Re: [Mesa-dev] [PATCH 23/34] i965: Add logic for allocating BO with CCS

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:36 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:46PM -0800, Ben Widawsky wrote: > > This patch provides the support (and comments) for allocating the BO > > with space for the CCS buffer just underneath it. > > > > This

Re: [Mesa-dev] [PATCH 16/34] i965: Separate image allocation with modifiers

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Since the code doesn't support modifiers yet, this patch should do > nothing other than prepare for more patches. > > Signed-off-by: Ben Widawsky > Acked-by: Daniel Stone > ---

Re: [Mesa-dev] [PATCH 22/34] i965: Allocate tile aligned height

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > This patch shouldn't actually do anything because the libdrm function > should already do this alignment. However, it preps us for a future > patch where we add in the CCS AUX size, and in the process it serves as > a

Re: [Mesa-dev] [PATCH 18/34] i965/miptree: Add a helper functions for image creation

2017-01-31 Thread Jason Ekstrand
On Wed, Jan 25, 2017 at 10:58 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 10:21:41PM -0800, Ben Widawsky wrote: > > This provides a common function or creating miptrees when there is an > > existing DRIimage to use. That provides an easy way to add CCS > >

[Mesa-dev] [PATCH 3/3] radv: Enable VK_KHR_shader_draw_parameters.

2017-01-31 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 4 src/amd/vulkan/radv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index da67b65ef43..0c8af823263 100644 ---

[Mesa-dev] [PATCH 2/3] radv: Pass draw index to shader.

2017-01-31 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 091d970ee0b..97c6b63ce01 100644 ---

[Mesa-dev] [PATCH 1/3] radv/ac: Add draw index support.

2017-01-31 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index c622c006cec..132150139c7 100644 ---

[Mesa-dev] [PATCH 0/3] radv: VK_KHR_shader_draw_parameters.

2017-01-31 Thread Bas Nieuwenhuizen
A basic implementation of VK_KHR_shader_draw_parameters. I haven't bothered with optimizing it away in the case the shader doesn't use it, but the impact seems low anyway. Needs the first two patches of Lionel's series for the driver independent support. Bas Nieuwenhuizen (3): radv/ac: Add

Re: [Mesa-dev] [PATCH 14/34] gbm: Get modifiers from DRI

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > Replace the naive, 'save all the modifiers' with a proper query for just > the modifier that was selected. To accomplish this, two new query tokens > are added to the extension: > __DRI_IMAGE_ATTRIB_MODIFIER_UPPER >

[Mesa-dev] [PATCH v3] i965: Prevent coverity warning

2017-01-31 Thread Robert Foss
Add assert checking that num_sources is never larger than 3. This prevents Coverity from concluding that the unhandled cases of num_sources not being 0-3 are relevant. Coverity-Id: 1399480-1399489 Signed-off-by: Robert Foss Reviewed-by: Anuj Phogat

Re: [Mesa-dev] [PATCH] [swr] fix index buffers with non-zero indices

2017-01-31 Thread Kyriazis, George
Thanks, Good point. I'll send a new version our for review. George > -Original Message- > From: ibmir...@gmail.com [mailto:ibmir...@gmail.com] On Behalf Of Ilia > Mirkin > Sent: Tuesday, January 31, 2017 11:50 AM > To: Kyriazis, George > Cc:

Re: [Mesa-dev] [PATCH 12/34] i965: Handle Y-tile modifier

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > This patch begins introducing how we'll actually handle the potentially > many modifiers coming in from the API, how we'll store them, and the > structure in the code to support it. > > Prior to this patch, the Y-tiled

Re: [Mesa-dev] [PATCH v2 1/2] mesa: make glFramebuffer* check immutable texture level bounds

2017-01-31 Thread Antía Puentes
On mar, 2017-01-31 at 12:09 +0100, Nicolai Hähnle wrote: > On 30.01.2017 19:09, Ilia Mirkin wrote: > > > > On Mon, Jan 30, 2017 at 1:06 PM, Ilia Mirkin wrote: > > > > > > On Mon, Jan 30, 2017 at 12:26 PM, Nicolai Hähnle wrote: > > > > > > > > On 30.01.2017 18:23, Ilia

Re: [Mesa-dev] [PATCH 10/34] gbm: Introduce modifiers into surface/bo creation

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:21 PM, Ben Widawsky wrote: > The idea behind modifiers like this is that the user of GBM will have > some mechanism to query what properties the hardware supports for its BO > or surface. This information is directly passed in (and stored) so that >

Re: [Mesa-dev] [PATCH 2/7] spirv: add SPV_KHR_shader_draw_parameters support

2017-01-31 Thread Bas Nieuwenhuizen
Patches 1 and 2 are Reviewed-by: Bas Nieuwenhuizen On Tue, Jan 31, 2017, at 16:00, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/compiler/spirv/nir_spirv.h | 1 + > src/compiler/spirv/spirv_to_nir.c | 4

Re: [Mesa-dev] [PATCH 07/34] gbm: Export a per plane getter for offset

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:19 PM, Ben Widawsky wrote: > Unlike stride, there was no previous offset getter, so it can be right > on the first try. > > v2: Return EINVAL when plane is greater than total planes to make it > match the similar APIs. > Avoid leak after fromPlanar

Re: [Mesa-dev] [PATCH 06/34] gbm: Export a per plane getter for stride

2017-01-31 Thread Jason Ekstrand
On Mon, Jan 23, 2017 at 10:19 PM, Ben Widawsky wrote: > v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) > EINVAL when input plane is greater than total planes (Jason Ekstrand) > Don't leak the image after fromPlanar (Daniel) > Move bo->image check below plane

Re: [Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 10:38 AM, Jason Ekstrand wrote: > > On Tue, Jan 31, 2017 at 8:15 AM, Topi Pohjolainen < > topi.pohjolai...@gmail.com> wrote: > >> Current estimate doesn't consider space needed for surface states >> and it only calculates for one shader stage. Each

Re: [Mesa-dev] [PATCH] Revert "i915: Always enable GL 2.0 support."

2017-01-31 Thread Matt Turner
On Sun, Jan 29, 2017 at 8:29 PM, Kenneth Graunke wrote: > On Sunday, January 29, 2017 6:20:10 PM PST Matt Turner wrote: >> This partially reverts commit 97217a40f97cdeae0304798b607f704deb0c3558. >> It leaves ES 2.0 support in place per Ian's suggestion, because ES 2.0 >> is

Re: [Mesa-dev] [PATCH 4/4] Revert "i965: Disable guardband clipping in the smaller-than-viewport case."

2017-01-31 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Sun, Jan 22, 2017 at 10:42 PM, Kenneth Graunke wrote: > This reverts commit 0bac2551e40410e2251daf4fd9faf69310ab34ce. > > Now that we position the guardband correctly (applying translations > in addition to scaling)

[Mesa-dev] [PATCH 1/2] intel/blorp: Delete NIR uniform support

2017-01-31 Thread Jason Ekstrand
Blorp doesn't use uniform push constants anymore so there's no need to support them in compile_nir_shader. Signed-off-by: Jason Ekstrand --- src/intel/blorp/blorp.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/src/intel/blorp/blorp.c

[Mesa-dev] [PATCH 2/2] blorp: Embed a wm_prog_data in blorp_prog_data

2017-01-31 Thread Jason Ekstrand
While we're at it, we rename it to remove the brw_ prefix Signed-off-by: Jason Ekstrand --- src/intel/blorp/blorp.c | 26 +- src/intel/blorp/blorp_blit.c | 2 +- src/intel/blorp/blorp_clear.c | 2 +- src/intel/blorp/blorp_genX_exec.h | 72

Re: [Mesa-dev] [PATCH] mesa: Implement ARB_texture_filter_minmax for i965/gen9+

2017-01-31 Thread Ilia Mirkin
On Tue, Jan 31, 2017 at 1:53 PM, Plamena Manolova wrote: > This extension provides a new texture and sampler parameter > (TEXTURE_REDUCTION_MODE_ARB) which allows applications to produce a > filtered texel value by computing a component-wise minimum (MIN) or > maximum

Re: [Mesa-dev] [PATCH] mesa: Implement ARB_texture_filter_minmax for i965/gen9+

2017-01-31 Thread Chris Forbes
This looks like it misses the interactions with texture completeness. - Chris On Wed, Feb 1, 2017 at 7:53 AM, Plamena Manolova wrote: > This extension provides a new texture and sampler parameter > (TEXTURE_REDUCTION_MODE_ARB) which allows applications to produce a

[Mesa-dev] [PATCH] mesa: Implement ARB_texture_filter_minmax for i965/gen9+

2017-01-31 Thread Plamena Manolova
This extension provides a new texture and sampler parameter (TEXTURE_REDUCTION_MODE_ARB) which allows applications to produce a filtered texel value by computing a component-wise minimum (MIN) or maximum (MAX) of the texels that would normally be averaged. The reduction mode is orthogonal to the

Re: [Mesa-dev] [PATCH 3/4] i965: Always scissor on Gen6-7.5 instead of disabling guardband.

2017-01-31 Thread Jason Ekstrand
On Sun, Jan 22, 2017 at 10:42 PM, Kenneth Graunke wrote: > Previously we disabled the guardband when the viewport was smaller than > the framebuffer on Gen6-7.5, to prevent portions of primitives from > being draw outside of the viewport. On Gen8+, we relied on the

[Mesa-dev] [PATCH] anv: Improve flushing around STATE_BASE_ADDRESS

2017-01-31 Thread Jason Ekstrand
It is not clear from the docs exactly how pipelined STATE_BASE_ADDRESS actually is. Previously, we knew we needed to flush prior to re-emitting STATE_BASE_ADDRESS on gen8+ but we had never confirmed it on gen7 so we left it alone and avoided the flush. Recently, Mark found hangs on gen7 which

Re: [Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Jason Ekstrand
On Tue, Jan 31, 2017 at 8:15 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Current estimate doesn't consider space needed for surface states > and it only calculates for one shader stage. Each stage can have > its own sampler and surface state configuration. > > While this is only

Re: [Mesa-dev] [PATCH v2] i965: Prevent coverity warning

2017-01-31 Thread Anuj Phogat
On Tue, Jan 31, 2017 at 6:46 AM, Robert Foss wrote: > Add assert checking that num_sources is never larger than 3. > > This prevents Coverity from concluding that the improperly handled > cases of num_sources not being 0-3 are relevant. > You may change "improperly

Re: [Mesa-dev] [PATCH] [swr] fix index buffers with non-zero indices

2017-01-31 Thread Ilia Mirkin
Here's the current code: for (UINT i = 0; i < ctx->num_vertex_buffers; i++) { uint32_t size, pitch, elems, partial_inbounds; const uint8_t *p_data; struct pipe_vertex_buffer *vb = >vertex_buffer[i]; pitch = vb->stride; if (!vb->user_buffer) {

Re: [Mesa-dev] [PATCH] [swr] fix index buffers with non-zero indices

2017-01-31 Thread Kyriazis, George
Ilia, The problem is the following: This occurs only with index buffers that do not contain vertex index 0. The vertex fetcher operates in blocks of 8 vertices. Consequently, the last batch of 8 could access elements outside the range of the index buffer. There is a chance that those

[Mesa-dev] [Bug 99618] AVX Intrinsics Run in GUI thread only

2017-01-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99618 Bug ID: 99618 Summary: AVX Intrinsics Run in GUI thread only Product: Mesa Version: 13.0 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity:

Re: [Mesa-dev] [PATCH] [swr] fix index buffers with non-zero indices

2017-01-31 Thread Ilia Mirkin
What's the problem being fixed exactly? We're passing what is effectively the zero index to the core, and the core shouldn't ever access data outside of [min, max] + bias. That said, what you have is probably a cleaner implementation. However I'm a bit concerned about how it will function with

[Mesa-dev] [PATCH] [swr] fix index buffers with non-zero indices

2017-01-31 Thread George Kyriazis
Fix issue with index buffers that do not contain 0 index. Use core BaseVertex functionality to offset index buffer indices, instead of offsetting vertex buffer to point before the buffer origin. --- src/gallium/drivers/swr/swr_draw.cpp | 2 +- src/gallium/drivers/swr/swr_state.cpp | 2 +- 2

Re: [Mesa-dev] [v2 6/9] i965: Add support for tex upload using gpu

2017-01-31 Thread Pohjolainen, Topi
On Tue, Jan 31, 2017 at 06:13:45PM +0200, Topi Pohjolainen wrote: > v2: >- Fix return value (s/MESA_FORMAT_NONE/false/) (Anuj) >- Move _mesa_tex_format_from_format_and_type() just > in the end avoiding additional if-block (Anuj) >- Explain better the array alignment restriction

[Mesa-dev] [v2 4/9] i965: Estimate batch space per shader stage

2017-01-31 Thread Topi Pohjolainen
Current estimate doesn't consider space needed for surface states and it only calculates for one shader stage. Each stage can have its own sampler and surface state configuration. While this is only matter of runtime dynamics we don't seem to hit it currently. However, this becomes visible with

[Mesa-dev] [v2 6/9] i965: Add support for tex upload using gpu

2017-01-31 Thread Topi Pohjolainen
v2: - Fix return value (s/MESA_FORMAT_NONE/false/) (Anuj) - Move _mesa_tex_format_from_format_and_type() just in the end avoiding additional if-block (Anuj) - Explain better the array alignment restriction (Anuj) - Do not bail out in case of gl_pixelstore_attrib::ImageHeight,

Re: [Mesa-dev] [PATCH] st: remove pre C99 statement block for variable declaration

2017-01-31 Thread Marek Olšák
Acked-by: Marek Olšák Marek On Tue, Jan 31, 2017 at 12:25 AM, Timothy Arceri wrote: > --- > src/mesa/state_tracker/st_program.c | 118 > ++-- > 1 file changed, 58 insertions(+), 60 deletions(-) > > diff --git

[Mesa-dev] [PATCH v2] anv: always allocate a vertex element with vertexid or instanceid

2017-01-31 Thread Lionel Landwerlin
Up to now on Gen8+ we only allocated a vertex element for gl_InstanceIndex or gl_VertexIndex when a vertex shader uses gl_BaseInstanceARB or gl_BaseVertexARB. This is because we would configure the VF_SGVS packet to make the VF unit write the gl_InstanceIndex & gl_VertexIndex values right behind

[Mesa-dev] [PATCH 4/7] anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- src/intel/vulkan/genX_pipeline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index

[Mesa-dev] [PATCH 6/7] anv: emit DrawID if needed

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 43 +- src/intel/vulkan/genX_pipeline.c | 25 +- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git

[Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-01-31 Thread Lionel Landwerlin
Enables 10 tests from: dEQP-VK.draw.shader_draw_parameters.* Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 4 src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c

  1   2   >