[Mesa-dev] [PATCH] mesa: add missing queries for ARB_direct_state_access

2015-07-24 Thread Daniel Scharrer
--- ARB_dsa / GL 4.5 add indexed GL_TEXTURE_BINDING_* and GL_SAMPLER_BINDING queries, as well as a GL_TEXTURE_TARGET query on texture objects. The implementation for the GL_TEXTURE_BINDING_* and GL_SAMPLER_BINDING queries is based on their non-indexed variants. To map the binding enum to a textur

Re: [Mesa-dev] [PATCH v2] glsl: enable conservative depth, ssbo based on GLSL version

2015-07-24 Thread Timothy Arceri
On Sat, 2015-07-25 at 01:06 -0400, Ilia Mirkin wrote: > Add in missed version checks in the GLSL parser > > Signed-off-by: Ilia Mirkin > --- > > v1 -> v2: drop AoA hunks to avoid conflicting with Timothy's changes > > src/glsl/glsl_parser.yy | 5 +++-- > 1 file changed, 3 insertions(+), 2 dele

[Mesa-dev] [PATCH v2] glsl: enable conservative depth, ssbo based on GLSL version

2015-07-24 Thread Ilia Mirkin
Add in missed version checks in the GLSL parser Signed-off-by: Ilia Mirkin --- v1 -> v2: drop AoA hunks to avoid conflicting with Timothy's changes src/glsl/glsl_parser.yy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy

Re: [Mesa-dev] Atomic counters doesn't work for a binding point different to zero (was Re: [PATCH] glsl: set the binding value regardless explicit_binding)

2015-07-24 Thread Timothy Arceri
On Fri, 2015-07-24 at 19:37 +0200, Alejandro Piñeiro wrote: > On 14/05/15 20:38, Ian Romanick wrote: > > Hi, > > today I was able to go back to work on this patch. Sorry for the delay. > I changed the subject to the problem, as previous fix was wrong. I have > some questions (see below). > > > >

Re: [Mesa-dev] [PATCH] glsl: enable conservative depth, AoA, ssbo based on GLSL version

2015-07-24 Thread Ilia Mirkin
On Fri, Jul 24, 2015 at 10:25 PM, Timothy Arceri wrote: > On Fri, 2015-07-24 at 18:49 -0400, Ilia Mirkin wrote: >> Add in missed version checks in the GLSL parser >> >> Signed-off-by: Ilia Mirkin >> --- >> src/glsl/glsl_parser.yy | 9 + >> 1 file changed, 5 insertions(+), 4 deletions(-)

[Mesa-dev] [PATCH] glsl: fix atomic buffer index for bindings other than 0

2015-07-24 Thread Timothy Arceri
Since commit c0cd5b var->data.binding was being used as a replacement for atomic buffer index, but they don't have to be the same value they just happen to end up the same when binding is 0. Now we store atomic buffer index in the unused var->data.location to avoid the extra memory of putting back

Re: [Mesa-dev] [PATCH] glsl: enable conservative depth, AoA, ssbo based on GLSL version

2015-07-24 Thread Timothy Arceri
On Fri, 2015-07-24 at 18:49 -0400, Ilia Mirkin wrote: > Add in missed version checks in the GLSL parser > > Signed-off-by: Ilia Mirkin > --- > src/glsl/glsl_parser.yy | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser

Re: [Mesa-dev] [PATCH v2 00/78] i965: A new vec4 backend based on NIR

2015-07-24 Thread Jason Ekstrand
Alright, I got through it again... I asked for a few trivial changes on a few of the patches. With those fixed, everything except patch 65 and 66 are Reviewed-by: Jason Ekstrand While the requested changes on the texturing patches are not complicated, I would like to see the updated version of

Re: [Mesa-dev] [PATCH 4/4] radeonsi: add support for interpolateAt functions

2015-07-24 Thread Dave Airlie
On 25 July 2015 at 01:15, Marek Olšák wrote: > On Wed, Jul 22, 2015 at 12:51 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This is part of ARB_gpu_shader5, and this passes >> all the piglit tests currently available. >> >> Signed-off-by: Dave Airlie >> --- >> docs/GL3.txt

