Re: [Mesa-dev] [PATCH] radv: don't advertise transfer props unless we can do anything else

2017-05-04 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, May 4, 2017 at 2:52 AM, Dave Airlie wrote: > From: Dave Airlie > > There is no reason to advertise transfer ability for formats we can't > use for anything else. This stops some CTS tests hitting internal > error for 64-bit types when they see the transfer

[Mesa-dev] [PATCH 08/18] mesa: add KHR_no_error support for flush mapped buffer functions

2017-05-04 Thread Timothy Arceri
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 +- src/mapi/glapi/gen/ARB_map_buffer_range.xml| 2 +- src/mesa/main/bufferobj.c | 25 + src/mesa/main/bufferobj.h | 7 ++- 4 files changed, 33 insertions(+), 3 delet

[Mesa-dev] [PATCH 02/18] mesa: split out validation from map_buffer_range()

2017-05-04 Thread Timothy Arceri
This will allow us to add KHR_no_error support for *BufferRange functions. --- src/mesa/main/bufferobj.c | 77 ++- 1 file changed, 50 insertions(+), 27 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 76e035f..797b6f

[Mesa-dev] [PATCH 01/18] mesa: make map_buffer_range() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 27 +-- src/mesa/main/bufferobj.h | 6 -- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 961871c..76e035f 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa

[Mesa-dev] [PATCH 11/18] make: _mesa_buffer_storage() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 15 +++ src/mesa/main/bufferobj.h | 5 - 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 0a8f030..6161271 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferob

[Mesa-dev] [PATCH 09/18] mesa: make _mesa_clear_buffer_sub_data() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 33 + src/mesa/main/bufferobj.h | 9 - 2 files changed, 13 insertions(+), 29 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 9e96f31..326e901 100644 --- a/src/mesa/main/bufferobj.c +++ b

[Mesa-dev] [PATCH 06/18] mesa: add KHR_no_error support for unmap buffer functions

2017-05-04 Thread Timothy Arceri
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 +- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/bufferobj.c | 19 +++ src/mesa/main/bufferobj.h | 4 4 files changed, 25 insertions(+), 2 deletions(-)

[Mesa-dev] [PATCH 03/18] mesa: add KHR_no_error support for some map buffer functions

2017-05-04 Thread Timothy Arceri
--- src/mapi/glapi/gen/ARB_direct_state_access.xml | 4 +- src/mapi/glapi/gen/ARB_map_buffer_range.xml| 2 +- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/bufferobj.c | 53 ++ src/mesa/main/bufferobj.h

[Mesa-dev] [PATCH 12/18] mesa: remove unused _mesa_total_buffer_object_memory()

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 31 --- src/mesa/main/bufferobj.h | 3 --- 2 files changed, 34 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 6161271..2944dce 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c

[Mesa-dev] [PATCH 13/18] st/mesa: stop calling _mesa_init_buffer_object_functions()

2017-05-04 Thread Timothy Arceri
After calling this we were then overriding all the functions with st versions. --- src/mesa/state_tracker/st_cb_bufferobjects.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 5911d1e..c1994d5

[Mesa-dev] [PATCH 05/18] mesa: split unmap_buffer() in two

2017-05-04 Thread Timothy Arceri
This will allow us to implement KHR_no_error support for unmap functions. --- src/mesa/main/bufferobj.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index f6822c7..0fdb623 100644 --- a/src/

[Mesa-dev] [PATCH 10/18] mesa: make _mesa_copy_buffer_sub_data() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 18 -- src/mesa/main/bufferobj.h | 7 --- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 326e901..0a8f030 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/buf

[Mesa-dev] [PATCH 04/18] mesa: make _mesa_unmap_buffer() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 10 +- src/mesa/main/bufferobj.h | 4 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index d1726d6..f6822c7 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@

[Mesa-dev] [PATCH 07/18] mesa: make _mesa_flush_mapped_buffer_range() static

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 18 +- src/mesa/main/bufferobj.h | 6 -- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 6fa32e9..75526b5 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/buff

[Mesa-dev] [PATCH 14/18] mesa: remove _mesa from static function

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2944dce..6825030 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -649,23 +649,23 @@ buffer_sub_data_fallba

