Re: [Mesa-dev] [PATCH 9/9] mark GL_ARB_framebuffer_no_attachments as done for i965

2015-05-05 Thread Ian Romanick
With Petri and Ilia's comments addressed, this patch is Reviewed-by: Ian Romanick On 04/29/2015 01:56 AM, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > Mark GL_ARB_framebuffer_no_attachments as done for i965. > > --- > docs/GL3.txt | 2 +- > docs/relnotes/10.6.0.html

Re: [Mesa-dev] [PATCH 8/9] i965: enable ARB_framebuffer_no_attachments extension for Gen7 and later

2015-05-05 Thread Ian Romanick
On 04/29/2015 01:56 AM, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > Enable GL_ARB_framebuffer_no_attachments in i965 for Gen7 and higher. > > --- > src/mesa/drivers/dri/i965/brw_context.c | 6 ++ > src/mesa/drivers/dri/i965/intel_extensions.c | 1 + > 2 files changed, 7 in

Re: [Mesa-dev] [PATCH 7/9] i965: ensure execution of fragment shader when fragment shader has atomic buffer access

2015-05-05 Thread Ian Romanick
On 04/29/2015 01:56 AM, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > If the fragment shader has atomic buffer access, the shader must execute > even if the current draw buffer has no attachments. > > --- > src/mesa/drivers/dri/i965/gen7_wm_state.c | 7 +++ > src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH 3/9] mesa: Complete implementation for GL_ARB_framebuffer_no_attachments in Mesa core

2015-05-05 Thread Ian Romanick
On 04/29/2015 01:56 AM, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > Implement GL_ARB_framebuffer_no_attachments in Mesa core > - changes to conditions for framebuffer completenss > - implement set/get functions for framebuffers for >new functions in GL_ARB_framebuffer_no_attac

Re: [Mesa-dev] [PATCH 2/9] mesa:Define constants and functions for GL_ARB_framebuffer_no_attachment extension

2015-05-05 Thread Ian Romanick
You haven't been running 'make check'. :) You also need to update src/mesa/tests/dispatch_sanity.cpp. On 04/29/2015 01:56 AM, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > Define the enumeration constants, function entry points and > glGet for the GL_ARB_framebuffer_no_attachments >

Re: [Mesa-dev] [PATCH 1/9] mesa:Define extension GL_ARB_framebuffer_no_attachments

