[Mesa-dev] [PATCH 1/8] i965: Wrap MCS miptree in intel_miptree_aux_buffer

2016-11-03 Thread Lionel Landwerlin
/gen8: Use intel_miptree_aux_buffer for auxiliary buffer - which didn't need to be separate in my opinion. v3: rebase on master (Lionel) Signed-off-by: Jordan Justen (v1) Reviewed-by: Topi Pohjolainen (v1) Signed-off-by: Ben Widawsky a (v2) Signed-off-by: Lionel Landwerlin (v3) ---

[Mesa-dev] [PATCH 2/8] i965/miptree: Directly gtt map the mcs buffer

2016-11-03 Thread Lionel Landwerlin
ionel) Signed-off-by: Ben Widawsky (v1) Signed-off-by: Lionel Landwerlin (v2) --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c

[Mesa-dev] [PATCH 7/8] i965/gen9: Add HiZ auxiliary buffer support

2016-11-03 Thread Lionel Landwerlin
s most of the actual programming (Lionel) Signed-off-by: Ben Widawsky (v1) Signed-off-by: Lionel Landwerlin (v2) --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface

[Mesa-dev] [PATCH 6/8] i965: Add function to indicate when sampling with hiz is supported

2016-11-03 Thread Lionel Landwerlin
From: Jordan Justen Currently it indicates that this is never supported, but soon it will be supported for gen8+^w gen9+ v2 by Ben: - Explicitly disable aux_hiz for gen < 9 (with comment) - squashed in next patch to avoid unused and useless functions i965: Support sampling with hiz during re

[Mesa-dev] [PATCH 8/8] i965/gen9: Allow sampling with hiz when supported

2016-11-03 Thread Lionel Landwerlin
num_samples <= 1. (Lionel) Allow sampling from HiZ only if all LOD are available from the HiZ buffer. (Lionel) Signed-off-by: Jordan Justen (v1) Signed-off-by: Ben Widawsky (v2) Signed-off-by: Lionel Landwerlin (v3) --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 29 ++

Re: [Mesa-dev] [PATCH 4/8] i965: Store mcs buffer size

2016-11-07 Thread Lionel Landwerlin
On 07/11/16 10:07, Pohjolainen, Topi wrote: On Thu, Nov 03, 2016 at 10:39:39AM +, Lionel Landwerlin wrote: From: Ben Widawsky libdrm may round up the allocation requested by mesa. As a result, accesses through the gtt may end up accessing memory which does not belong to mesa. The problem

Re: [Mesa-dev] [PATCH 5/8] i965/miptree: Create a hiz mcs type

2016-11-07 Thread Lionel Landwerlin
On 07/11/16 10:18, Pohjolainen, Topi wrote: On Thu, Nov 03, 2016 at 10:39:40AM +, Lionel Landwerlin wrote: From: Ben Widawsky This seems counter to the goal of consolidating hiz, mcs, and later ccs buffers. Unfortunately, hiz on gen6 is a thing the code supports, and this wart will be

[Mesa-dev] [PATCH] i965: miptree: prevent potential NULL pointer access

2016-11-09 Thread Lionel Landwerlin
If the mcs buffer allocation fails we might get a NULL pointer. This was reported by Coverity and should only happen if we run out of memory. CID: 1394290 Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions

[Mesa-dev] [PATCH] i965: miptree: prevent potential NULL pointer access

2016-11-10 Thread Lionel Landwerlin
If the mcs buffer allocation fails we might get a NULL pointer. This was reported by Coverity and should only happen if we run out of memory. v2: return failure at the point of allocation (Chris) CID: 1394290 Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c

[Mesa-dev] [PATCH 1/2] mesa: add NV_image_formats extension support

2016-11-11 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98480 --- src/compiler/glsl/glsl_parser.yy | 5 +-- src/compiler/glsl/glsl_parser_extras.cpp | 58 src/compiler/glsl/glsl_parser_extras.h | 4 +++ src/mesa/main

[Mesa-dev] [PATCH 2/2] i965: enable NV_image_formats support

2016-11-11 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98480 --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index

[Mesa-dev] [PATCH 0/2] NV_image_formats extension support

2016-11-11 Thread Lionel Landwerlin
piglit test is available here : https://patchwork.freedesktop.org/series/15173/ Cheers, Lionel Landwerlin (2): mesa: add NV_image_formats extension support i965: enable NV_image_formats support src/compiler/glsl/glsl_parser.yy | 5 ++- src/compiler/glsl/glsl_parser_extras.cpp

Re: [Mesa-dev] [PATCH 1/2] mesa: add NV_image_formats extension support