[Mesa-dev] [PATCH 18/18] mesa: small texture targetIndex tidy up

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/texobj.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index af9baa9..868e4eb 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -322,27 +322,27 @@ _mesa_initialize_texture_object( str

[Mesa-dev] [PATCH 16/18] mesa: some C99 tidy ups

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/bufferobj.c | 34 ++ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index f4597ed..44618a3 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1176,23 +11

[Mesa-dev] [PATCH 15/18] mesa: add KHR_no_error support to copy buffer subdata functions

2017-05-04 Thread Timothy Arceri
--- src/mapi/glapi/gen/ARB_copy_buffer.xml | 2 +- src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 +- src/mesa/main/bufferobj.c | 33 ++ src/mesa/main/bufferobj.h | 9 ++- 4 files changed, 43 insertions(+), 3 dele

[Mesa-dev] [PATCH 17/18] mesa: fix broken indentation

2017-05-04 Thread Timothy Arceri
--- src/mesa/main/texparam.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 25165e4..0156bbd 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1398,30 +1398,29 @@ get_tex_level_param

Re: [Mesa-dev] [PATCH 17/18] anv/allocator: Allow state pools to allocate large states

2017-05-04 Thread Juan A. Suarez Romero
On Wed, 2017-04-26 at 07:35 -0700, Jason Ekstrand wrote: > Previously, the maximum size of a state that could be allocated from a > state pool was a block. However, this has caused us various issues > particularly with shaders which are potentially very large. We've also > hit issues with render

Re: [Mesa-dev] [PATCH 17.5/18] anv/allocator: Add support for large stream allocations

2017-05-04 Thread Juan A. Suarez Romero
Reviewed-by: Juan A. Suarez Romero On Wed, 2017-04-26 at 10:01 -0700, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_allocator.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/src/intel/vulkan/anv_allocator.c > b/src/intel/vulkan/anv_allocator.c > inde

Re: [Mesa-dev] [PATCH 00/18] anv: Rework the allocation data structures

2017-05-04 Thread Juan A. Suarez Romero
On Tue, 2017-05-02 at 06:44 -0700, Jason Ekstrand wrote: > Juan, > > Were you planning to review the rest of the series? Just wondering. > Sorry, it took a bit more to review the remaining patches. Now it is done. J.A. > --Jason > > > On April 26, 2017 7:35:29 AM Jason Ekstrand

Re: [Mesa-dev] [PATCH] anv: anv_gem_mmap() returns MAP_FAILED as mapping error

2017-05-04 Thread Samuel Iglesias Gonsálvez
On Wed, 2017-05-03 at 14:37 +0100, Emil Velikov wrote: > On 3 May 2017 at 14:26, Samuel Iglesias Gonsálvez om> wrote: > > On Wed, 2017-05-03 at 14:15 +0100, Emil Velikov wrote: > > > On 3 May 2017 at 12:33, Samuel Iglesias Gonsálvez > > ia.c > > > om> wrote: > > > > On Wed, 2017-05-03 at 11:50 +0

Re: [Mesa-dev] [PATCH] anv/allocator: Improve block pool growing asserts

2017-05-04 Thread Juan A. Suarez Romero
On Wed, 2017-05-03 at 09:44 -0700, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_allocator.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/src/intel/vulkan/anv_allocator.c > b/src/intel/vulkan/anv_allocator.c > index d7b86c8..40913ec 100644 > --- a/src

Re: [Mesa-dev] [PATCH v03 35/38] i965: Port gen4+ emit vertices code to genxml.

2017-05-04 Thread Pohjolainen, Topi
On Mon, May 01, 2017 at 06:43:23PM -0700, Rafael Antognolli wrote: > Some code that was placed in brw_draw_upload.c and exported to be used > by gen8+ was also moved to genX_state_upload, and the respective symbols > are not exported anymore. > > v2: >- Remove code from brw_draw_upload too >

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: fix the DCE pass in presence of loops

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 02:36 AM, Timothy Arceri wrote: This and the tgsi copy_propagation pass are very slow, I'd really like it if we both didn't require the pass for things to work and also didn't make it any slower. perf is showing these 2 passes at ~11% during Deus Ex start-up (cold cache). This

Re: [Mesa-dev] [PATCH v03 37/38] i965: Port gen6+ 3DSTATE_CC_STATE_POINTERS state to genxml.

2017-05-04 Thread Pohjolainen, Topi
On Mon, May 01, 2017 at 06:43:25PM -0700, Rafael Antognolli wrote: > Signed-off-by: Rafael Antognolli Reviewed-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/Makefile.sources| 1 +- > src/mesa/drivers/dri/i965/brw_state.h | 1 +- > src/mesa/drivers/dri/i965/gen6_cc.c

Re: [Mesa-dev] [PATCH v3 2/2] i965/vec4: load dvec3/4 uniforms first in the push constant buffer

2017-05-04 Thread Samuel Iglesias Gonsálvez
On Wed, 2017-05-03 at 16:47 -0700, Francisco Jerez wrote: > Samuel Iglesias Gonsálvez writes: > > > Reorder the uniforms to load first the dvec4-aligned variables > > in the push constant buffer and then push the vec4-aligned ones. > > > > This fixes a bug were the dvec3/4 might be loaded one pa

Re: [Mesa-dev] [PATCH v03 38/38] i965: Port gen4+ state emitting code to genxml.

2017-05-04 Thread Pohjolainen, Topi
On Mon, May 01, 2017 at 06:43:26PM -0700, Rafael Antognolli wrote: > On this patch, we port: >- brw_polygon_stipple >- brw_polygon_stipple_offset >- brw_line_stipple >- brw_drawing_rect > > v2: >- Also emit states for gen4-5 with this code. > v3: >- Style fixes and remove e

Re: [Mesa-dev] [RFC PATCH 00/17] Introducing SPIR-V support to clover

2017-05-04 Thread Pierre Moreau
> hopefully this[1] will eventually happen, which would make this less > of an issue :-) > > [1] http://lists.llvm.org/pipermail/llvm-dev/2017-May/112538.html Indeed! I have seen that thread and made sure to subscribe to the ML not to miss anything there. _

