[Mesa-dev] [PATCH 01/23] mesa: add GL_PROGRAM_BINARY_FORMAT_MESA enum

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Ian Romanick Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- docs/specs/enums.txt | 3 +++ src/mapi/glapi/registry/gl.xml | 7 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/specs/

[Mesa-dev] [PATCH 11/23] mesa: add driver callbacks for serialising ProgramBinary blobs

2017-11-28 Thread Timothy Arceri
--- src/mesa/main/dd.h | 17 + 1 file changed, 17 insertions(+) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index da03b2e8b94..4e4d2a6f37d 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1119,20 +1119,37 @@ struct dd_function_table { * of fd after the ca

[Mesa-dev] [PATCH 04/23] main, glsl: Add UniformDataDefaults which stores uniform defaults

2017-11-28 Thread Timothy Arceri
From: Jordan Justen The ARB_get_program_binary extension requires that uniform values in a program be restored to their initial value just after linking. This patch saves off the initial values just after linking. When the program is restored by glProgramBinary, we can use this to copy the initi

[Mesa-dev] [PATCH 03/23] glsl: Split out shader program serialization

2017-11-28 Thread Timothy Arceri
From: Jordan Justen This will allow us to use the program serialization to implement ARB_get_program_binary. Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/compiler/Makefile.sources |2 + src/compiler/glsl/meson.build |2 + src/compiler/glsl/serialize.cpp

[Mesa-dev] [PATCH 02/23] include: Add GL_MESA_program_binary_formats to GL/GLES2 ext.h files

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Thus was merged into the OpenGL Registry in version 667c5a253781834b40a6ae9eb19d05af4542cfe1. Ref: https://github.com/KhronosGroup/OpenGL-Registry/pull/127 Signed-off-by: Jordan Justen Reviewed-by: Nicolai Hähnle --- include/GL/glext.h | 5 + include/GLES2/gl2ext.h

[Mesa-dev] [PATCH 14/23] main: add binary support to GetProgramBinary

2017-11-28 Thread Timothy Arceri
From: Jordan Justen V2: call generic _mesa_get_program_binary() helper rather than driver function directly to allow greater code sharing. Signed-off-by: Timothy Arceri Signed-off-by: Jordan Justen (v1) Reviewed-by: Nicolai Hähnle (v1) --- src/mesa/main/shaderapi.c | 15 +--

[Mesa-dev] [PATCH 15/23] main: add binary support to ProgramBinary

2017-11-28 Thread Timothy Arceri
From: Jordan Justen V2: call generic mesa_program_binary() helper rather than driver function directly to allow greater code sharing. Signed-off-by: Timothy Arceri Signed-off-by: Jordan Justen (v1) Reviewed-by: Nicolai Hähnle (v1) --- src/mesa/main/shaderapi.c | 36 +++---

[Mesa-dev] [PATCH 06/23] i965: Free serialized nir after deserializing

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_program.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 2a647cdd734..30cc14e88a2 1

[Mesa-dev] [PATCH 09/23] main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Nicolai Hähnle --- src/mesa/main/get_hash_params.py | 2 +- src/mesa/main/mtypes.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py

[Mesa-dev] [PATCH 08/23] i965: Fix memory leak when serializing nir

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index c8513c947da..8d321656fef 100644

[Mesa-dev] [PATCH 07/23] i965: Add brw_program_serialize_nir

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_link.cpp | 9 ++--- src/mesa/drivers/dri/i965/brw_program.c | 12 src/mesa/drivers/dri/i965/brw_program.h | 3 +++ 3 files changed, 17 insertions(+), 7 deletions(-

[Mesa-dev] [PATCH 05/23] i965: Add brw_program_deserialize_nir

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_disk_cache.c | 31 -- src/mesa/drivers/dri/i965/brw_program.c| 16 +++ src/mesa/drivers/dri/i965/brw_program.h| 4 3 files change

[Mesa-dev] [PATCH 10/23] main: Support 1 Mesa format with get for GL_PROGRAM_BINARY_FORMATS

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Mesa supports either 0 or 1 formats. If 1 format is supported, it is GL_PROGRAM_BINARY_FORMAT_MESA as defined in the GL_MESA_program_binary_formats extension spec. Signed-off-by: Jordan Justen Reviewed-by: Nicolai Hähnle --- src/mesa/main/get.c | 9 +

[Mesa-dev] [PATCH 18/23] st/glsl_to_tgsi: stop passing pipe_shader_state to st_store_tgsi_in_disk_cache()

2017-11-28 Thread Timothy Arceri
We can instead just get this from st_*_program. --- src/mesa/state_tracker/st_program.c | 6 +++--- src/mesa/state_tracker/st_shader_cache.c | 22 -- src/mesa/state_tracker/st_shader_cache.h | 3 +-- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/me

[Mesa-dev] [PATCH 20/23] st/glsl_to_tgsi: add st_get_program_binary_driver_sha1() helper

2017-11-28 Thread Timothy Arceri
This will be used by ARB_get_program_binary. --- src/mesa/state_tracker/st_shader_cache.c | 6 ++ src/mesa/state_tracker/st_shader_cache.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/mesa/state_tracker/st_shader_cache.c b/src/mesa/state_tracker/st_shader_cache.c index 62d62f76

[Mesa-dev] [PATCH 19/23] st/glsl_to_tgsi: add (de)serialise program helpers

2017-11-28 Thread Timothy Arceri
These will be shared between the on-disk shader cache and ARB_get_program_binary. --- src/mesa/state_tracker/st_shader_cache.c | 265 --- src/mesa/state_tracker/st_shader_cache.h | 8 + 2 files changed, 146 insertions(+), 127 deletions(-) diff --git a/src/mesa/state_

[Mesa-dev] [PATCH 21/23] st/glsl_to_tgsi: add ARB_get_program_binary support using TGSI

2017-11-28 Thread Timothy Arceri
This resolves a game bug in Deal Island. The game doesn't properly handle ARB_get_program_binary with 0 supported formats, and ends up crashing. This will enable ARB_get_program_binary binary support for any driver that currently enables the on-disk shader cache. Bugzilla: https://bugs.freedeskto

[Mesa-dev] [PATCH 17/23] st/glsl_to_tgsi: store num_tgsi_tokens in st_*_program

2017-11-28 Thread Timothy Arceri
We will need this for ARB_get_program_binary binary support. --- src/mesa/state_tracker/st_program.c | 21 - src/mesa/state_tracker/st_program.h | 12 src/mesa/state_tracker/st_shader_cache.c | 15 +-- src/mesa/state_tracker/st_shader_cache.h

[Mesa-dev] [PATCH 12/23] mesa: Add Mesa ARB_get_program_binary helper functions

2017-11-28 Thread Timothy Arceri
From: Jordan Justen V2 (Timothy Arceri): - add extra code comment - stop passing around void *binary and just pass program_binary_header *hdr instead. - move to src/mesa/main rather than src/util V3 (Timothy Arceri): - Move more code out of the backend and into the common helpers. Sig

[Mesa-dev] [PATCH 23/23] docs: Update GL_ARB_get_program_binary docs to support 1 format

2017-11-28 Thread Timothy Arceri
From: Jordan Justen Signed-off-by: Jordan Justen --- docs/features.txt | 2 +- docs/relnotes/17.4.0.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 01cd133ef01..39aaa4f603b 100644 --- a/docs/features.txt +++ b/docs/fe

[Mesa-dev] [PATCH 13/23] main: Support getting GL_PROGRAM_BINARY_LENGTH

2017-11-28 Thread Timothy Arceri
From: Jordan Justen V2: call generic _mesa_get_program_binary_length() helper rather than driver function directly to allow greater code sharing. Signed-off-by: Timothy Arceri Signed-off-by: Jordan Justen (v1) Reviewed-by: Nicolai Hähnle i (v1) --- src/mesa/main/shaderapi.c | 7 ++

[Mesa-dev] [PATCH 22/23] i965: Add ARB_get_program_binary support using nir_serialization

2017-11-28 Thread Timothy Arceri
From: Jordan Justen This resolves an apparent game bug described in 85564. The game doesn't properly handle ARB_get_program_binary with 0 supported formats. V2 (Timothy Arceri): - less driver code as more has been moved into the common helpers. Bugzilla: https://bugs.freedesktop.org/show_bug.c

[Mesa-dev] [PATCH 16/23] main: Clear shader program data whenever ProgramBinary is called

2017-11-28 Thread Timothy Arceri
From: Jordan Justen The GL_ARB_get_program_binary extension spec says: "If ProgramBinary fails to load a binary, no error is generated, but any information about a previous link or load of that program object is lost." v2: * Re-initialize shProg->data after clear. (Jordan) (Required af

[Mesa-dev] [PATCH 2/2] vulkan/wsi: drop local_fd parameter from lots of places.

2017-11-28 Thread Dave Airlie
From: Dave Airlie this won't change over the driver lifetime, so just set it in the wsi_device at init, and avoid passing it around afterwards. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_wsi.c | 3 +-- src/amd/vulkan/radv_wsi_x11.c | 2 -- src/intel/vulkan/anv_wsi.c

[Mesa-dev] [PATCH 1/2] vulkan/wsi: drop can handle different gpu from the x11 interfaces

2017-11-28 Thread Dave Airlie
From: Dave Airlie Jason dropped this elsewhere, just seemed to miss here. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_wsi_x11.c | 4 ++-- src/intel/vulkan/anv_wsi_x11.c | 4 ++-- src/vulkan/wsi/wsi_common_x11.c | 5 - src/vulkan/wsi/wsi_common_x11.h | 1 - 4 files changed, 4 inse

[Mesa-dev] [Bug 100262] libswrAVX2.so Causes hang with QOpenGLWidget

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100262 Bruce Cherniak changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH 2/2] radeonsi: always place sparse buffers in VRAM

2017-11-28 Thread Dieter Nützel
For the series: Tested-by: Dieter Nützel on RX580 with UH, UV, DiRT Rally, some Wine apps - LS2015/LS2017 Dieter Am 28.11.2017 14:44, schrieb Nicolai Hähnle: From: Nicolai Hähnle Together with "radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check", this ensures that sparse buffers are pl

Re: [Mesa-dev] [PATCH 1/2] i965: Allow old begin/end queryobj for gen4/5 with HW contexts

2017-11-28 Thread Ian Romanick
Yeah... since the split of Gen4/5 and Gen6+, those checks seem vestigial anyway. This patch is Reviewed-by: Ian Romanick On 11/23/2017 02:24 AM, Chris Wilson wrote: > Since we have HW contexts on gen4/5, we could take advantage of them, as > done for gen6+ in commit e32cd5ffbb72 ("i965: Rely on

Re: [Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-28 Thread Ian Romanick
On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we > try and flush. If we're not allowed to flush, we resort to growing the > buffer so that there's space for the data we need to emit. > > We accidentally got the threshold wro

Re: [Mesa-dev] [PATCH 2/6] i965: Use old_bo->align when growing batch/state buffer instead of 4096.

2017-11-28 Thread Ian Romanick
This seems trivially correct, so this patch is Reviewed-by: Ian Romanick On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > The intention here is make the new BO use the same alignment as the old > BO. This isn't strictly necessary, but we would have to update the > 'alignment' field in the valid

Re: [Mesa-dev] [PATCH 3/6] i965: Preserve EXEC_OBJECT_CAPTURE when growing the BO.

2017-11-28 Thread Ian Romanick
This seems trivially correct, so this patch is Reviewed-by: Ian Romanick On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > The original state buffer was marked with EXEC_OBJECT_CAPTURE. When > growing it, we want to preserve that flag so we continue to capture it > in GPU hang reports. > > Fixe

Re: [Mesa-dev] [PATCH 4/6] i965: Reorganize batch/state BO fields into a 'brw_growing_bo' struct.

2017-11-28 Thread Ian Romanick
I didn't scrutinize every single line, but these changes all look mechanical. This patch is Reviewed-by: Ian Romanick On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > We're about to add more of them, and need to pass the whole lot of them > around together when growing them. Putting them in a

Re: [Mesa-dev] [PATCH 5/6] i965: Avoid problems from referencing orphaned BOs after growing.

2017-11-28 Thread Ian Romanick
On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > Growing the batch/state buffer is a lot more dangerous than I thought. > > A number of places emit multiple state buffer sections, and then write > data to the returned pointer, or save a pointer to brw->batch.state.bo > and then use it in relocatio

Re: [Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-28 Thread Kenneth Graunke
On Tuesday, November 28, 2017 6:15:59 PM PST Ian Romanick wrote: > On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > > Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we > > try and flush. If we're not allowed to flush, we resort to growing the > > buffer so that there's space

Re: [Mesa-dev] [PATCH 5/6] i965: Avoid problems from referencing orphaned BOs after growing.

2017-11-28 Thread Kenneth Graunke
On Tuesday, November 28, 2017 6:34:20 PM PST Ian Romanick wrote: > On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > > diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c > > b/src/mesa/drivers/dri/i965/intel_batchbuffer.c > > index b30ffe5d7f6..12d165d7236 100644 > > --- a/src/mesa/drivers/

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Unpack count argument to 64-bit shift ops on Atom

2017-11-28 Thread Matt Turner
On Tue, Nov 28, 2017 at 12:35 PM, Ian Romanick wrote: > Also... it looks like only a few patches in this series got reviewed. > Did the whole thing actually land? Yes, I felt safe pushing the majority of it without review because of the extensive unit tests I wrote. I also felt justified in push

[Mesa-dev] [PATCH] r600: fix bfe where src/dst are same.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This fixes overlaps where src/dst are the same. Fixes a bunch of the deqp bitfield tests. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/gallium/driv

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 Ian Romanick changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #4 from Ian Romanic

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 --- Comment #5 from Ian Romanick --- (In reply to Ian Romanick from comment #4) > (In reply to Ilia Mirkin from comment #3) > > >(expression vec3 * (record_ref (var_ref u_s) color) > > (array_ref (record_ref (var_ref u

Re: [Mesa-dev] [PATCH 0/6] RadeonSI DCC for MSAA on VI

2017-11-28 Thread Dieter Nützel
For the series: Tested-by: Dieter Nützel on RX580 with UH, UV and Blender 2.79 Dieter Am 28.11.2017 22:17, schrieb Marek Olšák: Hi, This series enables DCC for MSAA on VI. MSAA array textures don't enable DCC because the fast clear would be slightly more complicated. GFX9 doesn't enable D

[Mesa-dev] [PATCH] r600: add ARB_shader_storage_buffer_object support (v3)

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just builds on the image support. Evergreen only has ssbo for fragment and compute no other stages. v2: handle images and ssbo in the same shader properly (Ilia) v3: fix RESQ on buffers, fix missing atom emit fix first element offset use R32 format write se

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Unpack count argument to 64-bit shift ops on Atom

2017-11-28 Thread Matt Turner
On Tue, Nov 28, 2017 at 5:54 AM, Andres Gomez wrote: > Matt, this looks like a good candidate to nominate for inclusion in > the 17.2 stable queue. > > What do you think? Yes, I think so. I didn't realize that ARB_shader_ballot was in 17.2, but this is a bug fix for it so it should be included. _

[Mesa-dev] Refactored st/omx/tizonia commits

2017-11-28 Thread Gurkirpal Singh
These are the refactored commits related to the GSoC project involving adding a st/omx state tracker using tizonia. There are still some parts of code that i didn't refactor yet as explained below: 1) I wasn't sure if it's okay to use #if-#else declaratives for function declarations. For eg: One fu

[Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2017-11-28 Thread Gurkirpal Singh
--- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/vl/vl_screen.c | 107 + src/gallium/auxiliary/vl/vl_screen.h | 33 +++ .../state_trackers/omx_bellagio/entrypoint.c | 83 .../state_tra

[Mesa-dev] [PATCH 3/7] st/omx/tizonia: Add --enable-omx-tizonia flag and build files

2017-11-28 Thread Gurkirpal Singh
Allow only bellagio or tizonia to be used at the same time. Detect tizonia package config file Generate libomx_mesa.so and install it to libtizcore.pc::pluginsdir Only compile empty source (target.c) for now. GSoC Project link: https://summerofcode.withgoogle.com/projects/#4737166321123328 --- c

[Mesa-dev] [PATCH 4/7] st/omx/tizonia: Add entrypoint

2017-11-28 Thread Gurkirpal Singh
Adds base files for adding components --- .../state_trackers/omx/tizonia/Makefile.sources| 4 ++- .../state_trackers/omx/tizonia/entrypoint.c| 37 ++ .../state_trackers/omx/tizonia/entrypoint.h| 35 3 files changed, 75 insertions(+), 1

[Mesa-dev] [PATCH 6/7] st/omx/tizonia: Add H.264 encoder

2017-11-28 Thread Gurkirpal Singh
Example Gstreamer pipeline : gst-launch-1.0 filesrc location=movie.mp4 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! omxh264enc ! h264parse ! avdec_h264 ! videoconvert ! ximagesink --- src/gallium/state_trackers/omx/Makefile.sources| 4 +- src/gallium/state_trackers/omx/bellagio/vid_e

[Mesa-dev] [PATCH 7/7] st/omx/tizonia/h264d: Add EGLImage support

2017-11-28 Thread Gurkirpal Singh
Example Gstreamer pipeline : MESA_ENABLE_OMX_EGLIMAGE=1 GST_GL_API=gles2 GST_GL_PLATFORM=egl gst-launch-1.0 filesrc location=movie.mp4 ! qtdemux ! h264parse ! omxh264dec ! glimagesink --- src/gallium/state_trackers/omx/Makefile.am | 1 + src/gallium/state_trackers/omx/tizonia/Makefile.a

[Mesa-dev] [PATCH 02/22] i965: Support xrgb/argb2101010 formats for glx_texture_from_pixmap.

2017-11-28 Thread Mario Kleiner
Makes compositing under X11/GLX work. Signed-off-by: Mario Kleiner --- src/mesa/drivers/dri/i965/intel_tex_image.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c index 37

[Mesa-dev] [PATCH 03/22] i965: Support accelerated blit for depth 30 formats. (v2)

2017-11-28 Thread Mario Kleiner
Extend intel_miptree_blit() to handle at least ARGB2101010 -> XRGB2101010, ARGB2101010 -> ARGB2101010, and XRGB2101010 -> XRGB2101010 via the BLT engine, but not XRGB2101010 -> ARGB2101010 yet. This works as tested under Compiz, KDE-5, Gnome-Shell. v2: Restrict BLT fast path to exclude XRGB210101

[Mesa-dev] [PATCH 10/22] egl/x11: Match depth 30 RGB visuals to 32-bit RGBA EGLConfigs.

2017-11-28 Thread Mario Kleiner
Similar to the matching of 24 bit RGB visuals to 32-bit RGBA EGLConfigs, so X11 compositors won't alpha-blend any config with a destination alpha buffer during compositing. Additionally this fixes failure to select ARGB2101010 configs via eglChooseConfig() with EGL_ALPHA_BITS 2 on a depth 30 X-Scr

[Mesa-dev] [PATCH 01/22] i965/screen: Add basic support for rendering 10 bpc/depth 30 framebuffers. (v3)

2017-11-28 Thread Mario Kleiner
Expose formats which are supported at least back to Gen 5 Ironlake, possibly further. Allow creation of 10 bpc winsys buffers for drawables. glxinfo now lists new RGBA 10 10 10 2/0 formats. Works correctly under DRI2 without compositing. v2: Move the BGRA/BGRX1010102 formats before the RGBA/RGBX8

[Mesa-dev] [PATCH 04/22] dri: Add 10 bpc formats as available formats. (v2)

2017-11-28 Thread Mario Kleiner
Used to support ARGB2101010 and XRGB2101010 winsys framebuffers / drawables, but added other 10 bpc fourcc's as well for consistency with definitions in wayland_drm.h, gbm.h, and drm_fourcc.h. v2: Align new defines with tabs instead of spaces, for consistency with remainder of that block of de

[Mesa-dev] Rev 3 of 10 bit color depth support for i965 dri + gallium

2017-11-28 Thread Mario Kleiner
Ok, next iteration. The i965 patches are the same, except i tacked one additional r-b by Tapani to patch 01/22 and adjusted num_formats according to his suggestion, and rebased onto his new sRGB support patch for i965. New patch 02/22 adds back 10 bit handling to intelSetTexBuffer2(). That was dr

[Mesa-dev] [PATCH 07/22] dri/common: Add option to allow exposure of 10 bpc color configs. (v2)

2017-11-28 Thread Mario Kleiner
Some clients may not like RGB10X2 and RGB10A2 fbconfigs and visuals. Add a new driconf option 'allow_rgb10_configs' to allow per application enable/disable. The option defaults to enabled. v2: Rename expose_rgb10_configs to allow_rgb10_configs, as suggested by Emil. Add comment to option pars

[Mesa-dev] [PATCH 06/22] i965/screen: Add XRGB2101010 and ARGB2101010 support for DRI3.

2017-11-28 Thread Mario Kleiner
Allow DRI3/Present buffer sharing for 10 bpc buffers. Otherwise composited desktops under DRI3 will only display black client areas for redirected windows. Signed-off-by: Mario Kleiner --- src/mesa/drivers/dri/i965/intel_screen.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa

[Mesa-dev] [PATCH 13/22] egl/wayland: Add Wayland drm support for RGB10 winsys buffers.

2017-11-28 Thread Mario Kleiner
Successfully tested under Weston 3.0. Photometer confirms 10 rgb bits from rendering to display. Signed-off-by: Mario Kleiner --- src/egl/drivers/dri2/platform_wayland.c | 37 --- src/egl/wayland/wayland-drm/wayland-drm.c | 6 + 2 files changed, 40 insertions(+

[Mesa-dev] [PATCH 05/22] loader/dri3: Add XRGB2101010 and ARGB2101010 support.

2017-11-28 Thread Mario Kleiner
To allow DRI3/Present buffer sharing for 10 bpc buffers. Signed-off-by: Mario Kleiner Reviewed-by: Tapani Pälli --- src/loader/loader_dri3_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 7e6b8b2..cc890bc 1006

[Mesa-dev] [PATCH 08/22] i965/screen: Honor 'allow_rgb10_configs' option. (v2)

2017-11-28 Thread Mario Kleiner
Allows to prevent exposing RGB10 configs and visuals to clients. v2: Rename expose_rgb10_configs to allow_rgb10_configs, as suggested by Emil. Signed-off-by: Mario Kleiner --- src/mesa/drivers/dri/i965/intel_screen.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/s

[Mesa-dev] [PATCH 18/22] st/dri2: Add buffer handling for BGR[A/X]1010102 formats.

2017-11-28 Thread Mario Kleiner
Signed-off-by: Mario Kleiner --- src/gallium/state_trackers/dri/dri2.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index b8333f6..04c153a 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/

[Mesa-dev] [PATCH 11/22] egl/x11: Handle depth 30 drawables under software rasterizer.

2017-11-28 Thread Mario Kleiner
For fixing eglCreateWindowSurface() under swrast, as tested with LIBGL_ALWAYS_SOFTWARE=1. Suggested-by: Eric Engestrom Signed-off-by: Mario Kleiner --- src/egl/drivers/dri2/platform_x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/

[Mesa-dev] [PATCH 15/22] egl/wayland: Add Wayland shm swrast support for RGB10 winsys buffers.

2017-11-28 Thread Mario Kleiner
Signed-off-by: Mario Kleiner --- src/egl/drivers/dri2/platform_wayland.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 7451027..4a0b8c2 100644 --- a/src/egl/drivers/dri

[Mesa-dev] [PATCH 22/22] st/dri: Add option to control exposure of 10 bpc color configs.

2017-11-28 Thread Mario Kleiner
Some clients may not like rgb10 fbconfigs and visuals. Support driconf option 'allow_rgb10_configs' on gallium to allow per application enable/disable. The option defaults to enabled. Signed-off-by: Mario Kleiner --- src/gallium/auxiliary/pipe-loader/driinfo_gallium.h | 1 + src/gallium/state_t

[Mesa-dev] [PATCH 16/22] st/mesa: Handle BGR[A/X]1010102 formats.

2017-11-28 Thread Mario Kleiner
Signed-off-by: Mario Kleiner --- src/mesa/state_tracker/st_cb_fbo.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index e2303b4..a982f87 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracke

[Mesa-dev] [PATCH 20/22] nv50, nvc0: Support BGRX1010102 format for visuals.

2017-11-28 Thread Mario Kleiner
Add it as displayable/scanout capable, so it can be exposed as valid visual/fbconfig. Signed-off-by: Mario Kleiner --- src/gallium/drivers/nouveau/nv50/nv50_formats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_formats.c b/src/gallium/drivers/nouvea

[Mesa-dev] [PATCH 12/22] egl/x11: Handle depth 30 drawables for EGL_KHR_image_pixmap.

2017-11-28 Thread Mario Kleiner
Enables eglCreateImageKHR() with target set to EGL_NATIVE_PIXMAP_KHR to handle color depth 30 X11 drawables. Note that in theory the drawable depth 32 case in the current implementation is ambiguous: A depth 32 drawable could be of format ARGB or ARGB2101010, therefore an assignment of __DRI_I

[Mesa-dev] [PATCH 17/22] st/dri2: Add format translations for BGR[A/X]1010102 formats.

2017-11-28 Thread Mario Kleiner
Signed-off-by: Mario Kleiner --- src/gallium/state_trackers/dri/dri2.c | 28 1 file changed, 28 insertions(+) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index a70f37f..b8333f6 100644 --- a/src/gallium/state_trackers/dr

[Mesa-dev] [PATCH 09/22] mesa: Add GL_RGBA + GL_UNSIGNED_INT_2_10_10_10_REV for OES read type.

2017-11-28 Thread Mario Kleiner
This format + type combo is good for BGRA1010102 framebuffers for use with glReadPixels() under GLES, so add it for the GL_IMPLEMENTATION_COLOR_READ_TYPE_OES query. Allows successful testing of 10 bpc / depth 30 rendering with dEQP test case dEQP-EGL.functional.wide_color.window_1010102_colorspace

[Mesa-dev] [PATCH 14/22] egl/wayland: Add Wayland dmabuf support for RGB10 winsys buffers. (v2)

2017-11-28 Thread Mario Kleiner
Successfully tested under Weston 3.0. Photometer confirms 10 rgb bits from rendering to display. v2: Rebased onto master for dri2_teardown_wayland(). Signed-off-by: Mario Kleiner --- src/egl/drivers/dri2/egl_dri2.h | 2 ++ src/egl/drivers/dri2/platform_wayland.c | 18 +-

[Mesa-dev] [PATCH 21/22] st/dri: Add support for BGR[A/X]1010102 formats.

2017-11-28 Thread Mario Kleiner
Exposes RGBA 10 10 10 2 and 10 10 10 0 visuals and fbconfigs for rendering. Signed-off-by: Mario Kleiner --- src/gallium/state_trackers/dri/dri_screen.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/

[Mesa-dev] [PATCH 19/22] st/dri: Support texture_from_pixmap for BGR[A/X]1010102 formats.

2017-11-28 Thread Mario Kleiner
Signed-off-by: Mario Kleiner --- src/gallium/state_trackers/dri/dri_drawable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c index 92ce9d2..a5999be 100644 --- a/src/gallium/state_trackers/dri/d

[Mesa-dev] [Bug 103699] Latest mesa breaks firefox on kde plasma with compositing on

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103699 --- Comment #22 from Tapani Pälli --- (In reply to Fredrik Höglund from comment #20) > Created attachment 135782 [details] > modified test case > > The window decoration is a separate texture in kwin, so the decoration > should be rendered norm

[Mesa-dev] [PATCH 02/21] r600: add support for compute pkt flags to debug dumping.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just lets us see packets marked for compute. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/eg_debug.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/r600/eg_debug.c b/src/gallium/drivers/r600/eg_debug.c in

[Mesa-dev] [PATCH 07/21] r600: handle compute null key shader state

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/r600_state_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index b6a4728..e312b33 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +

[Mesa-dev] [PATCH 18/21] r600: handle image/buffer sizes correctly.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This adds support to compute for the resq workarounds (buffer/cube sizes) Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 7 +++ src/gallium/drivers/r600/r600_pipe.h | 2 ++ src/gallium/drivers/r600/r600_state_common.c | 16

[Mesa-dev] [PATCH 01/21] st/mesa: handle compute atomics

2017-11-28 Thread Dave Airlie
From: Dave Airlie Just reuse the cs atomics bit and emit the hw atomic state. --- src/mesa/state_tracker/st_atom_atomicbuf.c | 4 src/mesa/state_tracker/st_context.c| 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_atomicbuf.c b/sr

[Mesa-dev] [PATCH 04/21] r600: don't set EOP on pop or loop end

2017-11-28 Thread Dave Airlie
From: Dave Airlie This appears to bad, compute shaders hang without it. --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 41af0f5..e72215f 100644 --

[Mesa-dev] [RFC] r600/evergreen compute shader + glsl 4.30 support

2017-11-28 Thread Dave Airlie
This set of patches enables compute shaders on r600 and exposes GLSL 4.30 support. They are pretty alpha level, but I'd like to land some of them (maybe disabled) so I can avoid the rebasing fun with the more intrusive ones. It is based on the previous ssbo support patch. It may not be stable, I

[Mesa-dev] [PATCH 09/21] r600/shader: add compute support to shader assembler

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 83b70b0..b3c29b9 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/g

[Mesa-dev] [PATCH 03/21] r600: split cb setup code out from evergreen compute path.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just makes it easier to bypass for TGSI later. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 50 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/s

[Mesa-dev] [PATCH 12/21] r600: refactor and export some shader selector code for compute

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just moves some code around to make it easier to add compute. --- src/gallium/drivers/r600/r600_pipe.h | 10 ++ src/gallium/drivers/r600/r600_state_common.c | 24 +--- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/g

[Mesa-dev] [PATCH 21/21] r600: export GLSL 430

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index b013d69..e285608 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/d

[Mesa-dev] [PATCH 15/21] r600/compute: add support for indirect dispatch

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index b976b61..7df1c55 100644 --- a/sr

[Mesa-dev] [PATCH 05/21] r600: no need to reinit compute regs

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 13 - 1 file changed, 13 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 7831b43..ff51ea3 100644 --- a/src/gallium/drivers/r600/evergreen

[Mesa-dev] [PATCH 06/21] r600/cs: add support for compute to image/buffers/atomics state

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just adds the compute paths to state handling for the main objects --- src/gallium/drivers/r600/evergreen_state.c | 79 ++-- src/gallium/drivers/r600/r600_hw_context.c | 2 + src/gallium/drivers/r600/r600_pipe.h | 6 ++- src/gallium/dr

[Mesa-dev] [PATCH 10/21] r600: update max threads per block for evergreen compute

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/r600_pipe_common.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index 23f7d74..b611783 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++

[Mesa-dev] [PATCH 08/21] r600/shader: add local memory support to shader assembler.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This is needed for compute shaders. v1.1: make work for vectors, fix missing lds ops. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 165 + 1 file changed, 165 insertions(+) diff --git a/src/gallium/drivers/r600/r600_

[Mesa-dev] [PATCH 19/21] r600: add support for compute grid/block sizes.

2017-11-28 Thread Dave Airlie
From: Dave Airlie We just pass these in from outside in a constant buffer. The shader side stores them once they are accessed once. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 9 +++- src/gallium/drivers/r600/r600_pipe.h | 3 ++ src/gallium/drivers/

[Mesa-dev] [PATCH 13/21] r600/texture: drop lowering 1d/2d images to linear.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This appears to cause hangs with compute images. Unless we can find more specifics, just don't do this for now. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_texture.c | 8 1 file changed, 8 deletions(-) diff --git a/src/gallium/drivers/r600/r600_text

[Mesa-dev] [PATCH 1/6] i965/miptree: Add a helper for getting the textureable format

2017-11-28 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_draw.c | 3 ++- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 10 ++ src/mesa/drivers/dri/i965/intel_mipmap_tree.c| 13 + src/mesa/drivers/dri/i965/intel_mipmap_tree.h| 6 ++ 4 files changed, 27 insertions(+), 5 d

[Mesa-dev] [PATCH 20/21] r600/cs: add compute support to caps

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/r600_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 01f9bf6..b013d69 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/galli

[Mesa-dev] [PATCH 11/21] r600: add compute support to compressed resource handling.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This just adds support for decompressing compute resources. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_pipe.h | 1 + src/gallium/drivers/r600/r600_state_common.c | 31 ++-- 2 files changed, 26 insertions(+), 6 deletions(-) d

[Mesa-dev] [PATCH 16/21] r600/compute: handle atomic counters in compute state.

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 7df1c55..b8e1c20 100644 --- a/src/gallium/drivers/r600/evergreen_comp

[Mesa-dev] [PATCH 17/21] r600/compute: add support for emitting compute image/buffer atoms

2017-11-28 Thread Dave Airlie
From: Dave Airlie --- src/gallium/drivers/r600/evergreen_compute.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index b8e1c20..c9e649e 100644 --- a/src/gallium/drivers/r6

[Mesa-dev] [PATCH 14/21] r600/compute: add support for TGSI compute shaders.

2017-11-28 Thread Dave Airlie
From: Dave Airlie This add paths to handle TGSI compute shaders and shader selection. It also avoids emitting certain things on tgsi paths, CBs, vertex buffers, config reg init (not required). --- src/gallium/drivers/r600/evergreen_compute.c | 125 - .../drivers/r600/e

[Mesa-dev] [PATCH 2/6] i965/miptree: Loosen the format check in miptree_match_image

2017-11-28 Thread Jason Ekstrand
This function is used to determine when we need to re-allocate a miptree. Since we do nothing different in miptree allocation for sRGB vs. linear, loosening this should be safe and may lead to less copying and reallocating in some odd cases. Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace

[Mesa-dev] [PATCH 6/6] intel/isl: Improve the documentation on get_default_aux_state

2017-11-28 Thread Jason Ekstrand
Cc: Chad Versace --- src/intel/isl/isl.h | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index e3acb0e..cf53b5a 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1565,10 +1565,25 @@ isl_drm_modifi

[Mesa-dev] [PATCH 0/6] i965: Fix texture_from_pixmap for CCS

2017-11-28 Thread Jason Ekstrand
This series is one more go at fixing texture_from_pixmap. The previous patches I apparently didn't test well enough because it regressed a bunch of tests when I ran it through Jenkins today. These are all fixed by the new patch 1 and the corresponding hunk in patch 2. I've also re-ordered things

[Mesa-dev] [PATCH 4/6] i965/tex_image: Reference the renderbuffer miptree in setTexBuffer2

2017-11-28 Thread Jason Ekstrand
The old code made a new miptree that referenced the same BO as the renderbuffer and just trusted in the memory aliasing to work. There are only two ways in which the new miptree is liable to differ from the one in the renderbuffer and neither of them matter: 1) It may have a different target. T

[Mesa-dev] [PATCH 3/6] i965/tex_image: Pull the tex format from the renderbuffer in intelSetTexBuffer2

2017-11-28 Thread Jason Ekstrand
Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace Cc: "17.3" --- src/mesa/drivers/dri/i965/intel_tex_image.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_im

<    1   2   3   4   >