Re: [Mesa-dev] [PATCH v2 4/5] i965: perf: add support for raw queries

2018-04-17 Thread Kenneth Graunke
On Tuesday, April 3, 2018 7:48:12 AM PDT Lionel Landwerlin wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c > b/src/mesa/drivers/dri/i965/brw_performance_query.c These changes look good. > diff --git a/src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c > b/src/mesa/d

Re: [Mesa-dev] [PATCH v2 5/5] i965: perf: enable GPA query statistics

2018-04-17 Thread Kenneth Graunke
On Tuesday, April 3, 2018 7:48:13 AM PDT Lionel Landwerlin wrote: > The combinaison of GPA/MDAPI components expects a particular name & > layout for their pipeline statistics query. > > v2: Limit the query GPA/MDAPI statistics to gen7->9 (Lionel) > > Signed-off-by: Lionel Landwerlin > --- > src

Re: [Mesa-dev] [PATCH v2 3/3] i965: enable INTEL_blackhole_render

2018-04-17 Thread Kenneth Graunke
On Friday, April 6, 2018 7:31:41 AM PDT Lionel Landwerlin wrote: > v2: condition the extension on context isolation support from the > kernel (Chris) > > v3: (Lionel) > > The initial version of this change used a feature of the Gen7+ > command parser to turn the primitive instructions

Re: [Mesa-dev] [PATCH v2 2/3] mesa: add INTEL_blackhole_render

2018-04-17 Thread Kenneth Graunke
On Friday, April 6, 2018 7:31:40 AM PDT Lionel Landwerlin wrote: > v2: Implement missing Enable/Disable (Emil) > > Signed-off-by: Lionel Landwerlin > --- > src/mesa/main/clear.c| 2 +- > src/mesa/main/enable.c | 14 ++ > src/mesa/main/extensions_table.h | 1 +

Re: [Mesa-dev] [PATCH v2 3/3] i965: enable INTEL_blackhole_render

2018-04-17 Thread Kenneth Graunke
On Friday, April 6, 2018 7:31:41 AM PDT Lionel Landwerlin wrote: > v2: condition the extension on context isolation support from the > kernel (Chris) > > v3: (Lionel) > > The initial version of this change used a feature of the Gen7+ > command parser to turn the primitive instructions

[Mesa-dev] [Bug 106052] shader-db crashes when running piglit shaders

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106052 --- Comment #11 from Timothy Arceri --- (In reply to b...@besd.de from comment #10) > Created attachment 138854 [details] [review] > fix incorrect assignment of float to vec4 in > tests/shaders/glsl-max-vertex-attrib.c Thanks for debugging this

[Mesa-dev] [Bug 106052] shader-db crashes when running piglit shaders

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106052 --- Comment #12 from Timothy Arceri --- (In reply to b...@besd.de from comment #8) > seems NIR has specific crashes too > > > => CRASHED <= while processing these shaders: > > shaders/piglit/da1588b9fd1ec5009a02ff9ee244f11923d32855_3.sha

[Mesa-dev] [Bug 106052] shader-db crashes when running piglit shaders

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106052 Timothy Arceri changed: What|Removed |Added Version|git |unspecified QA Contact|mesa-de

[Mesa-dev] [Bug 106058] Fix version requirements for GL_ARB_gpu_shader5

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106058 --- Comment #4 from b...@besd.de --- Timothy, do you want to push the corresponding mesa patch as well? I might not get to it until the weekend. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee

[Mesa-dev] Query GL extensions (“GL_OES_EGL_image_external” ) RE: Create texture2D from NV12

2018-04-17 Thread Zong, Wei
Hi Marek, Thanks for your help. Now I can use GL extension “GL_OES_EGL_image_external” to load and render NV12 image, it works well on my platform (Broxton). To ensure using this extension correctly on any platform, I checked for supported OpenGL extensions by glGetString() function, and printe

[Mesa-dev] [Bug 106058] Fix version requirements for GL_ARB_gpu_shader5

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106058 --- Comment #5 from Timothy Arceri --- (In reply to b...@besd.de from comment #4) > Timothy, > do you want to push the corresponding mesa patch as well? I might not get to > it until the weekend. hmmm, I though you were fixing the piglit tests

[Mesa-dev] [Bug 106058] Fix version requirements for GL_ARB_gpu_shader5

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106058 --- Comment #6 from Timothy Arceri --- (In reply to Timothy Arceri from comment #5) > (In reply to b...@besd.de from comment #4) > > Timothy, > > do you want to push the corresponding mesa patch as well? I might not get to > > it until the week

Re: [Mesa-dev] [PATCH] glsl_to_nir: fix ir_binop_vector_extract handling