[Mesa-dev] [PATCH v2] st/glsl_to_tgsi: fix renumber_registers() in presence of dead code

2017-05-04 Thread Samuel Pitoiset
The TGSI DCE pass doesn't eliminate dead assignments like MOV TEMP[0], TEMP[1] in presence of loops because it assumes that the visitor doesn't emit dead code. This assumption is actually wrong and this situation happens. However, it appears that the merge_registers() pass accidentally takes care

[Mesa-dev] [PATCH v2 1/2] i965: Use helper function for modifier -> tiling

2017-05-04 Thread Daniel Stone
Use a helper function and struct to convert between a modifier and tiling mode, so we can use it later for a tiling -> modifier lookup. Signed-off-by: Daniel Stone Cc: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 49 +--- 1 file changed, 32 insertions(

[Mesa-dev] [PATCH v2 2/2] i965: Set modifier for imported and duplicated images

2017-05-04 Thread Daniel Stone
When a buffer is being created from FD or GEM flink import, the current API makes no provision for passing modifier information along with this. Set the modifier for such images to DRM_FORMAT_MOD_INVALID. Also preserve the modifier when duplicating an image, as will be done by GBM when importing f

[Mesa-dev] [PATCH 3/4] vulkan/wsi/wayland: Use per-display event queue

2017-05-04 Thread Daniel Stone
Calling random callbacks on the display's event queue is hostile, as we may call into client code when it least expects it. Create our own event queue, one per wsi_wl_display, and use that for the registry. Signed-off-by: Daniel Stone --- src/vulkan/wsi/wsi_common_wayland.c | 44

[Mesa-dev] [PATCH 2/4] vulkan/wsi/wayland: Remove roundtrip when creating image

2017-05-04 Thread Daniel Stone
There's no need to call wl_display_roundtrip() after trying to create a buffer through wl_drm; if it succeeds then everything is fine, and if it fails, then we get a fatal protocol error so can't recover anyway. Additionally, doing a roundtrip on the default / main application queue, is destructiv

[Mesa-dev] [PATCH 4/4] vulkan/wsi/wayland: Use proxy wrappers for swapchain

2017-05-04 Thread Daniel Stone
Though most swapchain operations used a queue, they were racy in that the object was created with the queue only set later, meaning that its event could potentially be dispatched from the default queue in between these two steps. Use proxy wrappers to avoid this race, also assigning wl_buffers cre

[Mesa-dev] [PATCH 1/4] vulkan: Fix Wayland uninitialised registry

2017-05-04 Thread Daniel Stone
Untangle the exit cleanup paths so we don't try to use the registry variable before it's been initialised. Signed-off-by: Daniel Stone --- src/vulkan/wsi/wsi_common_wayland.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/v

Re: [Mesa-dev] [PATCH v2 3/3] glsl: reject memory qualifiers with uniform blocks

2017-05-04 Thread Nicolai Hähnle
On 03.05.2017 18:37, Samuel Pitoiset wrote: The spec allows memory qualifiers to be used with image variables, buffers variables and shader storage blocks. This patch also fixes validate_memory_qualifier_for_type(). Fixes the following ARB_uniform_buffer_object test: uniform-block-memory-qualif

Re: [Mesa-dev] [PATCH v2] st/glsl_to_tgsi: fix renumber_registers() in presence of dead code

2017-05-04 Thread Nicolai Hähnle
On 04.05.2017 11:04, Samuel Pitoiset wrote: The TGSI DCE pass doesn't eliminate dead assignments like MOV TEMP[0], TEMP[1] in presence of loops because it assumes that the visitor doesn't emit dead code. This assumption is actually wrong and this situation happens. However, it appears that the m

Re: [Mesa-dev] [PATCH 16/17] st/mesa: upload zero-stride vertex attributes here

2017-05-04 Thread Nicolai Hähnle
On 04.05.2017 00:02, Marek Olšák wrote: On Wed, May 3, 2017 at 6:04 PM, Nicolai Hähnle wrote: On 01.05.2017 14:53, Marek Olšák wrote: From: Marek Olšák This is the best place to do it. Now drivers without u_vbuf don't have to do it. --- src/mesa/state_tracker/st_atom_array.c | 56 +

Re: [Mesa-dev] [PATCH v2 1/2] glx|egl: allow to test if glthread is safe enough on X11 platform

2017-05-04 Thread Emil Velikov
Hi Gregory, On 3 May 2017 at 17:34, Gregory Hainaut wrote: > I extended the struct __DRIbackgroundCallableExtensionRec because > the other function pointer is already related for glthread. > > DRI2/DRI3 glx code path check that display can be locked (basically > XInitThread was called) > How abou

[Mesa-dev] [PATCH] anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST, DEVICE}_MEMORY on error

2017-05-04 Thread Samuel Iglesias Gonsálvez
Fixes returned value changed by b546c9d. Fixes: b546c9d ("anv: anv_gem_mmap() returns MAP_FAILED as mapping error") Signed-off-by: Samuel Iglesias Gonsálvez Cc: "17.0 17.1" --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_