[Mesa-dev] [PATCH] radeonsi: add fine derivate control (v2.1)

2015-07-24 Thread Dave Airlie
From: Dave Airlie This adds support for fine derivatives and enables ARB_derivative_control on radeonsi. (just fell out of my working out interpolation) v2: cleanup some bits, write a comment v2.1: take Michel's comment from the mailing list Signed-off-by: Dave Airlie --- docs/GL3.txt

Re: [Mesa-dev] [PATCH v2 65/78] i965/ir/vec4: Refactor visit(ir_texture *ir)

2015-07-24 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > From: Alejandro Piñeiro > > Splitted in two. The emission is moved to a new vec4_visitor > method, vec4_visitor::emit_texture, ir order to be reused > on the nir path. > --- > src/mesa/drivers/dri/i965/brw_vec4.h | 15 + > s

Re: [Mesa-dev] [PATCH v2 23/78] i965/nir/vec4: Implement load_uniform intrinsic

2015-07-24 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > From: Iago Toral Quiroga > > For the indirect case we need to take the index delivered by > NIR and compute the parent uniform that we are accessing (the one > that we uploaded to a surface) and the constant offset into that > surface.

Re: [Mesa-dev] [PATCH v2 72/78] i965/gs/gen6: Refactor ir_emit_vertex and ir_end_primitive for gen6

2015-07-24 Thread Jason Ekstrand
This patch needs to go *before* patch 71 so things continue to build. On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > From: Samuel Iglesias Gonsalvez > > So the implementation is independent of GLSL IR and the visit methods of the > gen6 GS visitor. This way we will be able to reuse

Re: [Mesa-dev] [PATCH v2 66/78] i965/nir/vec4: Add implementation of nir_emit_texture()

2015-07-24 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > From: Alejandro Piñeiro > > Uses the nir structure to get all the info needed (sources, > dest reg, etc), and then it uses the common > vec4_visitor::emit_texture to emit the final code. > --- > src/mesa/drivers/dri/i965/brw_vec4_nir.c

[Mesa-dev] [PATCH] glsl: enable conservative depth, AoA, ssbo based on GLSL version

2015-07-24 Thread Ilia Mirkin
Add in missed version checks in the GLSL parser Signed-off-by: Ilia Mirkin --- src/glsl/glsl_parser.yy | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 4cce5b8..9ddf5ed 100644 --- a/src/glsl/glsl_parser.yy +++ b/

Re: [Mesa-dev] [PATCH v2 21/78] i965/nir/vec4: Implement store_output intrinsic

2015-07-24 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > The destination register from the instruction is stored in the output_reg > variable at its original varying value. From there, vec4_visitor's > emit_urb_slot() will pick it up and continue the URB setup code, so that > part is shared. >

Re: [Mesa-dev] [PATCH v2 20/78] nir-lower_io: Store data.location instead, in const_index[0] of store_output

2015-07-24 Thread Jason Ekstrand
I think we already agreed to just copy data.location into data.driver_location and we don't need this special-casing. Just making a note of it as I review. --Jason On Thu, Jul 23, 2015 at 3:17 AM, Eduardo Lima Mitev wrote: > Non-scalar backends like i965's NIR-vec4 need the orginal variable's v

Re: [Mesa-dev] [PATCH v2 15/78] i965/nir/vec4: Add get_nir_dst() and get_nir_src() methods

2015-07-24 Thread Jason Ekstrand
On Fri, Jul 24, 2015 at 12:19 PM, Jason Ekstrand wrote: > On Thu, Jul 23, 2015 at 3:16 AM, Eduardo Lima Mitev wrote: >> These methods are essential for the implementation of the NIR->vec4 pass. >> They >> work similar to their fs_nir counter-parts. >> >> When processing instructions, these metho

Re: [Mesa-dev] [PATCH] glsl: recognize ARB_shading_language_420pack to be enabled with 4.20+