2018-04-17 Thread Andriy Khulap
Ping On Tue, Apr 3, 2018 at 3:32 PM, Andriy Khulap wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105438 > Signed-off-by: Andriy Khulap > Signed-off-by: Vadym Shovkoplias > --- > src/compiler/glsl/glsl_to_nir.cpp | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src

Re: [Mesa-dev] [PATCH 1/2] mesa: GL_EXT_texture_norm16 extension plumbing

2018-04-17 Thread Ilia Mirkin
On Mon, Apr 16, 2018 at 11:22 PM, Tapani Pälli wrote: > On 17.04.2018 02:42, Ilia Mirkin wrote: > > differentiating the case "have NV_image_formats but not > > EXT_texture_norm16"? > > I had a version that added another boolean but since both of these > extensions require GL ES 3.1 it seemed to me

[Mesa-dev] [PATCH 1/2] ac/nir: fix interp mode for nir_intrinsic_interp_var_at_sample

2018-04-17 Thread Samuel Pitoiset
This fixes the following CTS tests: dEQP-VK.pipeline.multisample_interpolation.sample_interpolate_at_consistency.* This restores the previous behaviour, maybe the CTS tests were wrong? Fixes: 22b116171f8 ("radv: fix interp at sample code.") Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_n

[Mesa-dev] [PATCH 2/2] radv: make sure to sync after resolving using the compute path