Re: [Mesa-dev] [PATCH v2 2/2] glthread/gallium: require safe_glthread to start glthread

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 17:34, Gregory Hainaut wrote: > Otherwise print a warning > s/print a warning/$something_bad_that_can_happen/ Print an error message for the user if the requirement is not met, or we're not thread safe. > v2: based on Nicolai feedback > Check the DRI extension version > > Signed

[Mesa-dev] [PATCH] mesa: return early with no error when shader source count is 0

2017-05-04 Thread Bartosz Tomczyk
malloc can return valid pointer for zero size allocation, which causes OOB access later on --- src/mesa/main/shaderapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index c41f006eb7..36cff0ca6e 100644 --- a/src/mesa/main/shaderapi.c

[Mesa-dev] [PATCH] strip double const from generated file

2017-05-04 Thread Marc Dietrich
In some cases gl_marshal.py generates entries with "const const" leading to a compiler warning. This strips the superfluous const from the type string. Signed-off-by: Marc Dietrich --- src/mapi/glapi/gen/gl_marshal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/g

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: fix the DCE pass in presence of loops

2017-05-04 Thread Timothy Arceri
On 04/05/17 18:22, Samuel Pitoiset wrot On 05/04/2017 02:36 AM, Timothy Arceri wrote: This and the tgsi copy_propagation pass are very slow, I'd really like it if we both didn't require the pass for things to work and also didn't make it any slower. perf is showing these 2 passes at ~11% durin

Re: [Mesa-dev] [PATCH] strip double const from generated file

2017-05-04 Thread Tapani Pälli
I filed a bug on this, my attempt caused some compilation warnings, see: https://bugs.freedesktop.org/show_bug.cgi?id=100227 On 05/04/2017 01:16 PM, Marc Dietrich wrote: In some cases gl_marshal.py generates entries with "const const" leading to a compiler warning. This strips the superfluous co

Re: [Mesa-dev] [PATCH 07/14] radeonsi: don't use util_memcpy_cpu_to_le32 for shader uploads

2017-05-04 Thread Nicolai Hähnle
On 28.04.2017 23:42, Marek Olšák wrote: From: Marek Olšák at least I think this is correct. Yes, LLVM does the endian conversion. Patches 1-7: Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-)

Re: [Mesa-dev] [PATCH 14/14] radeonsi/gfx9: allow the scratch buffer in HS and GS

2017-05-04 Thread Nicolai Hähnle
On 28.04.2017 23:42, Marek Olšák wrote: From: Marek Olšák It works now. Nice! Patches 8-14 are also: Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_shaders.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shade

Re: [Mesa-dev] [PATCH 1/1] radeonsi: Use libdrm to get chipset name

2017-05-04 Thread Nicolai Hähnle
On 03.05.2017 18:59, Li, Samuel wrote: Thanks for the comments. I was thinking probably marketing names only make sense for amdgpu, but I am OK to add a pointer to radeon_winsys. Will send a v2 later. We won't have marketing names when using radeon. The point is that the code still needs to

Re: [Mesa-dev] [PATCH] strip double const from generated file

2017-05-04 Thread Marc Dietrich
Am Donnerstag, 4. Mai 2017, 13:00:38 CEST schrieben Sie: > I filed a bug on this, my attempt caused some compilation warnings, see: > https://bugs.freedesktop.org/show_bug.cgi?id=100227 I don't see warnings with my patch. However, I also don't understand the origin of the problem ;-) Marc > >

Re: [Mesa-dev] [PATCH v3 07/32] glsl: do not make sampler/image types readonly variables

2017-05-04 Thread Nicolai Hähnle
Patches 3-7: Reviewed-by: Nicolai Hähnle On 02.05.2017 22:53, Samuel Pitoiset wrote: In plain GLSL, sampler and image types can only be declared uniform-qualified global variables or 'in' function parameters. Setting the read_only flag seems quite useless because other checks will prevent sam

Re: [Mesa-dev] [PATCH 1/3] egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 16:57, Adam Jackson wrote: > Signed-off-by: Adam Jackson Can we have some commit message? Feel free to copy the following. Introduce _egl_display::Options::Platforms for private storage. For X11 platforms we can use it for the screen number as set by EGL_PLATFORM_X11_SCREEN_EXT.

Re: [Mesa-dev] [PATCH 2/3] egl/platform/drm: Don't take display ownership until gbm is initialized

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 16:57, Adam Jackson wrote: > If the gbm_create_device() call here actually did fail, any subsequent > eglTerminate on the display would segfault. > We do have a couple of checks after we set own_device, although both are close to impossible to trigger. Cc: Reviewed-by: Emil Veli

Re: [Mesa-dev] [PATCH 1/3] egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 12:58, Emil Velikov wrote: > On 3 May 2017 at 16:57, Adam Jackson wrote: >> Signed-off-by: Adam Jackson > Can we have some commit message? Feel free to copy the following. > > Introduce _egl_display::Options::Platforms for private storage. > For X11 platforms we can use it for t