2016-11-14 Thread Lionel Landwerlin
On 11/11/16 18:39, Ilia Mirkin wrote: On Fri, Nov 11, 2016 at 10:40 AM, Lionel Landwerlin wrote: Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98480 --- src/compiler/glsl/glsl_parser.yy | 5 +-- src/compiler/glsl/glsl_parser_extras.cpp

Re: [Mesa-dev] [PATCH 1/2] anv/format: handle unsupported formats properly

2016-11-14 Thread Lionel Landwerlin
Thanks for Spotting this. Reviewed-by: Lionel Landwerlin On 14/11/16 13:23, Iago Toral Quiroga wrote: According to the spec for vkGetPhysicalDeviceImageFormatProperties: "If format is not a supported image format, or if the combination of format, type, tiling, usage, and flags i

Re: [Mesa-dev] [PATCH 2/2] anv/format: support VK_FORMAT_R8G8B8_SRGB

2016-11-14 Thread Lionel Landwerlin
Sounds good too. Reviewed-by: Lionel Landwerlin On 14/11/16 13:23, Iago Toral Quiroga wrote: Fixes dEQP-VK.api.image_clearing.clear_color_image.1d_r8g8b8_srgb --- src/intel/vulkan/anv_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan

[Mesa-dev] [PATCH] anv: fix multi level clears with VK_REMAINING_MIP_LEVELS

2016-11-14 Thread Lionel Landwerlin
A commit from the CTS suite on the 1.0-dev branch started using VK_REMAINING_MIP_LEVELS, we're not dealing with it properly for clears. Fixes: dEQP-VK.api.image_clearing.clear_color_image.* Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_blorp.c | 4 ++-- 1 file chang

[Mesa-dev] [PATCH v2] mesa: add NV_image_formats extension support

2016-11-15 Thread Lionel Landwerlin
v2: Replace helper function by qualifier struct field (Ilia) Enable NV_image_formats using ARB_shader_image_load_store (Ilia) Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98480 Cc: Ilia Mirkin --- src/compiler/glsl/glsl_parser.yy | 86

Re: [Mesa-dev] [PATCH] i965: "Fix" aux offsets

2016-11-16 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 16/11/16 01:35, Ben Widawsky wrote: From: Ben Widawsky When 1 BO is used for aux data, it needs to point to the correct offset, which will not be the BOs offset but instead an offset from the BOs offset. Since today there are always multiple BOs for aux

Re: [Mesa-dev] Fwd: New Defects reported by Coverity Scan for Mesa

2016-11-16 Thread Lionel Landwerlin
On 16/11/16 01:35, Jordan Justen wrote: On 2016-11-15 16:21:27, Matt Turner wrote: Jordan, In commit 0041169cacb300a882b4dc38cd341f98bf2a7c38 Author: Jordan Justen Date: Fri Oct 21 12:56:49 2016 +0100 This date is not correct. In my branch it was: Date: Mon Jun 30 00:50:56 2014 + Y

Re: [Mesa-dev] [PATCH] intel: aubinator: Fix resource leak in gen_spec_load_from_path

2016-11-21 Thread Lionel Landwerlin
Thanks! Reviewed-by: Lionel Landwerlin On 20/11/16 07:07, Mun Gwan-gyeong wrote: This fixes resource leak in gen_spec_load_from_path XML_ParserCreate failure path CID 1373564 Signed-off-by: Mun Gwan-gyeong --- src/intel/tools/decoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[Mesa-dev] [PATCH 4/7] anv: descriptorPool: allocate additional space for a hidden ubo

2016-11-21 Thread Lionel Landwerlin
This additional buffer will store workaround border colors for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan

[Mesa-dev] [PATCH 0/7] Anv: Border color fixes for Haswell

2016-11-21 Thread Lionel Landwerlin
about the texture format last bound to a sampler into a UBO. When a shader tries to access a sampler with integer format, do some bounds checking and load the border color from the UBO if needed. Thanks, Lionel Landwerlin (7): anv: Fix border colors with normalized formats on gen7/gen75 anv

[Mesa-dev] [PATCH 3/7] anv: descriptorSetLayout: allocate additional space for a hidden ubo

2016-11-21 Thread Lionel Landwerlin
This additional buffer will store workaround border colors for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 42 +++ src/intel/vulkan/anv_private.h| 9 2 files changed, 51 insertions

[Mesa-dev] [PATCH 7/7] anv: add nir pass to insert border color workaround

2016-11-21 Thread Lionel Landwerlin
* Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/Makefile.sources | 1 + src/intel/vulkan/anv_nir.h | 3 + src/intel/vulkan/anv_nir_gen7_border_color_wa.c | 208 src/intel/vulkan/anv_pipeline.c | 3 + 4 files

[Mesa-dev] [PATCH 1/7] anv: Fix border colors with normalized formats on gen7/gen75