2018-04-17 Thread Samuel Pitoiset
This fixes some random CTS failures: dEQP-VK.renderpass.multisample.*. Performing a fast-clear eliminate is still useless, but it seems that we need to sync. Found while running CTS with RADV_DEBUG=zerovram. Fixes: 56a171a499c ("radv: don't fast-clear eliminate after resolving a subpass with c

Re: [Mesa-dev] Nouveau driver problem when using EGL_LINUX_DMA_BUF_EXT

2018-04-17 Thread Pekka Paalanen
On Mon, 9 Apr 2018 09:56:43 -0400 Ilia Mirkin wrote: > On Mon, Apr 9, 2018 at 6:57 AM, Volker Vogelhuber > wrote: > > I would have guessed, that the use case would be quite common, as having a > > Live video source rendered via OpenGL shouldn't be a very special topic and > > having a zero copy

[Mesa-dev] [PATCH 5/5] radv: enable DCC for MSAA 2x textures on VI under an option

2018-04-17 Thread Samuel Pitoiset
This can be enabled with RADV_PERFTEST=dccmsaa. DCC for MSAA textures is actually not as easy to implement. It looks like there is some corner cases. I will improve support incrementally. Vega support, as well as Polaris improvements, will be added later. No CTS changes on Polaris using RADV_DEB

[Mesa-dev] [PATCH 4/5] radv: decompress DCC for multisampled source images before resolving

2018-04-17 Thread Samuel Pitoiset
Multisampled source images (ie. color attachments) can be now DCC compressed, so the driver needs to perform a DCC decompression pass before resolving Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta.h| 1 + src/amd/vulkan/radv_meta_resolve.c| 17 +++-- sr

[Mesa-dev] [PATCH 3/5] radv: add a workaround for fast clears with DCC and MSAA textures

2018-04-17 Thread Samuel Pitoiset
This should be fixed at some point in order to improve performance. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta_clear.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 86e0bc17ed8..858e3368b65

[Mesa-dev] [PATCH 0/5] radv: DCC for MSAA textures, part 1

2018-04-17 Thread Samuel Pitoiset
Hi, This series adds partial support for DCC with MSAA textures. Currently, only 2x samples are supported and only on VI. This is because 4x and 8x samples currently fail. It's actually more complicated than expected but I think it's better to merge the code incrementally. DCC for MSAA textures c

[Mesa-dev] [PATCH 1/5] radv: implement fast color clear for DCC with MSAA

2018-04-17 Thread Samuel Pitoiset
When DCC is enabled with MSAA textures, CMASK should be cleared to 0x. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta_clear.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_cle

[Mesa-dev] [PATCH 2/5] radv: allocate CMASK for DCC fast clear with MSAA

2018-04-17 Thread Samuel Pitoiset
CMASK is required because it should be cleared to 0x for MSAA textures. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_image.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index a14e7c18b29..ba8f14d91bd 10064

[Mesa-dev] [PATCH] radv: fix multisample image copies

2018-04-17 Thread Matthew Nicholls
Previously before fb077b0728, the LOD parameter was being used in place of the sample index, which would only copy the first sample to all samples in the destination image. After that multisample image copies wouldn't copy anything from my observations. Fix this properly by copying each sample in

[Mesa-dev] [PATCH 04/22] nir: Add explicit_binding to nir_variable

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts This is copied from the corresponding value in ir_variable. The intention is to eventually use it in a pure-NIR linker. --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/nir/nir.h| 5 + 2 files changed, 6 insertions(+) diff --git a/src/compiler/glsl/gl

[Mesa-dev] [PATCH 03/22] mesa/main: add NULL name check when searching for a resource name

2018-04-17 Thread Alejandro Piñeiro
Since ARB_gl_spirv name reflection can be missing. piglit shader_runner does several resource checking, so this commit is useful to get even the more simple piglit tests running without crashing on SPIR-V mode. --- src/mesa/main/shader_query.cpp | 5 + 1 file changed, 5 insertions(+) diff --g

[Mesa-dev] [PATCH 02/22] i965: use gl_shader_program_data::spirv

2018-04-17 Thread Alejandro Piñeiro
--- src/mesa/drivers/dri/i965/brw_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index fc77926d6e0..39c2d2a3581 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/driv

[Mesa-dev] [PATCH 01/22] mesa/main: Add a 'spirv' flag to gl_shader_program_data

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev This will be used by the linker code to differentiate between programs made out of SPIR-V or GLSL shaders. This was rejected in the past, assuming that it was equivalent to check for "shProg->_LinkedShaders[stage]->spirv_data != NULL". But: * At some points of the lin

[Mesa-dev] [PATCH 00/22] ARB_gl_spirv: support for uniforms and some extras

2018-04-17 Thread Alejandro Piñeiro
Hi, this is the second series for the ongoing support for ARB_gl_spirv in Mesa and i965. The main focus of this series is providing the support for linking uniforms. Most cases of uniforms, array uniforms, structs, samplers and images should be supported. In any case, this is mostly about "vanilla

[Mesa-dev] [PATCH 10/22] anv/nir: Use nir_variable's type if interface_type is null

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev Previous patch 'spirv: Get rid of vtn_variable_mode_image/sampler' made possible that interface_type of image/sampler nir_variable may be null. This patch accounts for it and make use of the type of the variable instead of the interface_type. This prevents a number of cr

[Mesa-dev] [PATCH 09/22] spirv: Get rid of vtn_variable_mode_image/sampler

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts vtn_variable_mode_image and _sampler are instead replaced with vtn_variable_mode_uniform which encompasses both of them. In the few places where it was neccessary to distinguish between the two, the GLSL type of the pointer is used instead. The main reason to do this is that o

[Mesa-dev] [PATCH 05/22] nir/lower_samplers: Limit assert to GLSL shader programs

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev Vulkan has the concept of separate image and sampler objects in the SPIR-V code whereas GL conflates them into one. nir_lower_samplers contains an assert to verify that sampler operand is not being set on the nir instruction. However when the code comes from spirv_to_nir

[Mesa-dev] [PATCH 06/22] nir/types: Add a glsl_get_component_slots() utility

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev It is basically a wrapper around glsl_type::component_slots(). --- src/compiler/nir_types.cpp | 6 ++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 78b66803f08..51ca79749

[Mesa-dev] [PATCH 07/22] nir/types: Add a utility wrapper to glsl_type::sampler_index()

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev I think it is more accurate to call it a sampler target (?). --- src/compiler/nir_types.cpp | 7 +++ src/compiler/nir_types.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 51ca797497e..d2b2a93b20

[Mesa-dev] [PATCH 13/22] nir/linker: Add nir_link_uniforms()

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev This function will be the entry point for linking the uniforms from the nir_shader objects associated with the gl_linked_shaders of a program. This patch includes initial support for linking uniforms from NIR shaders. It is tailored for the ARB_gl_spirv needs, and it is

[Mesa-dev] [PATCH 08/22] spirv: translate default-block uniforms

2018-04-17 Thread Alejandro Piñeiro
From: Nicolai Hähnle They are supported by SPIR-V for ARB_gl_spirv. v2 (changes on top of Nicolai's original patch): * Handle UniformConstant storage class for uniforms other than samplers and images. (Eduardo Lima) * Handle location decoration also for samplers and images. (Eduardo

[Mesa-dev] [PATCH 11/22] spirv: Set nir_variable->explicit_binding

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts When SpvDecorationBinding is encountered in the SPIR-V source it now sets explicit_binding on the nir_variable. This will be used to determine whether to initialise sampler and image uniforms with the binding value. --- src/compiler/spirv/vtn_private.h | 1 + src/compiler/sp

[Mesa-dev] [PATCH 12/22] compiler/link: add linker_util.h, move linker_error/warning to it

2018-04-17 Thread Alejandro Piñeiro
Linker utilities common to glsl and nir. As a first step, it moves linker_error/warning from glsl/linker.h --- src/compiler/Makefile.sources | 2 + .../glsl/link_uniform_block_active_visitor.cpp | 1 + src/compiler/glsl/linker.cpp | 27

[Mesa-dev] [PATCH 14/22] nir/linker: add some cross stage uniform validation

2018-04-17 Thread Alejandro Piñeiro
For now it checks that the type and array size of the uniforms is the same, as right now only this and uniform->opaque is filled (and this is specific for each stage). More checks will be added as more features get added. We are not checking for the same explicit location as we are basing the link

[Mesa-dev] [PATCH 15/22] nir/linker: Set the uniform initial values

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts This is based on link_uniform_initializers.cpp. --- src/compiler/Makefile.sources| 1 + src/compiler/nir/meson.build | 1 + src/compiler/nir/nir_link_uniform_initializers.c | 292 +++ src/compiler/nir/nir_link_uni

[Mesa-dev] [PATCH 16/22] compiler/link: move add_program_resource to linker_util

2018-04-17 Thread Alejandro Piñeiro
So it could be used by the GLSL and NIR linker. --- src/compiler/glsl/linker.cpp | 36 src/compiler/linker_util.cpp | 37 + src/compiler/linker_util.h | 5 + 3 files changed, 42 insertions(+), 36 deletions(-) diff --g

[Mesa-dev] [PATCH 18/22] i965: Build SPIR-V programs' resource list using NIR

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev --- src/mesa/drivers/dri/i965/brw_link.cpp | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp index 7841626dc33..48c06ce629f 100644 --- a/src/mesa/drivers/dri/i965/br

[Mesa-dev] [PATCH 17/22] nir/linker: Add nir_build_program_resource_list()

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev This function is equivalent to the compiler/glsl build_program_resource_list() but will extract the resources from NIR shaders instead. For now, only uniforms and program inputs are implemented. Signed-off-by: Eduardo Lima Signed-off-by: Alejandro Piñeiro --- src/com

[Mesa-dev] [PATCH 19/22] i965: Update TexturesUsed after linking the shaders

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts Otherwise if the shader is SPIR-V then SamplerUsed won’t have been initialised yet so it will end up thinking no textures are used. This was causing a crash later on if nothing causes it to regenerate TexturesUsed before the next render. --- src/mesa/drivers/dri/i965/brw_link.

[Mesa-dev] [PATCH 22/22] i965: Link uniforms of SPIR-V programs using the NIR linker

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev Signed-off-by: Eduardo Lima Signed-off-by: Alejandro Piñeiro --- src/mesa/drivers/dri/i965/brw_link.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp index 5bd9783aa01..007163c

[Mesa-dev] [PATCH 21/22] i965: Setup glsl uniforms by index rather than name matching

2018-04-17 Thread Alejandro Piñeiro
From: Neil Roberts Previously when setting up a uniform it would try to walk the uniform storage slots and find one that matches the name of the given variable. However, each variable already has a location which is an index into the UniformStorage array so we can just directly jump to the right

[Mesa-dev] [PATCH 20/22] i965: account for NIR uniforms without name

2018-04-17 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev Right now, the BRW linker code assumes nir_variable::name is always non-NULL, but thanks to ARB_gl_spirv we will soon be linking SPIR-V programs, and those explicitly require matching uniforms by location. The name is just a debug hint. v2: simplified, most of it moved t

Re: [Mesa-dev] [PATCH 09/22] spirv: Get rid of vtn_variable_mode_image/sampler

2018-04-17 Thread Alejandro Piñeiro
I forgot to CC any of the radv people. Sorry for the noise. On 17/04/18 16:36, Alejandro Piñeiro wrote: > From: Neil Roberts > > vtn_variable_mode_image and _sampler are instead replaced with > vtn_variable_mode_uniform which encompasses both of them. In the few > places where it was neccessary

Re: [Mesa-dev] [PATCH 0/3] meson: Patches for autotools parity

2018-04-17 Thread Dylan Baker
Since no one else has commented, I'm going to merge patches 2-3 now. Dylan Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:19) > Hi, > > these patches were added to mesa 18.0.0 by Arch Linux in order to make the > meson build product more > like the autotools one. They are in addition

Re: [Mesa-dev] Query GL extensions (“GL_OES_EGL_image_external” ) RE: Create texture2D from NV12

2018-04-17 Thread Tapani Pälli
Hi; On 17.04.2018 13:30, Zong, Wei wrote: Hi Marek, Thanks for your help. Now I can use GL extension“*GL_OES_EGL_image_external*” to load and render NV12 image, it works well on my platform (Broxton). To ensure using this extension correctly on any platform, I checked for supported OpenGL

Re: [Mesa-dev] [PATCH 5/5] amd/common: use the dimension-aware image intrinsics on LLVM 7+

2018-04-17 Thread Marek Olšák
For the series: Acked-by: Marek Olšák Marek On Wed, Apr 11, 2018 at 7:13 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Requires LLVM trunk r329166. > --- > src/amd/common/ac_llvm_build.c | 189 ++ > +-- > 1 file changed, 165 insertions(+), 24 delet

Re: [Mesa-dev] Query GL extensions (“GL_OES_EGL_image_external” ) RE: Create texture2D from NV12

2018-04-17 Thread Marek Olšák
Your extension string is too short. This is what I have: GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5, GL_APPLE_texture_max_level, GL_EXT_base_instance, GL_EXT_blend_func_extended, GL_EXT_blend_minmax, GL_EXT_buffer_storage, GL_EXT_clip_cull_distance, GL_EXT

Re: [Mesa-dev] [PATCH v4 6/6] i965: gl_BaseVertex must be zero for non-indexed draw calls

2018-04-17 Thread Ian Romanick
On 04/10/2018 09:26 AM, Jason Ekstrand wrote: > On Tue, Apr 10, 2018 at 1:28 AM, Antia Puentes > wrote: > > On 07/04/18 08:21, Jason Ekstrand wrote: > >> Oh, boy, this is tricky... First of all, it's a bit of a bummer >> that we can't just load the indirec

Re: [Mesa-dev] [PATCH] glsl_to_nir: fix ir_binop_vector_extract handling

2018-04-17 Thread Marek Olšák
Skipping an instruction is incorrect. I recommend something like this: https://patchwork.freedesktop.org/patch/217304/ Marek On Tue, Apr 3, 2018 at 8:32 AM, Andriy Khulap wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105438 > Signed-off-by: Andriy Khulap > Signed-off-by: V

Re: [Mesa-dev] [PATCH] glsl_to_nir: fix ir_binop_vector_extract handling

2018-04-17 Thread Marek Olšák
Actually, if you just apply my patch, it should fix glsl_to_nir too. Marek On Tue, Apr 17, 2018 at 1:31 PM, Marek Olšák wrote: > Skipping an instruction is incorrect. > > I recommend something like this: https://patchwork.freedesktop. > org/patch/217304/ > > Marek > > > > On Tue, Apr 3, 2018 at

Re: [Mesa-dev] [PATCH 1/2] mesa: GL_EXT_texture_norm16 extension plumbing

2018-04-17 Thread Ian Romanick
On 04/17/2018 05:19 AM, Ilia Mirkin wrote: > On Mon, Apr 16, 2018 at 11:22 PM, Tapani Pälli wrote: >> On 17.04.2018 02:42, Ilia Mirkin wrote: >>> differentiating the case "have NV_image_formats but not >>> EXT_texture_norm16"? >> >> I had a version that added another boolean but since both of thes

Re: [Mesa-dev] [PATCH 1/2] mesa: GL_EXT_texture_norm16 extension plumbing

2018-04-17 Thread Ilia Mirkin
On Tue, Apr 17, 2018 at 1:52 PM, Ian Romanick wrote: > On 04/17/2018 05:19 AM, Ilia Mirkin wrote: >> On Mon, Apr 16, 2018 at 11:22 PM, Tapani Pälli >> wrote: >>> On 17.04.2018 02:42, Ilia Mirkin wrote: differentiating the case "have NV_image_formats but not EXT_texture_norm16"? >>> >>>

Re: [Mesa-dev] [PATCH 6/7] meson: use array type options

2018-04-17 Thread Eric Anholt
Dylan Baker writes: > This option type is nice since it involves less converting strings into > lists, and because it validates the values that are provided. > > Signed-off-by: Dylan Baker > --- > meson.build | 113 +++--- > meson_options.txt | 48

Re: [Mesa-dev] [PATCH 1/4] nir/builder: Add a nir_imm_floatN_t helper

2018-04-17 Thread Jason Ekstrand
On Wed, Mar 21, 2018 at 12:34 PM, Neil Roberts wrote: > This lets you easily build float immediates just given the bit size. > If we have this single place here to handle this then it will be > easier to add support for 16-bit floats later. > --- > src/compiler/nir/nir_builder.h | 13 +++

Re: [Mesa-dev] [PATCH 2/4] spirv: Use nir_imm_floatN_t for constants for GLSL450 builtins

2018-04-17 Thread Jason Ekstrand
Thanks! 1 and 2 are Reviewed-by: Jason Ekstrand On Wed, Mar 21, 2018 at 12:34 PM, Neil Roberts wrote: > There is an existing macro that is used to choose between either a > float or a double immediate constant based on the bit size of the > first operand to the builtin. This is now changed to

Re: [Mesa-dev] [PATCH v2 3/4] spirv: Add a 64-bit implementation of OpIsInf

2018-04-17 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Wed, Mar 21, 2018 at 12:34 PM, Neil Roberts wrote: > The only change neccessary is to change the type of the constant used > to compare against. > > This has been tested against the arb_gpu_shader_fp64/execution/ > fs-isinf-dvec tests using the ARB_gl_spirv branch

Re: [Mesa-dev] [PATCH v2 4/4] spirv: Accept doubles in FaceForward, Reflect and Refract

2018-04-17 Thread Jason Ekstrand
On Wed, Mar 21, 2018 at 12:34 PM, Neil Roberts wrote: > The SPIR-V spec doesn’t specify a size requirement for these and the > equivalent functions in the GLSL spec have explicit alternatives for > doubles. Refract is a little bit more complicated due to the fact that > the final argument is alwa

Re: [Mesa-dev] [PATCH 6/7] meson: use array type options

2018-04-17 Thread Dylan Baker
Quoting Eric Anholt (2018-04-17 11:37:37) > Dylan Baker writes: > > > This option type is nice since it involves less converting strings into > > lists, and because it validates the values that are provided. > > > > Signed-off-by: Dylan Baker > > --- > > meson.build | 113

Re: [Mesa-dev] [PATCH 5/7] meson: fix builds against LLVM built without rtti

2018-04-17 Thread Dylan Baker
Quoting Dylan Baker (2018-04-16 16:48:59) > Building without rtti is a frought with peril, but it's something that > autotools supports so we need to support it too. > > Since we've moved to version 0.44 as a whole we can use the meson > functionality for accessing random llvm-config options we ca

Re: [Mesa-dev] [PATCH v4 6/6] i965: gl_BaseVertex must be zero for non-indexed draw calls

2018-04-17 Thread Jason Ekstrand
On April 17, 2018 10:31:53 Ian Romanick wrote: On 04/10/2018 09:26 AM, Jason Ekstrand wrote: On Tue, Apr 10, 2018 at 1:28 AM, Antia Puentes mailto:apuen...@igalia.com>> wrote: On 07/04/18 08:21, Jason Ekstrand wrote: Oh, boy, this is tricky... First of all, it's a bit of a bummer that we can't

[Mesa-dev] [Bug 105320] Storage texel buffer access produces wrong results (RX Vega)

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105320 --- Comment #6 from Samuel Pitoiset --- Does it work now with https://cgit.freedesktop.org/mesa/mesa/commit/?id=b0e3a9b19f16ed1ce4c1f150718b0c0f0e6111f6 ? -- You are receiving this mail because: You are the QA Contact for the bug. You are the

[Mesa-dev] [PATCH] radeonsi/gfx9: fix a hang with an empty first IB

2018-04-17 Thread Marek Olšák
From: Marek Olšák This packet causes the no-op IB detection to fail, so the IB is always submitted. Also fix the no-op IB detection by moving the begin call. Cc: 18.0 --- src/gallium/drivers/radeonsi/si_pipe.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/galli

[Mesa-dev] [Bug 103999] 4x MSAA with RG32F shows garbage on triangle edges

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103999 Samuel Pitoiset changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] mesa/math: Allocate memory for GLmatrix elements and its inverse contiguously

2018-04-17 Thread Ian Romanick
On 04/16/2018 10:55 PM, Thomas Helland wrote: > Hi, and thanks for the patch =) > > Have you done any performance testing on this to verify it > gives us a speedup of any kind? I'm asking because it seems like > this might be something that a decent compiler should be able to do. > Performance rel