2015-07-24 Thread Chris Forbes
Reviewed-by: Chris Forbes On Sat, Jul 25, 2015 at 9:07 AM, Ilia Mirkin wrote: > The 420pack extension enables various GLSL rules that need to be applied > to any GLSL 4.20+ shader even if the extension is not explicitly > enabled. > > Signed-off-by: Ilia Mirkin > --- > src/glsl/glsl_parser.yy

[Mesa-dev] [PATCH] glsl: recognize ARB_shading_language_420pack to be enabled with 4.20+

2015-07-24 Thread Ilia Mirkin
The 420pack extension enables various GLSL rules that need to be applied to any GLSL 4.20+ shader even if the extension is not explicitly enabled. Signed-off-by: Ilia Mirkin --- src/glsl/glsl_parser.yy | 18 +- src/glsl/glsl_parser_extras.h | 5 + 2 files changed, 14 i

Re: [Mesa-dev] [PATCH] mesa: return INVALID_OPERATION if there's no image in GetTex*Image

2015-07-24 Thread Brian Paul
On 07/24/2015 10:05 AM, Ilia Mirkin wrote: On Fri, Jul 24, 2015 at 9:55 AM, Brian Paul wrote: The commit subject line doesn't seem to match the code. It matches the code if you read the whole function... I think. Right now if there's no image, it'll succeed, whereas after this change, it'll r

[Mesa-dev] [Bug 85712] glClear can hang when the window being rendered is concurrently closed

2015-07-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85712 --- Comment #4 from Steven Stewart-Gallus --- A similar problem can happen where eglSwapBuffer returns EGL_FAILURE but then sets the result of eglGetError to EGL_SUCCESS when the window is concurrently closed. -- You are receiving this mail bec

[Mesa-dev] [Bug 91456] Mesa won't compile with llvm 3.8

2015-07-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91456 Bug ID: 91456 Summary: Mesa won't compile with llvm 3.8 Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major

[Mesa-dev] [PATCH] glsl: default standalone compiler to 4.50

2015-07-24 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- There seems to be a huge overlap between what initialize_context and initialize_context_to_defaults do, wasn't sure where to stick what. src/glsl/main.cpp | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/glsl/main.

Re: [Mesa-dev] [PATCH v2 15/78] i965/nir/vec4: Add get_nir_dst() and get_nir_src() methods