2016-11-21 Thread Lionel Landwerlin
.*.format.*_unorm.address_modes.all_mode_clamp_to_border_* Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index fff0ba0..69c1ce9 100644 --- a/src

[Mesa-dev] [PATCH 5/7] anv: descriptorSet: allocate hidden ubo for border colors

2016-11-21 Thread Lionel Landwerlin
This additional buffer stores workaround border colors & mask based of the format's number of channels for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 16 src/intel/vulkan/anv_private.h| 13 +++

[Mesa-dev] [PATCH 2/7] anv: sampler: store border color & wrapping modes on Gen7.5

2016-11-21 Thread Lionel Landwerlin
--- src/intel/vulkan/anv_private.h | 4 +++- src/intel/vulkan/genX_state.c | 21 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7d7380a..8231f6b 100644 --- a/src/intel/vulkan/anv_private.h

[Mesa-dev] [PATCH 6/7] anv: descriptorSet: write sampler border colors on update

2016-11-21 Thread Lionel Landwerlin
When writing texture or sampler information into descriptor sets, also store the related information for border color workaround on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 60 ++- 1 file changed, 59 insertions(+), 1

Re: [Mesa-dev] [PATCH] intel/aubinator: Use the correct length for MEDIA commands

2016-11-22 Thread Lionel Landwerlin
On 22/11/16 02:58, Jason Ekstrand wrote: --- src/intel/tools/decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/tools/decoder.c b/src/intel/tools/decoder.c index 6bd02bf..55488eb 100644 --- a/src/intel/tools/decoder.c +++ b/src/intel/tools/decoder.c @@

Re: [Mesa-dev] [PATCH 2/4] anv/cmd_buffer: Handle running out of binding tables in compute shaders