[Mesa-dev] [Bug 106074] radv: si_scissor_from_viewport returns incorrect result when using half-pixel viewport offset

2018-04-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106074 Samuel Pitoiset changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH 2/2] i965/blorp: Do the gen11 BTI flush

2018-04-17 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/genX_blorp_exec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index 3406a6f..a6cb0e3 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/m

[Mesa-dev] [PATCH 1/2] anv/blorp: Do the gen11 BTI flush

2018-04-17 Thread Jason Ekstrand
--- src/intel/vulkan/genX_blorp_exec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index 1ecec19..b2c600f 100644 --- a/src/intel/vulkan/genX_blorp_exec.c +++ b/src/intel/vulkan/genX_blorp_exec.c @@ -20

[Mesa-dev] [PATCH 2/3] radeonsi: add support for VegaM

2018-04-17 Thread Marek Olšák
From: Marek Olšák --- include/pci_ids/radeonsi_pci_ids.h | 3 +++ src/amd/common/ac_llvm_util.c| 1 + src/amd/common/ac_surface.c | 4 src/amd/common/amd_family.h | 1 + src/gallium/drivers/radeonsi/si_get.c| 3 ++- src/gal

[Mesa-dev] [PATCH 3/3] radeon/vce: disable vce dual pipe on VegaM