Re: [Mesa-dev] [PATCH 1/1] radeonsi: Use libdrm to get chipset name

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 12:12, Nicolai Hähnle wrote: > On 03.05.2017 18:59, Li, Samuel wrote: >> >> Thanks for the comments. I was thinking probably marketing names only make >> sense for amdgpu, but I am OK to add a pointer to radeon_winsys. Will send a >> v2 later. > > > We won't have marketing names w

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: fix the DCE pass in presence of loops

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 12:26 PM, Timothy Arceri wrote: On 04/05/17 18:22, Samuel Pitoiset wrot On 05/04/2017 02:36 AM, Timothy Arceri wrote: This and the tgsi copy_propagation pass are very slow, I'd really like it if we both didn't require the pass for things to work and also didn't make it any slow

Re: [Mesa-dev] [PATCH 4/4] vulkan/wsi/wayland: Use proxy wrappers for swapchain

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 10:33, Daniel Stone wrote: > Though most swapchain operations used a queue, they were racy in that > the object was created with the queue only set later, meaning that its > event could potentially be dispatched from the default queue in between > these two steps. > > Use proxy wr

Re: [Mesa-dev] [PATCH v3 12/32] glsl: allow bindless samplers/images inside interface blocks

2017-05-04 Thread Nicolai Hähnle
On 02.05.2017 22:53, Samuel Pitoiset wrote: From section 4.3.7 of the ARB_bindless_texture spec: "(remove the following bullet from the last list on p. 39, thereby permitting sampler types in interface blocks; image types are also permitted in blocks by this extension)" * sampler

Re: [Mesa-dev] [PATCH v2 1/2] i965: Use helper function for modifier -> tiling

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 10:14, Daniel Stone wrote: > Use a helper function and struct to convert between a modifier and > tiling mode, so we can use it later for a tiling -> modifier lookup. > I think that this patch leads to a functionality change. See below for more. If that's intentional please mentio

Re: [Mesa-dev] [PATCH v3 14/32] glsl: allow image qualifiers inside structures

2017-05-04 Thread Nicolai Hähnle
Patches 13 & 14: Reviewed-by: Nicolai Hähnle On 02.05.2017 22:53, Samuel Pitoiset wrote: ARB_bindless_texture allows to declare images inside structures which means that qualifiers like writeonly should be allowed. I have a got a confirmation from Jeff Bolz (one author of the spec), because

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: fix the DCE pass in presence of loops

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 02:13 PM, Samuel Pitoiset wrote: On 05/04/2017 12:26 PM, Timothy Arceri wrote: On 04/05/17 18:22, Samuel Pitoiset wrot On 05/04/2017 02:36 AM, Timothy Arceri wrote: This and the tgsi copy_propagation pass are very slow, I'd really like it if we both didn't require the pass fo

Re: [Mesa-dev] [PATCH v3 19/32] glsl: relax bindless sampler arrays indexing

2017-05-04 Thread Nicolai Hähnle
On 02.05.2017 22:53, Samuel Pitoiset wrote: From section 4.1.7 of the ARB_bindless_texture spec: "Samplers aggregated into arrays within a shader (using square brackets []) can be indexed with arbitrary integer expressions." v3: - update spec comment formatting Signed-off-by: Samuel Pit

Re: [Mesa-dev] [PATCH v3 22/32] glsl: allow bindless samplers/images to be l-values

2017-05-04 Thread Nicolai Hähnle
On 02.05.2017 22:53, Samuel Pitoiset wrote: From section 4.1.7 of the ARB_bindless_texture spec: "Samplers can be used as l-values, so can be assigned into and used as "out" and "inout" function parameters." From section 4.1.X of the ARB_bindless_texture spec: "Images can be used as l

Re: [Mesa-dev] [PATCH v3 28/32] glsl: lower bindless sampler/image packed varyings

2017-05-04 Thread Nicolai Hähnle
On 02.05.2017 22:53, Samuel Pitoiset wrote: v3: - rebase (and remove (sampler) ? 1 : vector_elements) Signed-off-by: Samuel Pitoiset Patches 27-28: Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/lower_packed_varyings.cpp | 14 ++ 1 file changed, 14 insertions(+) diff --g

Re: [Mesa-dev] [PATCH 3/3] egl/android: Mark surface as lost when dequeueBuffer fails

2017-05-04 Thread Emil Velikov
Hi Chad, On 4 May 2017 at 00:47, Chad Versace wrote: > From: Chad Versace > > This ensures that future calls to eglSwapBuffers and eglMakeCurrent emit > an error. > > This patch is part of a series for fixing > android.hardware.camera2.cts.RobustnessTest#testAbandonRepeatingRequestSurface > on C

Re: [Mesa-dev] [PATCH v3 31/32] glsl: teach lower_ubo_reference about samplers inside structures

2017-05-04 Thread Nicolai Hähnle
On 02.05.2017 22:53, Samuel Pitoiset wrote: In a situation like: (tex vec4 (record_ref (var_ref f) tex) (constant vec2 (0.00 0.00)) 0 1 () ) The sampler needs to be lowered, otherwise this ends up with "ir_dereference_variable @ 0x229a100 specifies undeclared variable `ubo_load_temp