2015-07-24 Thread Jason Ekstrand
On Thu, Jul 23, 2015 at 3:16 AM, Eduardo Lima Mitev wrote: > These methods are essential for the implementation of the NIR->vec4 pass. They > work similar to their fs_nir counter-parts. > > When processing instructions, these methods are invoked to resolve the > brw registers (source or destinatio

Re: [Mesa-dev] [PATCH] st/mesa: don't ignore texture buffer state changes

2015-07-24 Thread Brian Paul
Reviewed-by: Brian Paul On 07/24/2015 11:48 AM, Marek Olšák wrote: From: Marek Olšák Fixes piglit: spec@arb_texture_buffer_range@ranges-2 Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_texture.c | 10 +- src/mesa/state_tracker/st_context.c | 1 +

Re: [Mesa-dev] [PATCHv4 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Jason Ekstrand
Much better. Reviewed-by: Jason Ekstrand On Fri, Jul 24, 2015 at 9:33 AM, Francisco Jerez wrote: > Define a function to calculate the memory address of the image > location given by a vector of coordinates. This is required in cases > where we need to fall back to untyped surface access, which

[Mesa-dev] Atomic counters doesn't work for a binding point different to zero (was Re: [PATCH] glsl: set the binding value regardless explicit_binding)

2015-07-24 Thread Alejandro Piñeiro
On 14/05/15 20:38, Ian Romanick wrote: Hi, today I was able to go back to work on this patch. Sorry for the delay. I changed the subject to the problem, as previous fix was wrong. I have some questions (see below). >> >> >> --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp >> +++ b/src/mesa/d

[Mesa-dev] [PATCH] st/mesa: don't ignore texture buffer state changes

2015-07-24 Thread Marek Olšák
From: Marek Olšák Fixes piglit: spec@arb_texture_buffer_range@ranges-2 Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_texture.c | 10 +- src/mesa/state_tracker/st_context.c | 1 + src/mesa/state_tracker/st_context.h | 1 + 3 files changed, 7 inser

[Mesa-dev] [PATCH] st/mesa: fix GLSL 1.30 texture shadow functions with the GL_ALPHA depth mode (v2)

2015-07-24 Thread Marek Olšák
From: Marek Olšák Fixes piglit: spec@glsl-1.30@execution@fs-texture-sampler2dshadow-10 spec@glsl-1.30@execution@fs-texture-sampler2dshadow-11 v2: use st_shader_stage_to_ptarget --- src/mesa/state_tracker/st_atom_texture.c | 74 +- src/mesa/state_tracker/st_

[Mesa-dev] [PATCHv4 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Francisco Jerez
Define a function to calculate the memory address of the image location given by a vector of coordinates. This is required in cases where we need to fall back to untyped surface access, which take a raw memory offset and know nothing about surface coordinates, type conversion or memory tiling and

Re: [Mesa-dev] [PATCH] mesa: return INVALID_OPERATION if there's no image in GetTex*Image

2015-07-24 Thread Ilia Mirkin
On Fri, Jul 24, 2015 at 9:55 AM, Brian Paul wrote: > The commit subject line doesn't seem to match the code. It matches the code if you read the whole function... I think. Right now if there's no image, it'll succeed, whereas after this change, it'll return INVALID_OPERATION. Happy to use a diff

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Francisco Jerez
Jason Ekstrand writes: > On Jul 24, 2015 8:02 AM, "Francisco Jerez" wrote: >> >> Jason Ekstrand writes: >> >> > On Fri, Jul 24, 2015 at 7:39 AM, Francisco Jerez > wrote: >> >> Jason Ekstrand writes: >> >> >> >>> On Jul 24, 2015 4:00 AM, "Francisco Jerez" > wrote: >> >> Jason Ekstra

Re: [Mesa-dev] [PATCH 2/2] radeonsi: ubo indexing support (v2)

2015-07-24 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Jul 24, 2015 at 6:43 AM, Dave Airlie wrote: > From: Dave Airlie > > This is required as part of ARB_gpu_shader5. > > no backend changes are required for this, or if > any are, it's the same ones as for samplers. > > v2: use get_indirect_index (Marek) > >

Re: [Mesa-dev] [PATCH 4/4] radeonsi: add support for interpolateAt functions

2015-07-24 Thread Marek Olšák
On Wed, Jul 22, 2015 at 12:51 AM, Dave Airlie wrote: > From: Dave Airlie > > This is part of ARB_gpu_shader5, and this passes > all the piglit tests currently available. > > Signed-off-by: Dave Airlie > --- > docs/GL3.txt | 2 +- > src/gallium/drivers/radeonsi/si_s

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Jason Ekstrand
On Jul 24, 2015 8:02 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > On Fri, Jul 24, 2015 at 7:39 AM, Francisco Jerez wrote: > >> Jason Ekstrand writes: > >> > >>> On Jul 24, 2015 4:00 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > Ok, I've loo

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Francisco Jerez
Jason Ekstrand writes: > On Fri, Jul 24, 2015 at 7:39 AM, Francisco Jerez > wrote: >> Jason Ekstrand writes: >> >>> On Jul 24, 2015 4:00 AM, "Francisco Jerez" wrote: Jason Ekstrand writes: > Ok, I've looked through this again and convinced myself that it's > *mostly*

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Jason Ekstrand
On Fri, Jul 24, 2015 at 7:39 AM, Francisco Jerez wrote: > Jason Ekstrand writes: > >> On Jul 24, 2015 4:00 AM, "Francisco Jerez" wrote: >>> >>> Jason Ekstrand writes: >>> >>> > Ok, I've looked through this again and convinced myself that it's >>> > *mostly* correct. I am a bit skeptical of the

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Francisco Jerez
Jason Ekstrand writes: > On Jul 24, 2015 4:00 AM, "Francisco Jerez" wrote: >> >> Jason Ekstrand writes: >> >> > Ok, I've looked through this again and convinced myself that it's >> > *mostly* correct. I am a bit skeptical of the address swizzling for >> > Y-major tiling. >> > >> > I've also in

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add support for indirect samplers (v2)

2015-07-24 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Jul 24, 2015 at 6:43 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds the frontend support, however the llvm > backend produces the wrong pattern, however > we can conditionalise enabling ARB_gpu_shader5 > on whatever version of llvm we fix this i

[Mesa-dev] [PATCH 7/8] egldevice: add simple eglQueryDeviceAttribEXT implementation

2015-07-24 Thread Jonny Lamb
EGL_EXT_device_query itself doesn't define any valid values for so leave this function looking simple for values in the future. Signed-off-by: Jonny Lamb --- src/egl/main/eglapi.c| 9 - src/egl/main/egldevice.c | 17 + src/egl/main/egldevice.h | 5 + 3 files ch

[Mesa-dev] [PATCH 5/8] egldevice: add EGLDevice checking helper function

2015-07-24 Thread Jonny Lamb
This is useful to ensure EGLDevices given to functions (such as eglQueryDeviceAttrib or eglQueryDeviceString) are valid. Signed-off-by: Jonny Lamb --- src/egl/main/eglapi.c| 6 ++ src/egl/main/egldevice.c | 26 ++ src/egl/main/egldevice.h | 4 3 files chang

[Mesa-dev] [PATCH 2/8] egldevice: use _EGLDevice struct and keep a list of them in globals

2015-07-24 Thread Jonny Lamb
Right now the _EGLDevice struct has nothing of interest apart from a next pointer but this is what will be opaquely returned to clients in eglQueryDevicesEXT. The _EGLDeviceInfo struct is held in _eglGlobal and thanks to atexit() it is cleaned up appropriately too. Signed-off-by: Jonny Lamb ---

[Mesa-dev] [PATCH 6/8] egldevice: implement eglQueryDeviceStringEXT

2015-07-24 Thread Jonny Lamb
EGL_EXT_platform_query only defines one value for at the moment, so just implement that. Signed-off-by: Jonny Lamb --- src/egl/main/eglapi.c| 9 - src/egl/main/egldevice.c | 30 ++ src/egl/main/egldevice.h | 4 3 files changed, 42 insertions(+), 1

[Mesa-dev] [PATCH 0/8] add support for EGL_EXT_device_{base, query, enumeration}

2015-07-24 Thread Jonny Lamb
Here is an initial patchset implementing EGL_EXT_device_base (in practice nothing to do), device_enumeration (for listing devices), and device_query (for querying information about a device). I worked on this because I want to then move onto adding an attribute for eglGetPlatformDisplay so one can

[Mesa-dev] [PATCH 4/8] egldevice: implement eglQueryDevicesEXT using udev

2015-07-24 Thread Jonny Lamb
Enumerate udev devices by using: SUBSYSTEM=="drm" DEVTYPE=="drm_minor" TAG=="master-of-seat" Signed-off-by: Jonny Lamb --- src/egl/main/eglapi.c| 7 ++- src/egl/main/egldevice.c | 161 ++- src/egl/main/egldevice.h | 7 ++- 3 files change

[Mesa-dev] [PATCH 3/8] egldevice: copy udev dlopen code in from loader.c

2015-07-24 Thread Jonny Lamb
This code is copied nearly verbatim from src/loader/loader.c. It should be put somewhere so both files can reference the same code without copy & pasting. Signed-off-by: Jonny Lamb --- src/egl/main/egldevice.c | 54 1 file changed, 54 insertions(+

[Mesa-dev] [PATCH 8/8] egldevice: implement eglQueryDisplayAttribEXT

2015-07-24 Thread Jonny Lamb
This adds a new vfunc to _EGLDriver, QueryDeviceName, which should return a const string of the device name (usually in the format '/dev/dri/cardN'). The EGLDevice could perhaps be cached in the EGLDisplay but there usually aren't loads of devices and this lookup isn't particularly costly so leave

[Mesa-dev] [PATCH 1/8] egl: add initial boilerplate for EGL_EXT_device_{base, query, enumeration}

2015-07-24 Thread Jonny Lamb
Signed-off-by: Jonny Lamb --- src/egl/main/eglapi.c | 47 +++ src/egl/main/eglglobals.c | 5 + 2 files changed, 52 insertions(+) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 824e51e..6c1e6c7 100644 --- a/src/egl/main/eglapi

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Jason Ekstrand
On Jul 24, 2015 4:00 AM, "Francisco Jerez" wrote: > > Jason Ekstrand writes: > > > Ok, I've looked through this again and convinced myself that it's > > *mostly* correct. I am a bit skeptical of the address swizzling for > > Y-major tiling. > > > > I've also included some comments that I'd like

Re: [Mesa-dev] [PATCH] mesa: return INVALID_OPERATION if there's no image in GetTex*Image

2015-07-24 Thread Brian Paul
The commit subject line doesn't seem to match the code. The code looks good though. Reviewed-by: Brian Paul On 07/23/2015 06:40 PM, Ilia Mirkin wrote: Commit 17f714836 (mesa: rearrange texture error checking order) moved the width/height/depth == 0 allowance before checking if the image was

Re: [Mesa-dev] [PATCH 04.5/12] i965/fs: Fix misleading comment regarding the message header in emit_texture_gen7.

2015-07-24 Thread Jason Ekstrand
R-B me On Jul 24, 2015 6:52 AM, "Francisco Jerez" wrote: > This hasn't been overallocating space for the header for a long time. > It still leaves the header uninitialized though until the generator > fixes it. > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 +++-- > 1 file changed, 3 i

[Mesa-dev] [PATCH 04.5/12] i965/fs: Fix misleading comment regarding the message header in emit_texture_gen7.

2015-07-24 Thread Francisco Jerez
This hasn't been overallocating space for the header for a long time. It still leaves the header uninitialized though until the generator fixes it. --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/br

Re: [Mesa-dev] [PATCH 3/5] i965/vec4: Register spilling should never see registers with size != 1

2015-07-24 Thread Francisco Jerez
Iago Toral Quiroga writes: > Larger registers should have been moved to scratch (like GRF array access) > or split to size 1 by the split_virtual_grfs pass. Not necessarily. split_virtual_grfs() won't be able to split stuff which is read or written at once by the same instruction -- E.g. by sen

Re: [Mesa-dev] [PATCH 4/5] i965/vec4: Don't emit scratch reads for a spilled register we have just written

2015-07-24 Thread Francisco Jerez
Iago Toral Quiroga writes: > When we have code such as this: > > mov vgrf1.0.x:F, vgrf2.:F > mov vgrf3.0.x:F, vgrf1.:F > ... > mov vgrf3.0.x:F, vgrf1.:F > > And vgrf1 is chosen for spilling, we can emit this: > > mov vgrf1.0.x:F, vgrf2.:F > gen4_scratch_write hw_reg0:F, vgrf1.

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Define logical texture sampling opcodes.

2015-07-24 Thread Francisco Jerez
Francisco Jerez writes: > Kenneth Graunke writes: > >> On Saturday, July 18, 2015 05:34:47 PM Francisco Jerez wrote: >>> Each logical variant is largely equivalent to the original opcode but >>> instead of taking a single payload source it expects the arguments >>> separately as individual sourc

[Mesa-dev] [PATCH 2/5] i965/vec4: Remove checks for reladdr when checking for spillable registers

2015-07-24 Thread Iago Toral Quiroga
In theory, GRF array access should have been moved to scratch by the time we got here, so this should never happen. A full piglit run forcing spilling of all registers seems to confirm this. The FS backend does not seem to check for this either. --- src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.

[Mesa-dev] [PATCH 3/5] i965/vec4: Register spilling should never see registers with size != 1

2015-07-24 Thread Iago Toral Quiroga
Larger registers should have been moved to scratch (like GRF array access) or split to size 1 by the split_virtual_grfs pass. --- src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocat

[Mesa-dev] [PATCH 1/5] i965/vec4: Only emit one scratch read per instruction for spilled registers

2015-07-24 Thread Iago Toral Quiroga
--- src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp index cd89edd..a9bf0d8 100644 --- a/src/mesa/drivers

[Mesa-dev] [PATCH 0/5] Improvements to the vec4 spilling code

2015-07-24 Thread Iago Toral Quiroga
Hi, I have been looking a bit into the vec4 spilling code and this series implements a few improvements. The main changes are in patches 1 and 4, that add small optimizations. The remaining patches are all minor changes. Also, I noticed that enabling spilling of everything (which is what I used

[Mesa-dev] [PATCH 4/5] i965/vec4: Don't emit scratch reads for a spilled register we have just written

2015-07-24 Thread Iago Toral Quiroga
When we have code such as this: mov vgrf1.0.x:F, vgrf2.:F mov vgrf3.0.x:F, vgrf1.:F ... mov vgrf3.0.x:F, vgrf1.:F And vgrf1 is chosen for spilling, we can emit this: mov vgrf1.0.x:F, vgrf2.:F gen4_scratch_write hw_reg0:F, vgrf1.:D, 22D mov vgrf3.0.x:F, vgrf1.:F ... gen4_s

[Mesa-dev] [PATCH 5/5] i965: Add a debug option for spilling everything in vec4 code

2015-07-24 Thread Iago Toral Quiroga
--- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 +- src/mesa/drivers/dri/i965/brw_vec4.cpp| 2 +- src/mesa/drivers/dri/i965/intel_debug.c | 3 ++- src/mesa/drivers/dri/i965/intel_debug.h | 5 +++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --g

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Define logical texture sampling opcodes.

2015-07-24 Thread Francisco Jerez
Kenneth Graunke writes: > On Saturday, July 18, 2015 05:34:47 PM Francisco Jerez wrote: >> Each logical variant is largely equivalent to the original opcode but >> instead of taking a single payload source it expects the arguments >> separately as individual sources, like: >> >> tex_logical dst

Re: [Mesa-dev] [PATCH 16/78] i965/nir/vec4: Implement store_output intrinsic

2015-07-24 Thread Eduardo Lima Mitev
On 07/23/2015 05:39 PM, Jason Ekstrand wrote: > On Thu, Jul 23, 2015 at 1:01 AM, Eduardo Lima Mitev wrote: >> On 07/23/2015 05:20 AM, Jason Ekstrand wrote: >>> On Wed, Jul 22, 2015 at 4:37 AM, Eduardo Lima Mitev >>> wrote: On 07/13/2015 01:57 PM, Jason Ekstrand wrote: > On Wed, Jul 8, 2

Re: [Mesa-dev] [PATCH 16/78] i965/nir/vec4: Implement store_output intrinsic

2015-07-24 Thread Eduardo Lima Mitev
On 07/23/2015 05:39 PM, Jason Ekstrand wrote: > On Thu, Jul 23, 2015 at 1:01 AM, Eduardo Lima Mitev wrote: >> On 07/23/2015 05:20 AM, Jason Ekstrand wrote: >>> On Wed, Jul 22, 2015 at 4:37 AM, Eduardo Lima Mitev >>> wrote: On 07/13/2015 01:57 PM, Jason Ekstrand wrote: > On Wed, Jul 8, 2

Re: [Mesa-dev] [PATCH 07/20] i965/fs: Import image memory offset calculation code.

2015-07-24 Thread Francisco Jerez
Jason Ekstrand writes: > Ok, I've looked through this again and convinced myself that it's > *mostly* correct. I am a bit skeptical of the address swizzling for > Y-major tiling. > > I've also included some comments that I'd like to see added (assuming > they're correct). Sometimes it's easier

Re: [Mesa-dev] [PATCH 2/2] radeonsi: add fine derivate control (v2)

2015-07-24 Thread Michel Dänzer
On 24.07.2015 13:01, Dave Airlie wrote: > From: Dave Airlie > > This adds support for fine derivatives and enables > ARB_derivative_control on radeonsi. > > (just fell out of my working out interpolation) > > v2: cleanup some bits, and try and write an > explaination. Spelling: "explanation"