2018-04-17 Thread Marek Olšák
From: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 57b9d349582..22168b50e24 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +

[Mesa-dev] [PATCH 1/3] amd/addrlib: add support for VegaM

2018-04-17 Thread Marek Olšák
From: Marek Olšák --- src/amd/addrlib/amdgpu_asic_addr.h | 2 ++ src/amd/addrlib/r800/ciaddrlib.cpp | 5 + src/amd/addrlib/r800/siaddrlib.cpp | 33 ++ src/amd/addrlib/r800/siaddrlib.h | 1 + 4 files changed, 41 insertions(+) diff --git a/src/amd/addrlib/amdg

Re: [Mesa-dev] [PATCH 0/9] RadeonSI LLVM crash workaround for Ubuntu 18.04

2018-04-17 Thread Benedikt Schemmer
For the series: Tested-by: Benedikt Schemmer Tested with Series starting with [Mesa-dev] [PATCH 1/7] ac/surface: handle DCC subresource fast clear restriction on VI Series starting with [Mesa-dev] [PATCH 1/9] radeonsi: remove r600_pipe_common.h Series starting with [Mesa-dev] [PATCH 0/9] Radeo

Re: [Mesa-dev] [PATCH 2/2] i965/blorp: Do the gen11 BTI flush

2018-04-17 Thread Anuj Phogat
For the series: Reviewed-by: Anuj Phogat This might explain piglit GPU hangs or failures. I'll do a piglit run with these patches. Thanks Anuj On Tue, Apr 17, 2018 at 3:10 PM, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/genX_blorp_exec.c | 14 ++ > 1 file changed, 14 i