[Mesa-dev] [Bug 100928] exported opengl function in generated dll was mangled when building with msvc 2015 Update 3

2017-05-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100928 Bug ID: 100928 Summary: exported opengl function in generated dll was mangled when building with msvc 2015 Update 3 Product: Mesa Version: 17.1 Hardware: x86 (IA32)

Re: [Mesa-dev] [PATCH v3 22/32] glsl: allow bindless samplers/images to be l-values

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 02:38 PM, Nicolai Hähnle wrote: On 02.05.2017 22:53, Samuel Pitoiset wrote: From section 4.1.7 of the ARB_bindless_texture spec: "Samplers can be used as l-values, so can be assigned into and used as "out" and "inout" function parameters." From section 4.1.X of the ARB_bi

Re: [Mesa-dev] [PATCH] anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST, DEVICE}_MEMORY on error

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 11:01, Samuel Iglesias Gonsálvez wrote: > Fixes returned value changed by b546c9d. > According to the spec we get VK_ERROR_OUT_OF_HOST_MEMORY or VK_ERROR_OUT_OF_DEVICE_MEMORY on vkBindImageMemory failure. I should have explicitly checked it closer :-\ > Fixes: b546c9d ("anv: anv_

Re: [Mesa-dev] [PATCH v3 31/32] glsl: teach lower_ubo_reference about samplers inside structures

2017-05-04 Thread Ilia Mirkin
On Thu, May 4, 2017 at 8:45 AM, Nicolai Hähnle wrote: > On 02.05.2017 22:53, Samuel Pitoiset wrote: >> >> In a situation like: >> >> (tex vec4 (record_ref (var_ref f) tex) (constant vec2 (0.00 >> 0.00)) 0 1 () ) >> >> The sampler needs to be lowered, otherwise this ends up with >> "ir_d

Re: [Mesa-dev] [PATCH v3 31/32] glsl: teach lower_ubo_reference about samplers inside structures

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 02:45 PM, Nicolai Hähnle wrote: On 02.05.2017 22:53, Samuel Pitoiset wrote: In a situation like: (tex vec4 (record_ref (var_ref f) tex) (constant vec2 (0.00 0.00)) 0 1 () ) The sampler needs to be lowered, otherwise this ends up with "ir_dereference_variable @ 0x22

[Mesa-dev] [Bug 100928] exported opengl function in generated dll was mangled when building with msvc 2015 Update 3

2017-05-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100928 --- Comment #1 from jon yang --- Im not sure if this could be resolved by using this #pragma comment(linker, "/EXPORT:" __FUNCTION__"=" __FUNCDNAME__) Quick google search found this someone answer http://stackoverflow.com/questions/2804893/c-dl

Re: [Mesa-dev] [PATCH] anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST, DEVICE}_MEMORY on error

2017-05-04 Thread Samuel Iglesias Gonsálvez
On Thu, 2017-05-04 at 14:03 +0100, Emil Velikov wrote: > On 4 May 2017 at 11:01, Samuel Iglesias Gonsálvez om> wrote: > > Fixes returned value changed by b546c9d. > > > > According to the spec we get VK_ERROR_OUT_OF_HOST_MEMORY or > VK_ERROR_OUT_OF_DEVICE_MEMORY on vkBindImageMemory failure. > I

[Mesa-dev] [PATCH] radeonsi: mark fast-cleared textures as compressed when dirtying

2017-05-04 Thread Nicolai Hähnle
From: Nicolai Hähnle There are a bunch of piglit fast clear tests that regressed on SI, for example ./bin/ext_framebuffer_multisample-fast-clear single-sample. The problem is that a texture is bound as a framebuffer, cleared, and then rendered from in a loop that loops through different clear co

Re: [Mesa-dev] [PATCH v3 31/32] glsl: teach lower_ubo_reference about samplers inside structures

2017-05-04 Thread Nicolai Hähnle
On 04.05.2017 15:06, Samuel Pitoiset wrote: On 05/04/2017 02:45 PM, Nicolai Hähnle wrote: On 02.05.2017 22:53, Samuel Pitoiset wrote: In a situation like: (tex vec4 (record_ref (var_ref f) tex) (constant vec2 (0.00 0.00)) 0 1 () ) The sampler needs to be lowered, otherwise this e

Re: [Mesa-dev] [PATCH 1/1] radeonsi: Use libdrm to get chipset name

2017-05-04 Thread Nicolai Hähnle
On 04.05.2017 14:08, Emil Velikov wrote: On 4 May 2017 at 12:12, Nicolai Hähnle wrote: On 03.05.2017 18:59, Li, Samuel wrote: Thanks for the comments. I was thinking probably marketing names only make sense for amdgpu, but I am OK to add a pointer to radeon_winsys. Will send a v2 later. We

Re: [Mesa-dev] [PATCH v3 31/32] glsl: teach lower_ubo_reference about samplers inside structures