2016-11-22 Thread Lionel Landwerlin
ve the same assert(result == VK_ERROR_OUT_OF_DEVICE_MEMORY); here? Anyhow, Reviewed-by: Lionel Landwerlin + result = anv_cmd_buffer_new_binding_table_block(cmd_buffer); + assert(result == VK_SUCCESS); + + /* Re-emit state base addresses so we get the new surface state base + *

Re: [Mesa-dev] [PATCH 3/4] anv/cmd_buffer: Re-emit MEDIA_CURBE_LOAD when CS push constants are dirty

2016-11-22 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 22/11/16 04:26, Jason Ekstrand wrote: This can happen even if the binding table isn't changed. For instance, you could have dynamic offsets with your descriptor set. This fixes the new stress.lots-of-surface-state.cs.dynamic cricible test. Cc: "

Re: [Mesa-dev] [PATCH 4/4] anv/cmd_buffer: Emit a CS stall before setting a CS pipeline

2016-11-22 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 22/11/16 04:26, Jason Ekstrand wrote: Cc: "13.0" Cc: Jordan Justen --- src/intel/vulkan/genX_cmd_buffer.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/in

Re: [Mesa-dev] [PATCH v2] nir/spirv: implement ordered / unordered floating point comparisons properly

2016-11-22 Thread Lionel Landwerlin
Sounds good to me, thanks! Reviewed-by: Lionel Landwerlin On 17/11/16 08:36, Iago Toral Quiroga wrote: Besides the logical operation involved, these also require that we test if the operands are ordered / unordered. For ordered operations, both operands must be ordered (and they must pass

Re: [Mesa-dev] [PATCH 1/4] intel/aubinator: Trust the packet size in the header for SUBOPCODE_HEADER

2016-11-24 Thread Lionel Landwerlin
This series is : Reviewed-by: Lionel Landwerlin On 24/11/16 04:27, Jason Ekstrand wrote: We were reading from the "comment size" dword and incrementing by that amount. This never caused a problem because that field was always zero. However, experimenting with actual aub fil

Re: [Mesa-dev] [PATCH] anv/state: if enabled, use anisotropic filtering also with VK_FILTER_NEAREST

2016-11-24 Thread Lionel Landwerlin
Hi Iago, Looking at the history, before ed4fe3e9ba9018e68afe6fdd4f267218a537fdaa we seem to set min/mag filter to MAPFILTER_ANISOTROPIC if maxAnisotropy > 1. It seems your patch makes sense in using MAPFILTER_ANISOTROPIC in the NEAREST case, but I wonder whether we should also check for maxAn

Re: [Mesa-dev] [PATCH 1/5] anv/pipeline: do not discard 'const' modifier

2016-11-24 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 24/11/16 12:36, Juan A. Suarez Romero wrote: Fixes warning. --- src/intel/vulkan/genX_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index cb164ad..ada7985

Re: [Mesa-dev] [PATCH 2/5] anv/pipeline: define is_dual_src_blend_factor() for gen <= 8

2016-11-24 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 24/11/16 12:36, Juan A. Suarez Romero wrote: Fixes defined but not used warning. --- src/intel/vulkan/genX_pipeline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index ada7985

Re: [Mesa-dev] [PATCH] anv/state: if enabled, use anisotropic filtering also with VK_FILTER_NEAREST

2016-11-24 Thread Lionel Landwerlin
Thanks for the explanation, feel free to wait for Jason's rb otherwise : Reviewed-by: Lionel Landwerlin ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] anv: clean up VkPhysicalDeviceFeatures list

2016-11-28 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 27/11/16 22:45, Ilia Mirkin wrote: Remove duplicate .alphaToOne, add missing .shaderResourceMinLod, and reorder a few entries to match their vulkan.h order. All the sparse features are still left out entirely. Signed-off-by: Ilia Mirkin --- Wasn't 100%

Re: [Mesa-dev] [PATCH] anv: expose imageCubeArray functionality

2016-11-28 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 27/11/16 19:41, Ilia Mirkin wrote: This appears to be fully supported already. Signed-off-by: Ilia Mirkin --- On a SKL: ./deqp-vk --deqp-visibility=hidden --deqp-case='*cube_array*' Test run totals: Passed:3255/4196 (77.6%) Failed

Re: [Mesa-dev] [PATCH 1/2] mesa: Add GL and GLSL plumbing for ARB_post_depth_coverage for i965 (gen9+).

2016-11-30 Thread Lionel Landwerlin
On 22/11/16 21:53, Plamena Manolova wrote: This extension allows the fragment shader to control whether values in gl_SampleMaskIn[] reflect the coverage after application of the early depth and stencil tests. Signed-off-by: Plamena Manolova --- src/compiler/glsl/ast.h | 5 ++

Re: [Mesa-dev] [PATCH 1/2] mesa: Add GL and GLSL plumbing for ARB_post_depth_coverage for i965 (gen9+).

2016-11-30 Thread Lionel Landwerlin
Also forgot that (like Ilia suggested for NV_image_formats) you can update docs/relnotes/ to list the new feature. Cheers, - Lionel On 30/11/16 13:33, Ilia Mirkin wrote: On Nov 30, 2016 7:17 AM, "Lionel Landwerlin" mailto:lionel.g.landwer...@intel.com>> wrote: >

Re: [Mesa-dev] [PATCH 2/2] i965: Add i965 plumbing for ARB_post_depth_coverage for i965 (gen9+).

2016-12-01 Thread Lionel Landwerlin
On 01/12/16 04:02, Chris Forbes wrote: A couple of notes on existing weirdness here: - Naming of GEN9_PSX_SHADER_NORMAL_COVERAGE_MASK_SHIFT is bizarre (not your fault) - Is BRW_PSICMS_INNER really the right thing for the normal mode? Why not BRW_PSICMS_NORMAL? Perhaps whoever added this stuff c

[Mesa-dev] [PATCH 1/2] mesa: add support for GL_INTEL_conservative_rasterization

2016-12-01 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/compiler/glsl/ast.h | 5 src/compiler/glsl/ast_to_hir.cpp | 5 src/compiler/glsl/ast_type.cpp | 16 +++- src/compiler/glsl/glsl_parser.yy | 34 ++ src/compiler/glsl

[Mesa-dev] [PATCH 0/2] Add INTEL_conservative_rasterization support

2016-12-01 Thread Lionel Landwerlin
Hi, Here are a couple of patches to add support for the INTEL_conservative_rasterization extension. This is available on Gen9+ platforms. You can find associated piglit tests here : https://patchwork.freedesktop.org/series/16230/ Cheers, Lionel Landwerlin (2): mesa: add support for

[Mesa-dev] [PATCH 2/2] i965: enable INTEL_conservative_rasterization on Gen9+

2016-12-01 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- docs/relnotes/13.1.0.html| 1 + src/mesa/drivers/dri/i965/brw_compiler.h | 1 + src/mesa/drivers/dri/i965/brw_defines.h | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/gen8_ps_state.c

Re: [Mesa-dev] [PATCH 0/2] Add INTEL_conservative_rasterization support

2016-12-01 Thread Lionel Landwerlin
Forgot to mentioned that this is based on top of Plamena's work (in case you want to test) : https://patchwork.freedesktop.org/series/15512/ On 01/12/16 15:56, Lionel Landwerlin wrote: Hi, Here are a couple of patches to add support for the INTEL_conservative_rasterization extension.

[Mesa-dev] [PATCH] anv: bump push constant max size to 512bytes

2016-12-02 Thread Lionel Landwerlin
This is the size selected by the i965 driver. Signed-off-by: Lionel Landwerlin Cc: Kenneth Graunke --- src/intel/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 1f03b68..ce4eb4d

[Mesa-dev] [PATCH] anv: image: report correct depthPicth for 3d images

2016-12-03 Thread Lionel Landwerlin
. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index e60373a..9ef0760 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c

Re: [Mesa-dev] [PATCH] anv: image: report correct depthPicth for 3d images

2016-12-03 Thread Lionel Landwerlin
pitch > makes so sense for us.  On sky lake and above it should be exactly > the same as array pitch.  One thing we should do is not report array > pitch for 3D and maybe report a depth pitch of zero on broadwell and > earlier. > > On Dec 3, 2016 7:51 AM, "Lionel Landwerlin&q

Re: [Mesa-dev] [PATCH] anv: image: report correct depthPicth for 3d images

2016-12-03 Thread Lionel Landwerlin
On 3 Dec 2016 4:40 pm, "Jason Ekstrand" wrote: On Dec 3, 2016 8:27 AM, "Lionel Landwerlin" wrote: That's on Haswell. I'm not sure whether a 3d image with multiple layers makes sense, but if it does, it should probably return different depth/layer pitch values?

[Mesa-dev] [PATCH] egl: wayland: bufferAge: only request a back buffer if there isn't one

2016-12-03 Thread Lionel Landwerlin
Seeing gtk+ application lockup when they query the buffer age of a surface. Since we update the buffer age field only when creating buffers & swaping them on the client side, there shouldn't be any need for requesting a new back buffer if there is already one available. Signed-off-b

[Mesa-dev] [PATCH 1/2] isl: introduce depth pitch query function

2016-12-06 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/Makefile.isl.am | 10 +- src/intel/isl/isl.c| 25 +++ src/intel/isl/isl.h| 8 + src/intel/isl/tests/.gitignore | 1 + .../tests

[Mesa-dev] [PATCH 2/2] anv: image: report correct depthPicth for 3d images

2016-12-06 Thread Lionel Landwerlin
the newly introduce isl function to query the depth. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_image.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index e60373a151..af5e3c4974

Re: [Mesa-dev] [PATCH] egl: wayland: bufferAge: only request a back buffer if there isn't one

2016-12-06 Thread Lionel Landwerlin
On 06/12/16 11:36, Eric Engestrom wrote: On Saturday, 2016-12-03 22:47:17 +, Lionel Landwerlin wrote: Seeing gtk+ application lockup when they query the buffer age of a surface. Since we update the buffer age field only when creating buffers & swaping them on the client side, t

Re: [Mesa-dev] [PATCH] egl: wayland: bufferAge: only request a back buffer if there isn't one

2016-12-07 Thread Lionel Landwerlin
On 07/12/16 10:55, Eric Engestrom wrote: On Tuesday, 2016-12-06 12:13:32 +, Lionel Landwerlin wrote: On 06/12/16 11:36, Eric Engestrom wrote: On Saturday, 2016-12-03 22:47:17 +, Lionel Landwerlin wrote: Seeing gtk+ application lockup when they query the buffer age of a surface. Since

[Mesa-dev] [PATCH 1/2] egl: wayland: set buffer age value to 0 when image is destroyed

2016-12-07 Thread Lionel Landwerlin
We usually set that value up when creating the buffer (NULL to non-NULL transition). It doesn't hurt to set that value to 0 up front when we destroy the buffer (non-NULL to NULL transition). Signed-off-by: Lionel Landwerlin --- src/egl/drivers/dri2/platform_wayland.c | 2 ++ 1 file chang

[Mesa-dev] [PATCH 2/2] egl: wayland: bufferAge: only request a back buffer if there isn't one

2016-12-07 Thread Lionel Landwerlin
ends on a previous commit settings the age value of buffers to 0 on buffer destruction, so we're sure to always have an up to date value. Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84016 --- src/egl/drivers/dri2/platform_wayland.c | 2 +- 1 f

Re: [Mesa-dev] [PATCH 1/2] mesa: add support for GL_INTEL_conservative_rasterization

2016-12-07 Thread Lionel Landwerlin
On 07/12/16 14:55, Ilia Mirkin wrote: On Thu, Dec 1, 2016 at 10:56 AM, Lionel Landwerlin wrote: Signed-off-by: Lionel Landwerlin --- src/compiler/glsl/ast.h | 5 src/compiler/glsl/ast_to_hir.cpp | 5 src/compiler/glsl/ast_type.cpp | 16

[Mesa-dev] [PATCH 2/3] mesa: main: don't error when enabling conservative rasterization on gles

2016-12-08 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mesa/main/enable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 8440c62..2267e31 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -440,7

[Mesa-dev] [PATCH 0/3] mesa: INTEL_conservative_rasterization fixes

2016-12-08 Thread Lionel Landwerlin
/16230/ Cheers, Lionel Landwerlin (3): mesa: main: use _NEW_MULTISAMPLE for conservative rasterization state mesa: main: don't error when enabling conservative rasterization on gles main: extensions: update INTEL_conservative_rasterization dependencies src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 1/3] mesa: main: use _NEW_MULTISAMPLE for conservative rasterization state

2016-12-08 Thread Lionel Landwerlin
Suggested by Ilia. Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mesa/drivers/dri/i965/gen8_ps_state.c | 5 ++--- src/mesa/drivers/dri/i965/gen8_sf_state.c | 2 +- src/mesa/main/enable.c| 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src

[Mesa-dev] [PATCH 3/3] main: extensions: update INTEL_conservative_rasterization dependencies

2016-12-08 Thread Lionel Landwerlin
Suggested by Ilia. Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mesa/main/extensions_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h index 9c3b776..2de3c59 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 5/5] main: add INTEL_conservative_rasterization enum query support

2016-12-08 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mesa/main/get_hash_params.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index bc80d94..e79037e 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa

[Mesa-dev] [PATCH 4/5] glapi: add missing INTEL_conservative_rasterization

2016-12-08 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mapi/glapi/gen/INTEL_conservative_rasterization.xml | 10 ++ src/mapi/glapi/gen/gl_API.xml | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/mapi/glapi/gen

[Mesa-dev] [PATCH 6/6] docs: add INTEL_conservative_rasterization to relaese notes for 13.1.0

2016-12-08 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- docs/relnotes/13.1.0.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/relnotes/13.1.0.html b/docs/relnotes/13.1.0.html index 5b8b016..4dce843 100644 --- a/docs/relnotes/13.1.0.html +++ b/docs/relnotes/13.1.0.html @@ -45,6 +45,7 @@ Note: some of

[Mesa-dev] [PATCH v2 2/2] anv: image: report correct depthPicth for 3d images

2016-12-08 Thread Lionel Landwerlin
the newly introduce isl function to query the depth. v2: pass mipLevel Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_image.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index

[Mesa-dev] [PATCH v2 1/2] isl: introduce depth pitch query function

2016-12-08 Thread Lionel Landwerlin
v2: add lod level argument (Jason) return 0 for any lod level > 0 (Jason) return 0 for any surface not 3D (Jason) Signed-off-by: Lionel Landwerlin --- src/intel/Makefile.isl.am | 10 +- src/intel/isl/isl.c| 28 +++ src/intel/

Re: [Mesa-dev] [PATCH 4/5] glapi: add missing INTEL_conservative_rasterization

2016-12-09 Thread Lionel Landwerlin
Also, for such smaller exts, we tend to just stick them into gl_API.xml directly. Lastly if you do want to keep it in a separate file, make sure to add it to the list in Makefile.am. Oops... On Thu, Dec 8, 2016 at 7:11 AM, Lionel Landwerlin wrote: Signed-off-by: Lionel Landwerlin Cc: Ilia M

Re: [Mesa-dev] [PATCH 2/7] i965: Replace open-coded store/load SO_WRITE_OFFSET to/from mem

2016-12-09 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: Rather than emit the instructions directions, make use of the helpers brw_store_register_mem32() and brw_load_register_mem() Signed-off-by: Chris Wilson --- src/mesa/drivers/dri/i965/hsw_sol.c | 27

Re: [Mesa-dev] [PATCH 5/7] i965: Move pipelined register access to its own file

2016-12-09 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: My ulterior motive is to kill intel_batchbuffer.[ch] and moving discrete pieces of functionality into their own files is a small step towards that goal. Signed-off-by: Chris Wilson --- src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 6/7] i965: s/brw_load_register_reg/brw_load_register_reg32/

2016-12-09 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: Rename brw_load_register_reg to include the width (32bits) similar to all the other register routines. Signed-off-by: Chris Wilson --- src/mesa/drivers/dri/i965/brw_pipelined_register.c | 2 +- src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 4/7] i965: Replace opencoding of brw_load_register_imm32

2016-12-09 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: There are a few open coded setting of single registers using MI_LOAD_REGISTER_IMM, replace those with a call to brw_load_register_imm32(). Signed-off-by: Chris Wilson --- src/mesa/drivers/dri/i965/brw_draw.c | 6

Re: [Mesa-dev] [PATCH 7/7] i965: Reorder parameters to brw_store_register_mem

2016-12-09 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: Reorder the parameters to brw_store_register_mem32 and brw_store_register_mem64 so that the offset into the buffer and its identifier are paired. This brings the interface into line wth brw_load_register_mem. Signed-off-by

Re: [Mesa-dev] [PATCH 3/7] i965: Stop passing read/write domains to load_reg_mem32/64

2016-12-09 Thread Lionel Landwerlin
Some I915_GEM_DOMAIN_VERTEX are changed to I915_GEM_DOMAIN_INSTRUCTION, which are treated the same way in the kernel. So I guess it doesn't matter. Reviewed-by: Lionel Landwerlin On 09/12/16 10:54, Chris Wilson wrote: The domains used are immaterial, and we should never be marking the

Re: [Mesa-dev] [PATCH v2 1/2] isl: introduce depth pitch query function

2016-12-09 Thread Lionel Landwerlin
On 08/12/16 19:19, Jason Ekstrand wrote: On Dec 8, 2016 8:48 AM, "Lionel Landwerlin" <mailto:llandwer...@gmail.com>> wrote: v2: add lod level argument (Jason) return 0 for any lod level > 0 (Jason) return 0 for any surface not 3D (Jason) I'd r

[Mesa-dev] [PATCH v2] glapi: add missing INTEL_conservative_rasterization

2016-12-09 Thread Lionel Landwerlin
v2: put enum directly in gl_API.xml (Ilia) Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin --- src/mapi/glapi/gen/gl_API.xml | 4 1 file changed, 4 insertions(+) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 00c9bb795c..6e00363b6f 100644 --- a/src/mapi

[Mesa-dev] [PATCH v2] mesa: main: use new driver flag for conservative rasterization state

2016-12-12 Thread Lionel Landwerlin
Suggested by Marek. Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin Cc: Marek Olšák --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_upload.c | 2 ++ src/mesa/drivers/dri/i965/gen8_ps_state.c| 8 src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH v3] main: use new driver flag for conservative rasterization state

2016-12-12 Thread Lionel Landwerlin
Suggested by Marek. v2: Use new driver flag (Marek) v3: Fix i965 comments (Lionel) Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin Cc: Marek Olšák --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_upload.c | 2 ++ src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH v3] main: use new driver flag for conservative rasterization state

2016-12-13 Thread Lionel Landwerlin
Hi Marek, Can I have your r-b with this patch? Cheers, - Lionel On 12/12/16 12:30, Lionel Landwerlin wrote: Suggested by Marek. v2: Use new driver flag (Marek) v3: Fix i965 comments (Lionel) Signed-off-by: Lionel Landwerlin Cc: Ilia Mirkin Cc: Marek Olšák --- src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH 1/2] genxml: Rename "DS Function Enable" to "Function Enable".

2016-12-14 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 14/12/16 09:41, Kenneth Graunke wrote: This makes Gen7/7.5 match Gen8-9. Signed-off-by: Kenneth Graunke --- src/intel/genxml/gen7.xml | 2 +- src/intel/genxml/gen75.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel

Re: [Mesa-dev] [PATCH 2/2] genxml: Make Gen8 3DSTATE_DS SIMD8 enable work like Gen9+.

2016-12-14 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 14/12/16 09:41, Kenneth Graunke wrote: This will let us avoid ifdefs. Signed-off-by: Kenneth Graunke --- src/intel/genxml/gen8.xml | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8

[Mesa-dev] [PATCH 0/2] Spirv: Set push constant base/range

2016-12-17 Thread Lionel Landwerlin
Hi, Up to now, load_push_constant intrinsics generated by the spirv compiler were hardcoded to have an offset of 0 and a range of 128. This series adds a function compute those offset & range. Cheers, Lionel Lionel Landwerlin (2): spirv: move block_size() definition spirv: compute

[Mesa-dev] [PATCH 2/2] spirv: compute push constant access offset & range

2016-12-17 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/compiler/spirv/vtn_variables.c | 85 +++-- src/intel/vulkan/anv_nir_lower_push_constants.c | 1 - 2 files changed, 66 insertions(+), 20 deletions(-) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv

[Mesa-dev] [PATCH 1/2] spirv: move block_size() definition

2016-12-17 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/compiler/spirv/vtn_variables.c | 96 +++--- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index be64dd9550..f27d75cbec 100644 --- a

[Mesa-dev] [PATCH] anv: fix multiple creation with internal failure

2016-12-23 Thread Lionel Landwerlin
-VK.api.object_management.alloc_callback_fail_multiple.graphics_pipeline Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_pipeline.c | 26 -- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index

[Mesa-dev] [PATCH v2] anv: fix multiple creation with internal failure

2016-12-23 Thread Lionel Landwerlin
-VK.api.object_management.alloc_callback_fail_multiple.graphics_pipeline v2: C is hard let's go shopping (Lionel) Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_pipeline.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/intel/vulkan/genX_pipelin

[Mesa-dev] [PATCH v3] anv: fix multiple creation with internal failure

2016-12-23 Thread Lionel Landwerlin
-VK.api.object_management.alloc_callback_fail_multiple.graphics_pipeline v2: C is hard let's go shopping (Lionel) v3: Remove unnecessary condition in for loops (Lionel) Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_pipeline.c | 20 1 file changed, 8 insertions(+), 12 dele

[Mesa-dev] [PATCH v4] anv: fix multiple creation with internal failure

2016-12-23 Thread Lionel Landwerlin
-VK.api.object_management.alloc_callback_fail_multiple.graphics_pipeline v2: C is hard let's go shopping (Lionel) v3: Remove unnecessary condition in for loops (Lionel) v4: Document why we return on first failure (Eduardo) Move i declaration inside for() (Eduardo) Signed-off-by: Lionel Landwerlin ---

[Mesa-dev] [PATCH] anv/wsi: create swapchain images using specified image usage

2016-07-04 Thread Lionel Landwerlin
. Leaving the previous VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT as this might be expected even if the swapchain is created without any flag. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_wsi_wayland.c | 10 +++--- src/intel/vulkan/anv_wsi_x11.c | 3 ++- 2 files changed, 9

[Mesa-dev] [PATCH] anv/wsi: create swapchain images using specified image usage

2016-07-04 Thread Lionel Landwerlin
From: Lionel Landwerlin The image usage specified by the caller of vkCreateSwapchainKHR should be passed onto the internal image creation. Otherwise the driver might later crash when the user tries to use the image as a combined sampler even though the creation was explicitly created with

Re: [Mesa-dev] [PATCH] anv/pipeline: Set up point coord enables

2016-07-22 Thread Lionel Landwerlin
Tested-by: Lionel Landwerlin On 23/07/16 00:28, Jason Ekstrand wrote: Signed-off-by: Jason Ekstrand Cc: "12.0" --- src/intel/vulkan/genX_pipeline_util.h | 5 + 1 file changed, 5 insertions(+) diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipel

[Mesa-dev] [PATCH] anv: GetDeviceImageFormatProperties: fix TRANSFER formats

2016-07-28 Thread Lionel Landwerlin
We let the user believe we support some transfer formats which we don't. This can lead to crashes when actually trying to use those formats. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_formats.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/

[Mesa-dev] [PATCH] anv: GetDeviceImageFormatProperties: fix transfer destination formats

2016-08-03 Thread Lionel Landwerlin
ments. Signed-off-by: Lionel Landwerlin Cc: Jason Ekstrand --- src/intel/vulkan/anv_formats.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index b26e48a..1a3b19d 100644 --- a/src/intel/vulkan/anv_form

Re: [Mesa-dev] [PATCH] anv: GetDeviceImageFormatProperties: fix transfer destination formats

2016-08-05 Thread Lionel Landwerlin
On 03/08/16 16:01, Jason Ekstrand wrote: On Aug 3, 2016 5:53 AM, "Lionel Landwerlin" mailto:lionel.g.landwer...@intel.com>> wrote: > > We let the user believe we support some transfer destination formats > which we don't. This can lead to crashes when actually

[Mesa-dev] [PATCH] anv: gen7/75: enable multisampling

2016-08-05 Thread Lionel Landwerlin
Fixes 6 failures from dEQP-VK.api.copy_and_blit.resolve_image.* Tested on IVB/HSW Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/gen7_pipeline.c | 46 ++-- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/src/intel/vulkan

[Mesa-dev] [PATCH] anv: remove support for d32_sfloat_s8_uint

2016-08-05 Thread Lionel Landwerlin
It doesn't seem like we have any support for 32bits of something + 8bits of something else. This fixes dEQP-VK.api.copy_and_blit.blit_image.all_formats.scaling_partial_d32_sfloat_s8_uint_d32_sfloat_s8_uint_nearest Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_formats.c | 2

[Mesa-dev] [PATCH] anv: gen7/75: enable multisampling (v2)

2016-08-05 Thread Lionel Landwerlin
Fixes 6 failures from dEQP-VK.api.copy_and_blit.resolve_image.* Tested on IVB/HSW v2: Program multisample dispatch mode correctly Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/gen7_pipeline.c | 46 ++-- 1 file changed, 30 insertions(+), 16 deletions

Re: [Mesa-dev] [PATCH] anv: remove support for d32_sfloat_s8_uint

2016-08-05 Thread Lionel Landwerlin
On 05/08/16 18:08, Jason Ekstrand wrote: On Aug 5, 2016 9:49 AM, "Lionel Landwerlin" mailto:lionel.g.landwer...@intel.com>> wrote: > > It doesn't seem like we have any support for 32bits of something + 8bits of > something else. Not quite. Depth-stencil

[Mesa-dev] [PATCH 1/2] anv: gen7: rename rasterization state variable

2016-08-05 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: anuj.pho...@gmail.com --- src/intel/vulkan/gen7_pipeline.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c index 6acdd85..c2a38ac 100644 --- a/src/intel

<    1   2   3   4   5   6   7   8   9   10   >