Re: [Mesa-dev] [PATCH v2 3/5] i965: perf: read slice/unslice frequencies from OA reports

2018-04-17 Thread Lionel Landwerlin
On 16/04/18 23:16, Kenneth Graunke wrote: On Tuesday, April 3, 2018 7:48:11 AM PDT Lionel Landwerlin wrote: Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/brw_performance_query.c | 37 +++ src/mesa/drivers/dri/i965/brw_performance_query.h | 12 2

Re: [Mesa-dev] [PATCH v2 4/5] i965: perf: add support for raw queries

2018-04-17 Thread Lionel Landwerlin
On 17/04/18 00:07, Kenneth Graunke wrote: On Tuesday, April 3, 2018 7:48:12 AM PDT Lionel Landwerlin wrote: diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c These changes look good. diff --git a/src/mesa/drivers/dri/i965/brw_p

[Mesa-dev] [PATCH v3 3/5] i965: perf: read slice/unslice frequencies from OA reports

2018-04-17 Thread Lionel Landwerlin
v2: Add comment breaking down where the frequency values come from (Ken) Signed-off-by: Lionel Landwerlin --- .../drivers/dri/i965/brw_performance_query.c | 49 +++ .../drivers/dri/i965/brw_performance_query.h | 12 + 2 files changed, 61 insertions(+) diff --git a/src/mesa