2017-05-04 Thread Samuel Pitoiset
On 05/04/2017 03:25 PM, Nicolai Hähnle wrote: On 04.05.2017 15:06, Samuel Pitoiset wrote: On 05/04/2017 02:45 PM, Nicolai Hähnle wrote: On 02.05.2017 22:53, Samuel Pitoiset wrote: In a situation like: (tex vec4 (record_ref (var_ref f) tex) (constant vec2 (0.00 0.00)) 0 1 () )

[Mesa-dev] [PATCH kmscube 1/2] helper to check for egl entrypoints

2017-05-04 Thread Rob Clark
Remove some boilerplate and check more specifically for all the entry- points that different modules need. Signed-off-by: Rob Clark --- Ok, I guess it isn't likely for a driver to expose eglCreateImageKHR but not eglDeleteImageKHR.. but otoh kmscube is useful for bringing up drivers. common.h

[Mesa-dev] [PATCH kmscube 2/2] video: fencing to avoid passing frame back to decoder too early

2017-05-04 Thread Rob Clark
With atomic kms backend, userspace can get further ahead of the gpu. In the decoder, we unref the previous frame when retrieving the current frame. If userspace gets too far ahead, this can happen while the gpu is still sampling from the previous frame. Simple solution is add a fence. Signed-of

Re: [Mesa-dev] [PATCH v2 1/2] i965: Use helper function for modifier -> tiling