2015-05-05 Thread Ian Romanick
These patches are partitioned in a atypical way. The usual way is - A patch that modifies extensions.c, struct gl_extensions, the XML files (in patch #2), dispatch_sanity (see my comment on patch #2), and adds the stub functions (in patch #2). - A patch that adds the other necessary bits

[Mesa-dev] [PATCH] mesa: support compute stage in _mesa_program_resource_prop

2015-05-05 Thread Tapani Pälli
Increases pass rate of ES31-CTS.*program_interface_query* tests when run with MESA_EXTENSION_OVERRIDE='GL_ARB_compute_shader'. Many of the negative tests that happen to use compute stage in queries start passing. Signed-off-by: Tapani Pälli --- src/mesa/main/shader_query.cpp | 22 +++

Re: [Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-05 Thread Pekka Paalanen
On Wed, 6 May 2015 11:00:13 +1000 Dave Airlie wrote: > On 2 May 2015 at 20:15, Axel Davy wrote: > > Only EGL_WINDOW_BIT is supported. Remove tests related. > > Is this there no plans to support pixmap/pbuffer/ or any of the other bits? > > Seems like a step in the wrong direction if we really

Re: [Mesa-dev] [PATCH] glsl/ast: don't implicit convert from double to float

2015-05-05 Thread Tapani Pälli
This seems to be used in ast_function.cpp for implementing constructors where this type of conversion can happen, so not a implicit conversion but a 'conversion constructor'. (5.4.1 Conversion and Scalar Constructors) You would need to change that also. On 05/06/2015 09:17 AM, Dave Airlie wr

[Mesa-dev] [PATCH] glsl/ast: don't implicit convert from double to float

2015-05-05 Thread Dave Airlie
From: Dave Airlie Implicit conversion can only happen the other way. This fixes a bug I just saw from writing an incorrect test. Signed-off-by: Dave Airlie --- src/glsl/ast_to_hir.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 14

Re: [Mesa-dev] [PATCH 1/4] i965/gen6: setup limits for ARB_viewport_array

2015-05-05 Thread Kenneth Graunke
On Wednesday, May 06, 2015 06:08:17 PM Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/brw_context.c | 4 ++-- > src/mesa/drivers/dri/i965/brw_defines.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_c

Re: [Mesa-dev] [PATCH] i965: Delete most of the linked GLSL IR when using NIR.

2015-05-05 Thread Tapani Pälli
On 05/06/2015 08:38 AM, Jason Ekstrand wrote: On May 5, 2015 10:17 PM, "Tapani Pälli" mailto:tapani.pa...@intel.com>> wrote: > > > On 05/06/2015 04:57 AM, Kenneth Graunke wrote: >> >> Vertex shader attribute and fragment shader output queries rely on being >> able to inspect top-level ir

[Mesa-dev] [PATCH 4/4] i965/gen6: Enable ARB_viewport_array and AMD_vertex_shader_viewport_index

2015-05-05 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/intel_extensions.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index c28c171..3088a1a 100644 --- a/src/me

[Mesa-dev] [PATCH 3/4] i965/gen6: Upload all the SF viewports

2015-05-05 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_structs.h | 2 ++ src/mesa/drivers/dri/i965/gen6_viewport_state.c | 29 +++-- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_structs.h b/src/mesa/drivers/dri

[Mesa-dev] [PATCH 1/4] i965/gen6: setup limits for ARB_viewport_array

2015-05-05 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_context.c | 4 ++-- src/mesa/drivers/dri/i965/brw_defines.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 6c00f6c..fd7420

[Mesa-dev] [PATCH 2/4] i965/gen6: Upload all the clip viewports

2015-05-05 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/gen6_viewport_state.c | 40 + 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen6_viewport_state.c b/src/mesa/drivers/dri/i965/gen6_viewport_state.c index 0c63283..95d204f

Re: [Mesa-dev] [PATCH] i965: Fix SHADER_OPCODE_UNTYPED_SURFACE_WRITE to mark written surfaces

2015-05-05 Thread Iago Toral
On Tue, 2015-05-05 at 16:41 +0300, Francisco Jerez wrote: > Iago Toral Quiroga writes: > > > We can do this when the surface index is an immediate, as we do for > > reads. Otherwise the visitor should handle this. > > --- > > Francisco, maybe you choose not to do this for a reason? It seems a bit

Re: [Mesa-dev] [PATCH] i965: Delete most of the linked GLSL IR when using NIR.

2015-05-05 Thread Jason Ekstrand
On May 5, 2015 10:17 PM, "Tapani Pälli" wrote: > > > On 05/06/2015 04:57 AM, Kenneth Graunke wrote: >> >> Vertex shader attribute and fragment shader output queries rely on being >> able to inspect top-level ir_variable objects. So, we have to keep >> those. However, functions and global tempora

Re: [Mesa-dev] [PATCH] i965: Delete most of the linked GLSL IR when using NIR.

2015-05-05 Thread Tapani Pälli
On 05/06/2015 04:57 AM, Kenneth Graunke wrote: Vertex shader attribute and fragment shader output queries rely on being able to inspect top-level ir_variable objects. So, we have to keep those. However, functions and global temporary variables can be deleted with impunity. Saves 58MB of memor

[Mesa-dev] [resend] one of the vertex_attrib_64bit patches

2015-05-05 Thread Dave Airlie
Mainly for Ian, this is the fix to the outstanding patch, with an R-b on this I think they due a push. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glsl: add ARB_vertex_attrib_64bit support. (v2)

2015-05-05 Thread Dave Airlie
From: Dave Airlie Just more boilerplate stuff. v2: bad fallthrough on versioning, this is my ugly but self contained solution (Ian) Reviewed-by: Ilia Mirkin Signed-off-by: Dave Airlie --- src/glsl/ast_to_hir.cpp | 3 +++ src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl/glsl_parser_e

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #5 from Jeremy Huddleston --- Yeah, I think the sysctl() approach is probably more portable if you want to go that route. I was also thinking that this should be refactored into a more abstract layer since other places in mesa would

Re: [Mesa-dev] [PATCH 7/7] i965/sync: Implement DRI2_Fence extension

2015-05-05 Thread Chad Versace
On Mon 04 May 2015, Daniel Stone wrote: > Hi, > > On 1 May 2015 at 21:02, Chad Versace wrote: > > +static bool > > +brw_fence_has_completed(struct brw_fence *fence) > > +{ > > + if (fence->signalled) > > + return true; > > + > > + if (fence->batch_bo && !drm_intel_bo_busy(fence->batch_bo

[Mesa-dev] [PATCH] i965: Delete most of the linked GLSL IR when using NIR.

2015-05-05 Thread Kenneth Graunke
Vertex shader attribute and fragment shader output queries rely on being able to inspect top-level ir_variable objects. So, we have to keep those. However, functions and global temporary variables can be deleted with impunity. Saves 58MB of memory when replaying a Dota 2 trace on Broadwell. Sig

Re: [Mesa-dev] [PATCH v2 00/15] Make LOAD_PAYLOAD sane again

2015-05-05 Thread Kenneth Graunke
On Tuesday, May 05, 2015 06:28:03 PM Jason Ekstrand wrote: > This is a v2 of the series that I sent out a month or two ago to fix up the > LOAD_PAYLOAD instruction in the i965 FS backend compiler. This new version > incorporates comments from a variety of people. > > The last patch in the series

[Mesa-dev] [PATCH v2 07/15] i965/fs: Make LOAD_PAYLOAD take a header size

2015-05-05 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 3 ++- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 20 +++- 4 files changed, 20 inse

[Mesa-dev] [PATCH v2 15/15] i965/fs: Allow copy propagation on ATTR file registers.

2015-05-05 Thread Jason Ekstrand
From: Kenneth Graunke This especially helps with NIR because we currently emit MOVs at the top of the shader to copy from various ATTR registers to a giant VGRF array of all inputs. (This could potentially be done better, but since there's only ever one write to each register, it should be trivi

[Mesa-dev] [PATCH v2 08/15] i965/fs: Rework fs_visitor::LOAD_PAYLOAD

2015-05-05 Thread Jason Ekstrand
We rework LOAD_PAYLOAD to verify that all of the sources that count as headers are, indeed, exactly one register and that all of the non-header sources match the destination width. We then take the exec_size for LOAD_PAYLOAD directly from the destination width. Reviewed-by: Kenneth Graunke ---

[Mesa-dev] [PATCH v2 14/15] i965/fs_inst: Get rid of the effective_width field

2015-05-05 Thread Jason Ekstrand
The effective_width field was an ill-concieved hack to get around issues in the LOAD_PAYLOAD instruction. Now that the LOAD_PAYLOAD instruction is far more sane, this field can die. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 25 --

[Mesa-dev] [PATCH v2 13/15] SQUASH: i965/fs: Simplify setup_color_payload

2015-05-05 Thread Jason Ekstrand
Previously, setup_color_payload was a a big helper function that did a lot of gen-specific special casing for setting up the color sources of the LOAD_PAYLOAD instruction. Now that lower_load_payload is much more sane, most of that complexity isn't needed anymore. Instead, we can do a simple fixu

[Mesa-dev] [PATCH v2 11/15] SQUASH: i965/fs_cse: Support the new-style LOAD_PAYLOAD

2015-05-05 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp index a582e6a..db01f8c 100644 --- a/s

[Mesa-dev] [PATCH v2 10/15] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-05-05 Thread Jason Ekstrand
Instead of the complicated and broken-by-design pile of heuristics we had before, we now have a straightforward lowering: 1) All header sources are copied directly using force_writemask_all and, since they are guaranteed to be a single register, there are no force_sechalf issues. 2) All

[Mesa-dev] [PATCH v2 03/15] i965/fs_cse: Factor out code to create copy instructions

2015-05-05 Thread Jason Ekstrand
v2: Get rid of the block parameter and make src a const reference Reviewed-by: Topi Pohjolainen Reviewed-by: Matt Turner Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 75 1 file changed, 38 insertions(+), 37 deletions(-) diff --gi

[Mesa-dev] [PATCH v2 01/15] i965/fs: Fix passing an immediate to half().

2015-05-05 Thread Jason Ekstrand
From: Francisco Jerez Immediates are generally uniform, they yield the same value to both halves of any instruction. Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_ir_fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_ir_fs.h

[Mesa-dev] [PATCH v2 12/15] SQUASH: i965/fs_inst::is_copy_payload: Support the new-style LOAD_PAYLOAD

2015-05-05 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index e7095c9..d0a3bdd 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH v2 05/15] i965/fs_inst: Add an is_copy_payload helper

2015-05-05 Thread Jason Ekstrand
This commit adds a new is_copy_payload helper to fs_inst that takes the place of the similarly named functions in cse and register coalesce. The two is_copy_payload functions in CSE and register coalesce were subtly different and potentially subtly broken. The new version unifies the two and shou

[Mesa-dev] [PATCH v2 09/15] SQUASH: i965/fs: Make destinations of load_payload have the appropreate width

2015-05-05 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 813df22..c3ccc9d 100644 --- a/src/me

[Mesa-dev] [PATCH v2 06/15] i965/fs: Make emit_single_fb_write take an explicit exec_size

2015-05-05 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 16 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index

[Mesa-dev] [PATCH v2 02/15] i965/fs: Make half(fs_reg, unsigned) handle register files more explicitly

2015-05-05 Thread Jason Ekstrand
Previously, we had a special case for uniforms and immediates and then a bunch of asserts for various other pessimal things. This commit changes it so that it explicitly does something on each register file. Some of them are disallowed and others are treated properly. --- src/mesa/drivers/dri/i9

[Mesa-dev] [PATCH v2 00/15] Make LOAD_PAYLOAD sane again

2015-05-05 Thread Jason Ekstrand
This is a v2 of the series that I sent out a month or two ago to fix up the LOAD_PAYLOAD instruction in the i965 FS backend compiler. This new version incorporates comments from a variety of people. The last patch in the series is one that I think at least 3 of us have independantly written to en

[Mesa-dev] [PATCH v2 04/15] i965: Change header_present to header_size in backend_instruction

2015-05-05 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 4 +-- src/mesa/drivers/dri/i965/brw_fs.cpp | 18 ++--- src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 20 +++ src/mes

Re: [Mesa-dev] [PATCH 9/9] egl/swrast: enable config extension for swrast

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > Enables to use dri config for swrast, like vblank_mode. > > Signed-off-by: Axel Davy Reviewed-by: Dave Airlie > --- > src/egl/drivers/dri2/egl_dri2.c| 21 ++--- > src/gallium/state_trackers/dri/drisw.c | 1 + > src/mesa/driver

Re: [Mesa-dev] [PATCH 8/9] egl/wayland: Implement swrast support

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > Signed-off-by: Axel Davy I think I'd like to see the os-compatibility ported code be in a separate file, I wonder if any of it would be useful in other places, But even that isn't a major problem, Reviewed-by: Dave Airlie > +static int > +dri2_wl_sw

Re: [Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > Only EGL_WINDOW_BIT is supported. Remove tests related. Is this there no plans to support pixmap/pbuffer/ or any of the other bits? Seems like a step in the wrong direction if we really should be supporting other things than WINDOW_BIT in the future. D

Re: [Mesa-dev] [PATCH 5/9] egl/wayland: Implement DRI_PRIME support

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > When the server gpu and requested gpu are different: > . They likely don't support the same tiling modes > . They likely do not have fast access to the same locations > > Thus we do: > . render to a tiled buffer we do not share with the server > . Copy th

[Mesa-dev] [RFC 6/6] i965: Adds further support for "3D" OA counters

2015-05-05 Thread Robert Bragg
This uses the i915_oa '3D' metric set to expose many more interesting OA counters including information about depth, alpha and stencil testing, sampler usage/bottlneck stats and cache throughputs. Signed-off-by: Robert Bragg --- src/mesa/drivers/dri/i965/brw_performance_query.c | 402 +++

[Mesa-dev] [RFC 4/6] i965: Implement INTEL_performance_query extension

2015-05-05 Thread Robert Bragg
This adds a bare-bones backend for the INTEL_performance_query extension that exposes the pipeline statistics on gen 6 and 7 hardware. Although this could be considered redundant given that the same statistics are now available via query objects, they are a simple starting point for this extension

[Mesa-dev] [RFC 5/6] i965: Expose OA counters via INTEL_performance_query

2015-05-05 Thread Robert Bragg
This adds support for exposing basic ('aggregate') Observation Architecture performance counters on Haswell. This support is based on the i915_oa perf kernel interface which is used to configure the OA unit, allowing Mesa to emit MI_REPORT_PERF_COUNT commands around queries to collect counter snap

[Mesa-dev] [RFC 2/6] Separate INTEL_performance_query frontend

2015-05-05 Thread Robert Bragg
To allow the backend interfaces for AMD_performance_monitor and INTEL_performance_query to evolve independently based on the more specific requirements of each extension this starts by separating the frontends of these extensions. Even though there wasn't much tying these frontends together, this

[Mesa-dev] [RFC 0/6] i965: INTEL_performance_query re-work

2015-05-05 Thread Robert Bragg
As we've learned more about the observability capabilities of Gen graphics we've found that it's not enough to only try and configure the OA unit from userspace without any dedicated support from the kernel. As it is currently the i965 backends for both AMD_performance_monitor and INTEL_performanc

[Mesa-dev] [RFC 3/6] Model INTEL perf query backend after query object BE

2015-05-05 Thread Robert Bragg
Instead of using the same backend interface as AMD_performance_monitor this defines a dedicated INTEL_performance_query interface that is based on the ARB_query_buffer_object interface (considering the similarity of the extensions) with the addition of vfuncs for enumerating queries and their count

[Mesa-dev] [RFC 1/6] i965: Remove perf monitor/query backend

2015-05-05 Thread Robert Bragg
In its current state the unified i965 backend for AMD_performance_monitor and INTEL_performance_query isn't able to report meaningful Observation Architecture metrics since we haven't so far had the necessary kernel support to fully configure the OA unit, nor the corresponding support for normalizi

Re: [Mesa-dev] [PATCH 01/13] nir/validate: Validate SSA def parent instructiosn

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 5:16 PM, Connor Abbott wrote: > Typo in the subject line. Fixed Locally --Jason ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 4/9] egl/wayland: Add support for render-nodes

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > It is possible the server advertises a render-node. > In that case no authentication is needed, > and Gem names are forbidden. > > Signed-off-by: Axel Davy Reviewed-by: Dave Airlie ___ mesa-dev mailing list m

Re: [Mesa-dev] [PATCH 3/9] glx/dri3: Add additional check for gpu offloading case

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > Checks blitImage is implemented. > Initially having the __DRIimageExtension extension > at version 9 at least meant blitImage was supported. > However some implementations do advertise version >= 9 > without implementing it. > > Signed-off-by: Axel Davy

Re: [Mesa-dev] [PATCH 1/9] egl/wayland: properly destroy wayland objects

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > the wl_registry and the wl_queue allocated weren't destroyed. > > Signed-off-by: Axel Davy Reviewed-by: Dave Airlie > --- > src/egl/drivers/dri2/egl_dri2.c | 2 ++ > src/egl/drivers/dri2/platform_wayland.c | 5 - > 2 files changed, 6 inse

Re: [Mesa-dev] [PATCH 2/9] doc/egl: Remove depreciated EGL_SOFTWARE

2015-05-05 Thread Dave Airlie
On 2 May 2015 at 20:15, Axel Davy wrote: > EGL_SOFTWARE is not supported anywhere in the code, > whereas LIBGL_ALWAYS_SOFTWARE is. > > Signed-off-by: Axel Davy Reviewed-by: Dave Airlie > --- > docs/egl.html | 8 > 1 file changed, 8 deletions(-) > > diff --git a/docs/egl.html b/docs/eg

Re: [Mesa-dev] [PATCH 01/13] nir/validate: Validate SSA def parent instructiosn

2015-05-05 Thread Connor Abbott
Typo in the subject line. On Tue, Apr 28, 2015 at 12:03 AM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_validate.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c > index a7aa798..35a853d 100644 > --- a/src/glsl/nir/nir_vali

Re: [Mesa-dev] [PATCH 09/13] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-05-05 Thread Jason Ekstrand
On Tue, May 5, 2015 at 4:20 PM, Matt Turner wrote: > On Tue, May 5, 2015 at 4:13 PM, Jason Ekstrand wrote: >> On Wed, Apr 15, 2015 at 6:44 PM, Matt Turner wrote: >>> On Wed, Apr 15, 2015 at 5:13 PM, Jason Ekstrand >>> wrote: On Wed, Apr 15, 2015 at 1:31 PM, Matt Turner wrote: > On We

Re: [Mesa-dev] [PATCH 09/13] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-05-05 Thread Matt Turner
On Tue, May 5, 2015 at 4:13 PM, Jason Ekstrand wrote: > On Wed, Apr 15, 2015 at 6:44 PM, Matt Turner wrote: >> On Wed, Apr 15, 2015 at 5:13 PM, Jason Ekstrand wrote: >>> On Wed, Apr 15, 2015 at 1:31 PM, Matt Turner wrote: On Wed, Apr 1, 2015 at 6:19 PM, Jason Ekstrand wrote: > I

Re: [Mesa-dev] [PATCH 09/13] SQUASH: i965/fs: Rework fs_visitor::lower_load_payload

2015-05-05 Thread Jason Ekstrand
On Wed, Apr 15, 2015 at 6:44 PM, Matt Turner wrote: > On Wed, Apr 15, 2015 at 5:13 PM, Jason Ekstrand wrote: >> On Wed, Apr 15, 2015 at 1:31 PM, Matt Turner wrote: >>> On Wed, Apr 1, 2015 at 6:19 PM, Jason Ekstrand wrote: Instead of the complicated and broken-by-design pile of heuristics w

Re: [Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration

2015-05-05 Thread Samuel Pitoiset
On 05/06/2015 12:03 AM, Brian Paul wrote: On 05/05/2015 04:00 PM, Ian Romanick wrote: On 05/05/2015 02:50 PM, Brian Paul wrote: Was missing the context parameter. Fixes MSVC warning. Does this then result in a GCC warning about unused parameters? Not that I've seen (only tried a debug bui

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 Julien Isorce changed: What|Removed |Added CC||jerem...@freedesktop.org --- Comment #4

Re: [Mesa-dev] [PATCH 04/13] i965/fs_inst: Add an is_copy_payload helper

2015-05-05 Thread Kenneth Graunke
On Tuesday, May 05, 2015 02:31:39 PM Jason Ekstrand wrote: > On Tue, May 5, 2015 at 1:34 PM, Matt Turner wrote: > > On Tue, May 5, 2015 at 1:13 PM, Jason Ekstrand wrote: > >> On Tue, Apr 14, 2015 at 1:28 AM, Kenneth Graunke > >> wrote: > >>> 2. CSE didn't use equals(), so it allowed things like

Re: [Mesa-dev] i965 implementation of the ARB_shader_image_load_store built-ins. (v2)

2015-05-05 Thread Kenneth Graunke
On Tuesday, May 05, 2015 03:05:02 PM Matt Turner wrote: > On Tue, May 5, 2015 at 2:17 PM, Francisco Jerez wrote: > > Kenneth Graunke writes: > >> That then begs the question - could we do the format conversion and > >> address calculations in a i965-specific NIR pass? It could simplify > >> the

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #3 from Brian Paul --- So which patch do you want to use? Either looks OK to me. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 nmcve...@gmail.com changed: What|Removed |Added Resolution|NOTABUG |FIXED --- Comment #9 from nmcve...@g

Re: [Mesa-dev] i965 implementation of the ARB_shader_image_load_store built-ins. (v2)

2015-05-05 Thread Matt Turner
On Tue, May 5, 2015 at 2:17 PM, Francisco Jerez wrote: > Kenneth Graunke writes: >> That then begs the question - could we do the format conversion and >> address calculations in a i965-specific NIR pass? It could simplify >> the backend changes. NIR also has better CSE, which could help for >>

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #8 from Ian Romanick --- BTW... you should checkout libGLEW or libepoxy. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. ___ m

Re: [Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration

2015-05-05 Thread Brian Paul
On 05/05/2015 04:00 PM, Ian Romanick wrote: On 05/05/2015 02:50 PM, Brian Paul wrote: Was missing the context parameter. Fixes MSVC warning. Does this then result in a GCC warning about unused parameters? Not that I've seen (only tried a debug build). -Brian __

Re: [Mesa-dev] [PATCH 1/3] glsl: add parens in shader_integer_mix() to silence compiler warning

2015-05-05 Thread Ian Romanick
Weird that I didn't notice this when I wrote the code. :( Sorry about that. This patch is Reviewed-by: Ian Romanick On 05/05/2015 02:50 PM, Brian Paul wrote: > Silences gcc warning: > builtin_functions.cpp:204:23: warning: suggest parentheses around '&&' > within '||' [-Wparentheses] > --- > s

Re: [Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration

2015-05-05 Thread Ian Romanick
On 05/05/2015 02:50 PM, Brian Paul wrote: > Was missing the context parameter. Fixes MSVC warning. Does this then result in a GCC warning about unused parameters? > --- > src/mesa/state_tracker/st_cb_perfmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/st

Re: [Mesa-dev] [PATCH 3/3] st/mesa: fix pipe_query_result result initializer

2015-05-05 Thread Ilia Mirkin
Series is Reviewed-by: Ilia Mirkin On Tue, May 5, 2015 at 5:50 PM, Brian Paul wrote: > Fixes MSVC build error. > --- > src/mesa/state_tracker/st_cb_perfmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/state_tracker/st_cb_perfmon.c > b/src/mesa/state_trac

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 66346] shader_query.cpp:49: error: invalid conversion from 'void*' to 'GLuint'

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66346 --- Comment #16 from Julien Isorce --- Created attachment 115566 --> https://bugs.freedesktop.org/attachment.cgi?id=115566&action=edit darwin: Suppress type conversion warnings for GLhandleARB Patch from macports: https://trac.macports.org/bro

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 Julien Isorce changed: What|Removed |Added CC||bri...@vmware.com -- You are receiving

[Mesa-dev] [Bug 90325] No static entry point for glQueryCounter and other entry points in ARB_timer_query

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90325 --- Comment #6 from nmcve...@gmail.com --- QueryCounters was an extension but it was added to the core profile in 3.3, you can see it right there in section 5.1 (https://www.opengl.org/registry/doc/glspec33.core.20100311.withchanges.pdf). -- You

[Mesa-dev] [Bug 90147] swrast: build error undeclared _SC_PHYS_PAGES on osx

2015-05-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90147 --- Comment #2 from Julien Isorce --- Created attachment 115565 --> https://bugs.freedesktop.org/attachment.cgi?id=115565&action=edit swrast: Build fix for darwin Other solution from macports. -- You are receiving this mail because: You are

[Mesa-dev] [PATCH 19/25] i965: Implement logic to set up and upload an image uniform.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_shader.cpp | 32 src/mesa/drivers/dri/i965/brw_shader.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index c1fd859..61ef0c0 100644 -

[Mesa-dev] [PATCH 24/25] i965/fs: Translate memory barrier NIR intrinsics.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 497b8f7..a774f98 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 18/25] i965: Teach type_size() about the size of an image uniform.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 889079b..1eaec10 100644 --- a/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 22/25] i965/fs: Handle image uniforms in NIR programs.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 55 +++- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index aac9c4b..4f7d95e 10064

[Mesa-dev] [PATCH 21/25] i965/fs: Execute nir_setup_uniforms, _inputs and _outputs unconditionally.

2015-05-05 Thread Francisco Jerez
Images take up zero uniform slots in the nir_shader::num_uniforms calculation, but nir_setup_uniforms needs to be executed even if the program has no non-image uniforms so the driver-specific image parameters are uploaded. nir_setup_uniforms is a no-op if there are really no uniforms, so checking

[Mesa-dev] [PATCH 15/25] i965/fs: Revisit GLSL IR atomic counter intrinsic translation.

2015-05-05 Thread Francisco Jerez
Rewrite the GLSL IR atomic counter intrinsics translation code making use of the recently introduced surface builder. This will allow the removal of some of the functionality duplicated in the visitor and surface builder. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs.h |

[Mesa-dev] [PATCH 3/3] st/mesa: fix pipe_query_result result initializer

2015-05-05 Thread Brian Paul
Fixes MSVC build error. --- src/mesa/state_tracker/st_cb_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c index c8d4490..1bb5be3 100644 --- a/src/mesa/state_tracker/st_cb_perfmon.c +++ b/s

[Mesa-dev] [PATCH 1/3] glsl: add parens in shader_integer_mix() to silence compiler warning

2015-05-05 Thread Brian Paul
Silences gcc warning: builtin_functions.cpp:204:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] --- src/glsl/builtin_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 1df6

[Mesa-dev] [PATCH 14/25] i965/fs: Implement image load, store and atomic.

2015-05-05 Thread Francisco Jerez
v2: Drop VEC4 suport. --- .../drivers/dri/i965/brw_fs_surface_builder.cpp| 216 + src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 17 ++ 2 files changed, 233 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp b/src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH 17/25] i965/fs: Drop unused untyped surface read and atomic emit methods.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs.h | 7 -- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 13 ++- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 125 ++- 3 files changed, 10 insertions(+), 135 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b

[Mesa-dev] [PATCH 25/25] i965: Expose ARB_shader_image_load_store.

2015-05-05 Thread Francisco Jerez
Reviewed-by: Paul Berry v2: Disable the extension for the time being if NIR is in use until it grows the necessary intrinsics. v3: Drop GLSL IR support. Disable the extension if NIR is *not* in use. --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 ++ 1 file changed, 2 insertions(+) di

[Mesa-dev] [PATCH 16/25] i965/fs: Revisit NIR atomic counter intrinsic translation.

2015-05-05 Thread Francisco Jerez
Rewrite the NIR atomic counter intrinsics translation code making use of the recently introduced surface builder. This will allow the removal of some of the functionality duplicated in the visitor and surface builder. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 56 ++

[Mesa-dev] [PATCH 10/25] i965/fs: Import image access validity checks.

2015-05-05 Thread Francisco Jerez
These utility functions check whether an image access is valid. According to the spec an invalid image access should have no effect on the image and yield well-defined results. Typically the hardware implements correct bounds and surface checking by itself, but in some cases (typed atomics on IVB

[Mesa-dev] [PATCH 23/25] i965/fs: Translate image load, store and atomic NIR intrinsics.

2015-05-05 Thread Francisco Jerez
--- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 158 +++ 1 file changed, 158 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index a166e59..497b8f7 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++

[Mesa-dev] [PATCH 20/25] i965/fs: Don't overwrite fs_visitor::uniforms and ::param_size during the SIMD16 run.

2015-05-05 Thread Francisco Jerez
Image variables need to allocate additional uniform slots over nir_shader::num_uniforms. nir_setup_uniforms() overwrites the values imported from the SIMD8 visitor and then exits early before entering the nir_shader::uniforms loop, so image uniforms are never re-created. Instead leave the imported

[Mesa-dev] [PATCH 13/25] i965/fs: Import image format conversion primitives.

2015-05-05 Thread Francisco Jerez
Define bitfield packing, unpacking and type conversion operations in terms of which the image format conversion code will be implemented. These don't directly know about image formats: The packing and unpacking functions take a 4-tuple of bit shifts and a 4-tuple of bit widths as arguments, determi

[Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration

2015-05-05 Thread Brian Paul
Was missing the context parameter. Fixes MSVC warning. --- src/mesa/state_tracker/st_cb_perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c index 4bde679..c8d4490 100644 --- a/src/mesa/state

[Mesa-dev] [PATCH 09/25] i965/fs: Import surface message builder functions.

2015-05-05 Thread Francisco Jerez
Implement helper functions that can be used to construct and send untyped and typed surface read, write and atomic messages to the shared dataport unit. v2: Drop VEC4 suport. --- .../drivers/dri/i965/brw_fs_surface_builder.cpp| 232 + src/mesa/drivers/dri/i965/brw_fs_surfa

[Mesa-dev] [PATCH 12/25] i965/fs: Import image format metadata queries.

2015-05-05 Thread Francisco Jerez
Define some utility functions to query the bitfield layout of a given image format and whether it satisfies a number of more or less hardware-specific properties. v2: Drop VEC4 suport. --- src/mesa/drivers/dri/i965/brw_fs_surface_builder.h | 147 + 1 file changed, 147 insertio

[Mesa-dev] [PATCH 06/25] i965: Lift the constness restriction on surface indices passed to untyped ops.

2015-05-05 Thread Francisco Jerez
v2: Update NIR atomic intrinsic handling too (Ken). Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 8 ++-- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++ src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 src/mesa/drivers/dri/i965/brw_v

[Mesa-dev] [PATCH 11/25] i965/fs: Import image memory offset calculation code.

2015-05-05 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

[Mesa-dev] [PATCH 08/25] i965/fs: Import helpers to convert vectors into arrays and back.

2015-05-05 Thread Francisco Jerez
These functions implement the memory layout of a vecN value in a message or return payload. The conversion is not always trivial because the shared unit may not support the SIMD16 or SIMD4x2 vector layouts, requiring splitting the payload in half and merging the reply in the former case, or spread

  1   2   >