Re: [Mesa-dev] [PATCH v2 3/3] i965: enable INTEL_blackhole_render

2018-04-17 Thread Lionel Landwerlin
On 17/04/18 00:19, Kenneth Graunke wrote: On Friday, April 6, 2018 7:31:41 AM PDT Lionel Landwerlin wrote: v2: condition the extension on context isolation support from the kernel (Chris) v3: (Lionel) The initial version of this change used a feature of the Gen7+ command parser

Re: [Mesa-dev] [PATCH 2/2] i965/blorp: Do the gen11 BTI flush

2018-04-17 Thread Jason Ekstrand
On Tue, Apr 17, 2018 at 4:19 PM, Anuj Phogat wrote: > For the series: > Reviewed-by: Anuj Phogat > > This might explain piglit GPU hangs or failures. I'll do a piglit run with > these patches. > Yeah. I know it was causing problems in simulation (which is where I found it). Do you want me to

[Mesa-dev] [PATCH v2 03/45] swr/rast: Use blend context struct to pass params

2018-04-17 Thread George Kyriazis
Stuff parameters into a blend context struct before passing down through the PFN_BLEND_JIT_FUNC function pointer. Needed for stat changes. --- .../drivers/swr/rasterizer/core/backend_impl.h | 44 ++- src/gallium/drivers/swr/rasterizer/core/state.h| 17 ++-- .../drivers/

[Mesa-dev] [PATCH v2 19/45] swr/rast: Simplify #define usage in gen source file

2018-04-17 Thread George Kyriazis
Removed preprocessor defines from structures passed to LLVM jitted code. The python scripts do not understand the preprocessor defines and ignores them. So for fields that are compiled out due to a preprocessor define the LLVM script accounts for them anyway because it doesn't know what the define

[Mesa-dev] [PATCH v2 00/45] OpenSWR driver misc changes

2018-04-17 Thread George Kyriazis
Lots of SWR-specifc changes, including: - work for 16-wide simd operation across all avx flavors - separate avx instrinsics into a separate x86 lowering pass - stats work - misc other cleanup v2: mostly editorial changes George Kyriazis (45): swr/rast: Add some instructions to jitter swr/ras