2017-05-04 Thread Daniel Stone
Hi Emil, On 4 May 2017 at 13:27, Emil Velikov wrote: >> @@ -581,21 +600,17 @@ intel_create_image_common(__DRIscreen *dri_screen, >> assert(!(use && count)); >> >> uint64_t modifier = select_best_modifier(&screen->devinfo, modifiers, >> count); >> - switch (modifier) { >> - case I915_

Re: [Mesa-dev] [PATCH 0/2] anv/i965: drop libdrm dependency completely

2017-05-04 Thread Daniel Vetter
On Thu, Apr 27, 2017 at 10:58:42AM -0700, Lionel Landwerlin wrote: > On 27/04/17 08:20, Eric Anholt wrote: > > Emil Velikov writes: > > > > > On 25 April 2017 at 23:56, Lionel Landwerlin > > > wrote: > > > > Hi, > > > > > > > > While working with changes that span from kernel to user space, I'v

Re: [Mesa-dev] [PATCH v2 1/2] i965: Use helper function for modifier -> tiling

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 14:43, Daniel Stone wrote: > Hi Emil, > > On 4 May 2017 at 13:27, Emil Velikov wrote: >>> @@ -581,21 +600,17 @@ intel_create_image_common(__DRIscreen *dri_screen, >>> assert(!(use && count)); >>> >>> uint64_t modifier = select_best_modifier(&screen->devinfo, modifiers, >

Re: [Mesa-dev] [PATCH 7/7] mesa: add KHR_no_error support for glUseProgram

2017-05-04 Thread Nicolai Hähnle
On 04.05.2017 05:34, Timothy Arceri wrote: On 04/05/17 13:31, Dave Airlie wrote: +/* The ARB_separate_shader_object spec says: + * + * "The executable code for an individual shader stage is taken from + * the current program for that stage. If there is a current program + * object

Re: [Mesa-dev] i965: Use isl for hiz and stencil

2017-05-04 Thread Pohjolainen, Topi
On Wed, May 03, 2017 at 05:07:32PM -0700, Rafael Antognolli wrote: > On Wed, May 03, 2017 at 12:22:13PM +0300, Topi Pohjolainen wrote: > > Patches 1-17 are revision that > > > > - rework hiz on gen6 to use on-demand offset calculator allowing > > one to drop dependency to miptree structure a

Re: [Mesa-dev] [PATCH 0/2] anv/i965: drop libdrm dependency completely

2017-05-04 Thread Emil Velikov
On 27 April 2017 at 16:20, Eric Anholt wrote: > Emil Velikov writes: > >> On 25 April 2017 at 23:56, Lionel Landwerlin >> wrote: >>> Hi, >>> >>> While working with changes that span from kernel to user space, I've >>> been wondering whether we need to depend on libdrm at all for the anv >>> & i9

Re: [Mesa-dev] [PATCH kmscube 1/2] helper to check for egl entrypoints

2017-05-04 Thread Eric Engestrom
On Thursday, 2017-05-04 09:39:15 -0400, Rob Clark wrote: > Remove some boilerplate and check more specifically for all the entry- > points that different modules need. > > Signed-off-by: Rob Clark > --- > Ok, I guess it isn't likely for a driver to expose eglCreateImageKHR > but not eglDeleteImag

Re: [Mesa-dev] [PATCH 17/18] anv/allocator: Allow state pools to allocate large states

2017-05-04 Thread Jason Ekstrand
On Thu, May 4, 2017 at 1:00 AM, Juan A. Suarez Romero wrote: > On Wed, 2017-04-26 at 07:35 -0700, Jason Ekstrand wrote: > > Previously, the maximum size of a state that could be allocated from a > > state pool was a block. However, this has caused us various issues > > particularly with shaders

Re: [Mesa-dev] [PATCH 0/2] anv/i965: drop libdrm dependency completely

2017-05-04 Thread Emil Velikov
On 4 May 2017 at 14:46, Daniel Vetter wrote: > On Thu, Apr 27, 2017 at 10:58:42AM -0700, Lionel Landwerlin wrote: >> On 27/04/17 08:20, Eric Anholt wrote: >> > Emil Velikov writes: >> > >> > > On 25 April 2017 at 23:56, Lionel Landwerlin >> > > wrote: >> > > > Hi, >> > > > >> > > > While working

Re: [Mesa-dev] [PATCH] anv/allocator: Improve block pool growing asserts

2017-05-04 Thread Jason Ekstrand
On Thu, May 4, 2017 at 1:17 AM, Juan A. Suarez Romero wrote: > On Wed, 2017-05-03 at 09:44 -0700, Jason Ekstrand wrote: > > --- > > src/intel/vulkan/anv_allocator.c | 11 +-- > > 1 file changed, 5 insertions(+), 6 deletions(-) > > > > diff --git a/src/intel/vulkan/anv_allocator.c b/src/i

[Mesa-dev] [Bug 100613] Regression in Mesa 17 on s390x (zSystems)

2017-05-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100613 --- Comment #21 from Ray Strode [halfline] --- Unless I'm misunderstanding something, I think this comment in u_format.h is the crux of the issue: * If each channel is accessed as an individual N-byte value, X is always• * at the lowest

[Mesa-dev] [PATCH 2/2] anv: document that anv_gem_mmap returns MAP_FAILED on error

2017-05-04 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/intel/vulkan/anv_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c index 185086fefcc..68c5e611342 100644 --- a/src/intel/vulkan/anv_gem.c +++ b/src/intel/vulkan

[Mesa-dev] [PATCH 1/2] anv: fix anv_gem_mmap comment to not mention NULL

2017-05-04 Thread Emil Velikov
From: Emil Velikov The function cannot return NULL, update the comment accordingly. Fixes: b546c9d ("anv: anv_gem_mmap() returns MAP_FAILED as mapping error") Cc: Samuel Iglesias Gonsálvez Signed-off-by: Emil Velikov --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [Mesa-dev] [PATCH v2 6/7] docs/releasing: added relevant people for build/check with Android

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 19:16, Andres Gomez wrote: > v2: Tapani as main contact and Mauro just for help with > debugging/building (Mauro). > > Signed-off-by: Andres Gomez > Cc: Emil Velikov > Cc: Tapani Pälli > Cc: Mauro Rossi > Acked-by: Tapani Pälli As long as the people mentioned are fine wi

Re: [Mesa-dev] [PATCH v2 02/14] Android: define required __STDC* macros as cflags

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 20:35, Rob Herring wrote: > From: Mauro Rossi > > Necessary to fix the following radeonsi building errors: > > In file included from external/mesa/src/gallium/drivers/radeonsi/si_blit.c:24: > In file included from external/mesa/src/gallium/drivers/radeonsi/si_pipe.h:29: > In file

[Mesa-dev] [PATCH 3/3] i965: Drop BRW_NEW_BLORP from 3DSTATE_VF atom.

2017-05-04 Thread Kenneth Graunke
BLORP doesn't program 3DSTATE_VF, since it doesn't use index buffers, making the setting irrelevant. So there's no need to re-emit it after a BLORP operation - the old setting will still be in place. --- src/mesa/drivers/dri/i965/genX_state_upload.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[Mesa-dev] [PATCH 1/3] mesa: Simplify _mesa_primitive_restart_index().

2017-05-04 Thread Kenneth Graunke
We can use a simple shift equation rather than a switch statement. --- src/mesa/main/varray.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index eda86ec6a82..9497090e88a 100644 --- a/src/mesa/main/varray.c +++ b/s

[Mesa-dev] [PATCH 2/3] i965: Port 3DSTATE_VF to genxml and simplify the implementation.

2017-05-04 Thread Kenneth Graunke
The whole "it might be used for non-indexed draws" thing is no longer true - it turns out this was a mistake, and removed in OpenGL 4.5. (See Marek's commit 96cbc1ca29e0b1f4f4d6c868b844aecb9080.) So we can simplify this and just program 0 for non-indexed draws. We can also use #if blocks to r

Re: [Mesa-dev] [PATCH v2 06/14] Android: Fix swrast only build

2017-05-04 Thread Emil Velikov
On 3 May 2017 at 20:35, Rob Herring wrote: > A build of only swrast is broken as the Android EGL now depends on > libdrm as does GBM. While we could make EGL conditionally depend on > libdrm, we probably want to enable kms_dri winsys as well and that will > need libdrm enabled. So just always enab

[Mesa-dev] [PATCH] mesa: stop glthread on exit

2017-05-04 Thread Bartosz Tomczyk
It fixes occasional crashes when app exits and glthread is still processing commands. --- src/mesa/main/context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 3570f94f5a..c3c4095329 100644 --- a/src/mesa/main/context.c +++ b/src/mes

  1   2   3   >