[Mesa-dev] [PATCH v2 06/45] swr/rast: Add some archrast stats

2018-04-17 Thread George Kyriazis
Add stats for degenerate and backfacing primitive counts Wire archrast stats for alpha blend and alpha test. pass value to jitter, upon return have archrast event increment a value --- .../drivers/swr/rasterizer/archrast/archrast.cpp | 35 +- .../drivers/swr/rasterizer/archr

[Mesa-dev] [PATCH v2 05/45] swr/rast: Silence some unused variable warnings

2018-04-17 Thread George Kyriazis
--- src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp index 5feb5fa..1ee6691 100644 --- a/src/ga

[Mesa-dev] [PATCH v2 17/45] swr/rast: Fix name mangling for LLVM pow intrinsic

2018-04-17 Thread George Kyriazis
--- src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py index 0245584..324f24a 10064

[Mesa-dev] [PATCH v2 01/45] swr/rast: Add some instructions to jitter

2018-04-17 Thread George Kyriazis
VPHADDD, PMAXUD, PMINUD --- .../drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py | 1 + src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 12 src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 2 ++ 3 files changed, 15 insertions(+) diff --git a/src

[Mesa-dev] [PATCH v2 07/45] swr/rast: Changes to allow jitter to compile with LLVM5

2018-04-17 Thread George Kyriazis
--- src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp index 031bced..b1d6076 100644 --- a/src/ga

[Mesa-dev] [PATCH v2 21/45] swr/rast: Lower PERMD and PERMPS to x86.

2018-04-17 Thread George Kyriazis
Add support for providing an emulation callback function for arch/width combinations that don't map cleanly to an x86 intrinsic. --- .../drivers/swr/rasterizer/jitter/builder_mem.cpp | 8 +-- .../drivers/swr/rasterizer/jitter/builder_misc.cpp | 70 -- .../drivers/swr/rasteriz

[Mesa-dev] [PATCH v2 23/45] swr/rast: Lower VGATHERPS and VGATHERPS_16 to x86.

2018-04-17 Thread George Kyriazis
Some more work to do before we can support simultaneous 8-wide and 16-wide and remove the VGATHERPS_16 version. --- .../drivers/swr/rasterizer/jitter/builder_mem.cpp | 69 +- 1 file changed, 2 insertions(+), 67 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitt

[Mesa-dev] [PATCH v2 10/45] swr/rast: Add autogen of helper llvm intrinsics.

2018-04-17 Thread George Kyriazis
Replace sqrt, maskload, fp min/max, cttz, ctlz with llvm equivalent. Replace AVX maskedstore intrinsic with LLVM intrinsic. Add helper llvm macros for stacksave, stackrestore, popcnt. --- src/gallium/drivers/swr/Makefile.am| 8 ++ src/gallium/drivers/swr/SConscript

[Mesa-dev] [PATCH v2 09/45] swr/rast: WIP builder rewrite.

2018-04-17 Thread George Kyriazis
Start removing avx2 macros for functionality that exists in llvm. --- src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py | 5 - src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 9 - 2 files changed, 14 deletions(-) diff --git a/src/gallium/drivers/swr/r

[Mesa-dev] [PATCH v2 42/45] swr/rast: Implement VROUND intrinsic in x86 lowering pass

2018-04-17 Thread George Kyriazis
--- .../rasterizer/jitter/functionpasses/lower_x86.cpp | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp index

[Mesa-dev] [PATCH v2 39/45] swr/rast: double-pump in x86 lowering pass

2018-04-17 Thread George Kyriazis
Add support for double-pumping a smaller SIMD width intrinsic. --- .../rasterizer/jitter/functionpasses/lower_x86.cpp | 30 ++ 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp b/src/gallium/

[Mesa-dev] [PATCH v2 13/45] swr/rast: Add MEM_ADD helper function to Builder.

2018-04-17 Thread George Kyriazis
mem[offset] += value This function will be heavily used by all stats intrinsics. --- src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp | 7 +++ src/gallium/drivers/swr/rasterizer/jitter/builder_mem.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/gallium/drivers/swr/rast

[Mesa-dev] [PATCH v2 04/45] swr/rast: Add debug type info for i128

2018-04-17 Thread George Kyriazis
Help support debug info in 16 wide shaders. --- src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index 0cefa43..bfb1d2e 1

[Mesa-dev] [PATCH v2 08/45] swr/rast: LLVM 6 fix

2018-04-17 Thread George Kyriazis
for getting masked gather intrinsic (also compatible with LLVM 4) --- src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp b/src/gallium/drivers/swr/rasterizer/jitter

[Mesa-dev] [PATCH v2 34/45] swr/rast: fix comment

2018-04-17 Thread George Kyriazis
--- src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp index 8d659d0..cdfddf3 100644 --- a/src/gallium/drivers

  1   2   >