[Mesa-dev] [PATCH] mesa: fix *TextureSubImage*D() for GL_TEXTURE_CUBE_MAP target

2017-05-10 Thread Timothy Arceri
Noticed by inspection. The assert should have caught this already but seems to have been incorrectly removed in b8939fd3d1544f. --- I'm not overly familiar with this code but this seems to be how it's intended to be used. src/mesa/main/teximage.c | 10 ++ 1 file changed, 6 insertions(

Re: [Mesa-dev] [PATCH] mesa: use u_bit_scan() in update_program_texture_state()

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 03:01, Timothy Arceri wrote: I made this same change a while back but found I couldn't really measure any performance increase in practice. I suspect it's because we already limit the max loops with (1 << s) <= prog[i]->SamplersUsed and there is generally no big gaps in used samples

Re: [Mesa-dev] [PATCH 2/5] genxml: Add alias for MOCS.

2017-05-10 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/05/17 01:12, Rafael Antognolli wrote: Use an alias for this field on 3DSTATE_INDEX_BUFFER on gen6+, so we can set the same value as the defines. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen6.xml | 1 + src/intel/genxml/gen7.xml | 1 + sr

Re: [Mesa-dev] [PATCH 1/5] i965/genxml: Mostly style fixes for emit_vertices code.

2017-05-10 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/05/17 01:12, Rafael Antognolli wrote: Several issues were caught on review after the original patch landed. This commit fixes them. v2: - Fix padding (Topi) - Remove .DestinationElementOffset change from this patch (Topi) Signed-off-by: Rafael Anto

Re: [Mesa-dev] [PATCH 3/5] i965: Port brw_cs_state tracked state to genxml.

2017-05-10 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/05/17 01:12, Rafael Antognolli wrote: Emit the respective commands using genxml code. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 1 - src/mesa/drivers/dri/i965/gen7_cs_state.c | 162 ---

Re: [Mesa-dev] [PATCH 4/5] i965: Port 3DSTATE_INDEX_BUFFER to genxml.

2017-05-10 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/05/17 01:12, Rafael Antognolli wrote: Also make the brw_get_index_type() function not shift its return, since that is genxml's job now. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_context.h | 6 ++-- src/mesa/drivers/dri/i9

Re: [Mesa-dev] [PATCH 5/5] i965: Port 3DSTATE_VF_TOPOLOGY on gen8+ to genxml.

2017-05-10 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/05/17 01:12, Rafael Antognolli wrote: With this last state ported, we can get rid of gen8_draw_upload.c. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 - src/mesa/drivers/dri/i965/brw_state.h | 1 - sr

Re: [Mesa-dev] [PATCH] anv: Always set the reloc value to match the presumed_offset

2017-05-10 Thread Chris Wilson
On Fri, May 05, 2017 at 12:33:54PM -0700, Jason Ekstrand wrote: >On Fri, May 5, 2017 at 5:09 AM, Chris Wilson <[1]ch...@chris-wilson.co.uk> >wrote: > > It is a requirement, not just of using the NO_RELOC mode, that all > relocation values in the execobjects match their reloc.pres

[Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN >= r302589

2017-05-10 Thread Michel Dänzer
From: Michel Dänzer deregisterEHFrames doesn't take any parameters anymore. Signed-off-by: Michel Dänzer --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/galli

Re: [Mesa-dev] [PATCH 2/5] genxml: Add alias for MOCS.

2017-05-10 Thread Pohjolainen, Topi
On Tue, May 09, 2017 at 05:12:09PM -0700, Rafael Antognolli wrote: > Use an alias for this field on 3DSTATE_INDEX_BUFFER on gen6+, so we can set > the same value as the defines. > > Signed-off-by: Rafael Antognolli > --- > src/intel/genxml/gen6.xml | 1 + > src/intel/genxml/gen7.xml | 1 + > s

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: make sure resource file for samplers is PROGRAM_SAMPLER

2017-05-10 Thread Samuel Pitoiset
Ping? On 05/05/2017 03:36 PM, Samuel Pitoiset wrote: Similar to how image resources are handled. That way we are sure that inst->resource.file is PROGRAM_SAMPLER for "bound" samplers. Signed-off-by: Samuel Pitoiset --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 18 +- 1 fi

Re: [Mesa-dev] [PATCH] mesa: use u_bit_scan() in update_program_texture_state()

2017-05-10 Thread Samuel Pitoiset
On 05/10/2017 03:01 AM, Timothy Arceri wrote: I made this same change a while back but found I couldn't really measure any performance increase in practice. I suspect it's because we already limit the max loops with (1 << s) <= prog[i]->SamplersUsed and there is generally no big gaps in used s

[Mesa-dev] [PATCH] radeonsi: silent a compiler warning

2017-05-10 Thread Samuel Pitoiset
This fixes: si_shader.c: In function ‘si_shader_dump_stats’: si_shader.c:6704:31: warning: passing argument 1 of ‘si_get_max_workgroup_size’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] si_get_max_workgroup_size(shader); ^~ s

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

2017-05-10 Thread Emil Velikov
On 10 May 2017 at 00:10, Dave Airlie wrote: > On 6 May 2017 at 02:35, Daniel Stone wrote: >> Hi Emil, >> >> On 4 May 2017 at 15:14, Emil Velikov wrote: >>> On 4 May 2017 at 14:43, Daniel Stone wrote: IOW, there is no change as far as I can see, but perhaps for the meantime, we could u

Re: [Mesa-dev] [PATCH] renderonly: Initialize fields of struct winsys_handle.

2017-05-10 Thread Emil Velikov
On 9 May 2017 at 21:18, Christian Gmeiner wrote: > 2017-05-09 20:24 GMT+02:00 Eric Anholt : >> vc4 was rejecting renderonly's import, because the offset field was >> nonzero. > > Reviewed-by: Christian Gmeiner > Pretty sure we want this in -stable, right? Please add the following before pushing.

Re: [Mesa-dev] [PATCH] mesa: use u_bit_scan() in update_program_texture_state()

2017-05-10 Thread Timothy Arceri
On 10/05/17 20:06, Samuel Pitoiset wrote: On 05/10/2017 03:01 AM, Timothy Arceri wrote: I made this same change a while back but found I couldn't really measure any performance increase in practice. I suspect it's because we already limit the max loops with (1 << s) <= prog[i]->SamplersUsed and

Re: [Mesa-dev] [PATCH] mesa: use u_bit_scan() in update_program_texture_state()

2017-05-10 Thread Samuel Pitoiset
On 05/10/2017 12:30 PM, Timothy Arceri wrote: On 10/05/17 20:06, Samuel Pitoiset wrote: On 05/10/2017 03:01 AM, Timothy Arceri wrote: I made this same change a while back but found I couldn't really measure any performance increase in practice. I suspect it's because we already limit the max

[Mesa-dev] [Bug 98974] Can't see borders/empires in Stellaris

2017-05-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98974 William Bonnaventure changed: What|Removed |Added QA Contact|mesa-dev@lists.freedesktop. |dri-devel@lists.freedesktop

Re: [Mesa-dev] [PATCH 2/2] radeonsi: get rid of secondary input/output word

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 08:58, Axel Davy wrote: Hi Nicolai and Marek, Gallium nine associates to every d3d usage/index a generic unique index. That should fit on a 16bits integer, but not for 32 values. Hold on, you're saying the semantic index could be as high as 65535? I guess you're saved by the fa

Re: [Mesa-dev] [PATCH] st/glsl_to_tgsi: make sure resource file for samplers is PROGRAM_SAMPLER

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 12:04, Samuel Pitoiset wrote: Ping? On 05/05/2017 03:36 PM, Samuel Pitoiset wrote: Similar to how image resources are handled. That way we are sure that inst->resource.file is PROGRAM_SAMPLER for "bound" samplers. Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle

Re: [Mesa-dev] [PATCH] radeonsi: silent a compiler warning

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 12:20, Samuel Pitoiset wrote: This fixes: si_shader.c: In function ‘si_shader_dump_stats’: si_shader.c:6704:31: warning: passing argument 1 of ‘si_get_max_workgroup_size’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] si_get_max_workgroup_size(sh

Re: [Mesa-dev] [PATCH] mesa: fix *TextureSubImage*D() for GL_TEXTURE_CUBE_MAP target

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 09:23, Timothy Arceri wrote: Noticed by inspection. The assert should have caught this already but seems to have been incorrectly removed in b8939fd3d1544f. How on earth is there no piglit test that catches the texturesubimage thing? Do you think you can add one? --- I'm not

Re: [Mesa-dev] [PATCH] radeonsi: silent a compiler warning

2017-05-10 Thread Samuel Pitoiset
On 05/10/2017 01:45 PM, Nicolai Hähnle wrote: On 10.05.2017 12:20, Samuel Pitoiset wrote: This fixes: si_shader.c: In function ‘si_shader_dump_stats’: si_shader.c:6704:31: warning: passing argument 1 of ‘si_get_max_workgroup_size’ discards ‘const’ qualifier from pointer target type [-Wdisca

Re: [Mesa-dev] [PATCH 10/13] mesa: add KHR_no_error support for FramebufferTextureLayer

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 02:28, Eric Anholt wrote: Timothy Arceri writes: --- src/mapi/glapi/gen/ARB_framebuffer_object.xml | 2 +- src/mesa/main/fbobject.c | 31 +++ src/mesa/main/fbobject.h | 4 3 files changed, 36 insertions(+),

Re: [Mesa-dev] [PATCH 10/13] mesa: add KHR_no_error support for FramebufferTextureLayer

2017-05-10 Thread Timothy Arceri
On 10/05/17 22:00, Nicolai Hähnle wrote: On 10.05.2017 02:28, Eric Anholt wrote: Timothy Arceri writes: --- src/mapi/glapi/gen/ARB_framebuffer_object.xml | 2 +- src/mesa/main/fbobject.c | 31 +++ src/mesa/main/fbobject.h |

[Mesa-dev] [Bug 100988] glXGetCurrentDisplay() no longer works for FakeGLX contexts?

2017-05-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100988 Bug ID: 100988 Summary: glXGetCurrentDisplay() no longer works for FakeGLX contexts? Product: Mesa Version: 17.0 Hardware: Other OS: All Status

Re: [Mesa-dev] [PATCH] mesa: fix *TextureSubImage*D() for GL_TEXTURE_CUBE_MAP target

2017-05-10 Thread Fredrik Höglund
On Wednesday 10 May 2017, Nicolai Hähnle wrote: > On 10.05.2017 09:23, Timothy Arceri wrote: > > Noticed by inspection. The assert should have caught this already > > but seems to have been incorrectly removed in b8939fd3d1544f. > > How on earth is there no piglit test that catches the texturesubi

[Mesa-dev] [Bug 98833] [REGRESSION, bisected] Wayland revert commit breaks non-Vsync fullscreen frame updates

2017-05-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98833 --- Comment #16 from Eero Tamminen --- (In reply to Pekka Paalanen from comment #14) > Yes! I just installed Mesa git master and using Weston git master with your > delay patch, and it produces a mighty glitchy animation indeed. > > I am on "GL

Re: [Mesa-dev] radv patches for 17.1

2017-05-10 Thread Emil Velikov
On 10 May 2017 at 03:22, Dave Airlie wrote: > In order to pass CTS for 17.1 with llvm 4.0, radv needs some extra > patches cherry-picked. > > 09034aab64c7a6022a2c508658fead1442f08576 > 3c730639740f9b1243e95d06e6608cb54649be9a > a52470402515c46cd9f33a5d83dc8d2bc9f7bae9 > 83e58b036e1c34f26c99d04615d

Re: [Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN >= r302589

2017-05-10 Thread Kai Wasserbäch
Michel Dänzer wrote on 10.05.2017 10:27: > From: Michel Dänzer > > deregisterEHFrames doesn't take any parameters anymore. > > Signed-off-by: Michel Dänzer LGTM, CC stable? > --- > src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions

[Mesa-dev] [ANNOUNCE] mesa 17.1.0

2017-05-10 Thread Emil Velikov
Mesa 17.1.0 is now available. As always, there's dozens of notable changes and improvements, but the ones that stand out in this release are: - OpenGL 4.2 support for Intel Ivy Bridge chips. With this final piece the Intel i965 is on par (and even surpases) relative to the Windows, MacOS and And

Re: [Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN >= r302589

2017-05-10 Thread Vedran Miletić
On 05/10/2017 10:27 AM, Michel Dänzer wrote: > From: Michel Dänzer > > deregisterEHFrames doesn't take any parameters anymore. > > Signed-off-by: Michel Dänzer > --- > src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff -

Re: [Mesa-dev] [RFC] intel/isl: Rewrite gen7_choose_image_alignment_el

2017-05-10 Thread Emil Velikov
Hi Jason, Humble unrelated question. On 9 May 2017 at 18:00, Jason Ekstrand wrote: > + if (isl_surf_usage_is_depth(info->usage)) { > + if (info->format == ISL_FORMAT_R16_UNORM) { > + return isl_extent3d(8, 4, 1); > + } else { > + return isl_extent3d(4, 4, 1); > +

Re: [Mesa-dev] [RFC] intel/isl: Rewrite gen7_choose_image_alignment_el

2017-05-10 Thread Jason Ekstrand
On Wed, May 10, 2017 at 8:26 AM, Emil Velikov wrote: > Hi Jason, > > Humble unrelated question. > > On 9 May 2017 at 18:00, Jason Ekstrand wrote: > > > + if (isl_surf_usage_is_depth(info->usage)) { > > + if (info->format == ISL_FORMAT_R16_UNORM) { > > + return isl_extent3d(8, 4, 1

[Mesa-dev] [PATCH] radeonsi: add new vega10 pci ids

2017-05-10 Thread Alex Deucher
Cc: 17.1 Signed-off-by: Alex Deucher --- include/pci_ids/radeonsi_pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pci_ids/radeonsi_pci_ids.h b/include/pci_ids/radeonsi_pci_ids.h index 1058682..a20a936 100644 --- a/include/pci_ids/radeonsi_pci_ids.h +++ b/include/pci_ids/

[Mesa-dev] [PATCH] configure.ac: Fix help string for --disable-pwr8 configure option

2017-05-10 Thread Philipp Zabel
Signed-off-by: Philipp Zabel --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index df3eb6b29a..5c460f43d5 100644 --- a/configure.ac +++ b/configure.ac @@ -455,7 +455,7 @@ int main () { CFLAGS=$save_CFLAGS AC_ARG_ENABLE(pwr8, -

Re: [Mesa-dev] [PATCH 2/5] genxml: Add alias for MOCS.

2017-05-10 Thread Rafael Antognolli
On Wed, May 10, 2017 at 11:36:46AM +0300, Pohjolainen, Topi wrote: > On Tue, May 09, 2017 at 05:12:09PM -0700, Rafael Antognolli wrote: > > Use an alias for this field on 3DSTATE_INDEX_BUFFER on gen6+, so we can set > > the same value as the defines. > > > > Signed-off-by: Rafael Antognolli > > -

[Mesa-dev] [PATCH 4/5] etnaviv: clean up sampler view reference counting

2017-05-10 Thread Lucas Stach
Use the proper pipe_resource_reference function instead of rolling our own. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_texture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_texture.c b/src/gallium/drivers/

[Mesa-dev] [PATCH 2/5] etnaviv: allow R/B swapped surfaces to be cleared

2017-05-10 Thread Lucas Stach
Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_translate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_translate.h b/src/gallium/drivers/etnaviv/etnaviv_translate.h index d0623db1472d..e8466d63ff10 100644 --- a/src/gallium/drivers

[Mesa-dev] [PATCH 1/5] etnaviv: stop oversizing buffer resources

2017-05-10 Thread Lucas Stach
PIPE_BUFFER is a target enum, not a binding. This caused the driver to up-align the height of buffer resources, leading to largely oversizing those resources. This is especially bad, as the buffer resources used by the upload manager are already 1MB in size. Height alignment meant that those would

[Mesa-dev] [PATCH 3/5] etnaviv: apply feature overrides in one central location

2017-05-10 Thread Lucas Stach
This way we can just test the feature bits and don't need to spread the debug overrides to all locations touching a feature. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 6 ++ src/gallium/drivers/etnaviv/etnaviv_resource.c | 2 +- src/gallium/drivers/

[Mesa-dev] [PATCH 5/5] etnaviv: increment the resource seqno in resource_changed

2017-05-10 Thread Lucas Stach
From: Philipp Zabel Just increment the resource seqno instead of setting the texture seqno to be lower by one than the resource seqno. Signed-off-by: Philipp Zabel Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_resource.c | 6 +- 1 file changed, 1 insertion(+), 5 delet

Re: [Mesa-dev] [PATCH 10/13] mesa: add KHR_no_error support for FramebufferTextureLayer

2017-05-10 Thread Eric Anholt
Timothy Arceri writes: > On 10/05/17 22:00, Nicolai Hähnle wrote: >> On 10.05.2017 02:28, Eric Anholt wrote: >>> Timothy Arceri writes: >>> --- src/mapi/glapi/gen/ARB_framebuffer_object.xml | 2 +- src/mesa/main/fbobject.c | 31

Re: [Mesa-dev] [RFC] intel/isl: Rewrite gen7_choose_image_alignment_el

2017-05-10 Thread Emil Velikov
On 10 May 2017 at 16:38, Jason Ekstrand wrote: > On Wed, May 10, 2017 at 8:26 AM, Emil Velikov > wrote: >> >> Hi Jason, >> >> Humble unrelated question. >> >> On 9 May 2017 at 18:00, Jason Ekstrand wrote: >> >> > + if (isl_surf_usage_is_depth(info->usage)) { >> > + if (info->format == ISL

[Mesa-dev] [AppVeyor] mesa master #4325 failed

2017-05-10 Thread AppVeyor
Build mesa 4325 failed Commit c334c7dd75 by Marek Olšák on 4/9/2017 11:17 AM: st/mesa: don't call util_draw_init_info in st_draw_vbo Configure your notification preferences ___ mesa-dev mailing list mesa-de

[Mesa-dev] [PATCH 0/5] radeonsi: remove the input/output secondary bitfields

2017-05-10 Thread Nicolai Hähnle
Hi all, So when I sent a previous patch for this, I learned that because of how D3D9 works, Nine apparently potentially uses generic shader inputs/outputs with very high indices. Despite this, merging the bitfields should work out okay. It reduces the number of generics that we track via outputs_

[Mesa-dev] [PATCH 1/5] radeonsi: use SI_MAX_IO_GENERIC instead of magic values

2017-05-10 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c| 2 +- src/gallium/drivers/radeonsi/si_shader.h| 5 + src/gallium/drivers/radeonsi/si_state_shaders.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_sha

[Mesa-dev] [PATCH 2/5] radeonsi: skip generic out/in indices without a shader IO index

2017-05-10 Thread Nicolai Hähnle
From: Nicolai Hähnle OpenGL uses at most 32 generic outputs/inputs in any stage, and they always have a shader IO index and therefore fit into the outputs_written/ inputs_read/kill_outputs fields. However, Nine uses semantic indices more liberally. We support that in VS-PS pipelines, except that

[Mesa-dev] [PATCH 4/5] radeonsi: reduce the number of generics for shader IO unique indices

2017-05-10 Thread Nicolai Hähnle
From: Nicolai Hähnle This is a high as possible while still allowing to merge the bitfields with the next commit. For OpenGL, 32 would be sufficient. Nine apparently uses (much!) higher indices than. Indices that are out of bound don't hurt for VS-PS pipelines, except that the VS output kill opt

[Mesa-dev] [PATCH 5/5] radeonsi: get rid of secondary input/output word

2017-05-10 Thread Nicolai Hähnle
From: Nicolai Hähnle By keeping track of fewer generics, everything can fit into 64 bits. --- src/gallium/drivers/radeonsi/si_shader.c| 32 +++-- src/gallium/drivers/radeonsi/si_shader.h| 6 + src/gallium/drivers/radeonsi/si_state_shaders.c | 22 +++--

[Mesa-dev] [PATCH 3/5] radeonsi: at most 8 sets of texture coordinates are supported

2017-05-10 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 9829286..c12c8ea 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/galliu

Re: [Mesa-dev] [PATCH] radeonsi: add new vega10 pci ids

2017-05-10 Thread Nicolai Hähnle
On 10.05.2017 17:42, Alex Deucher wrote: Cc: 17.1 Signed-off-by: Alex Deucher Reviewed-by: Nicolai Hähnle --- include/pci_ids/radeonsi_pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pci_ids/radeonsi_pci_ids.h b/include/pci_ids/radeonsi_pci_ids.h index 1058682..a2

[Mesa-dev] [PATCH v3 02/15] dri: Add an image creation with modifiers

2017-05-10 Thread Varad Gautam
From: Ben Widawsky Modifiers will be obtained or guessed by the client and passed in during image creation/import. As of this patch, the modifiers aren't plumbed all the way down, this patch simply makes sure the interface level stuff is correct and keeps interface versioning consistent. v2: Do

[Mesa-dev] [PATCH v3 04/15] egl/main: add support for fourth plane tokens

2017-05-10 Thread Varad Gautam
From: Pekka Paalanen The EGL_EXT_dma_buf_import_modifiers extension adds support for a fourth plane, just like DRM KMS API does. Bump maximum dma_buf plane count to four. v2: prevent attribute tokens from being parsed if EXT_image_dma_buf_import_modifiers is not suported. (Emil Velikov) Si

[Mesa-dev] [PATCH v3 06/15] dri: support DRIimage creation from dmabufs with modifiers

2017-05-10 Thread Varad Gautam
From: Pekka Paalanen add createImageFromDmaBufs2 function which accepts per-plane dmabuf format modifiers. Signed-off-by: Pekka Paalanen Signed-off-by: Varad Gautam --- include/GL/internal/dri_interface.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH v3 01/15] st/dri: refactor multi-planar YUV import path

2017-05-10 Thread Varad Gautam
From: Varad Gautam we currently ignore the plane count when converting from __DRI_IMAGE_FORMAT* tokens to __DRI_IMAGE_FOURCC* for multiplanar images, and only return the first plane's simplified fourcc. this adds a fourcc to __DRI_IMAGE_FORMAT_* mapping to dri, allowing us to return the correct

[Mesa-dev] [PATCH v3 05/15] st/dri: enable DRIimage modifier queries

2017-05-10 Thread Varad Gautam
From: Varad Gautam introduce modifier field in DRIimage and set it to DRM_FORMAT_MOD_INVALID for now. support DRIimage modifier queries. Suggested-by: Daniel Stone Signed-off-by: Varad Gautam --- src/gallium/state_trackers/dri/dri2.c | 15 +++ src/gallium/state_trackers/dri/

[Mesa-dev] [PATCH v3 07/15] st/dri: implement DRIimage creation from dmabufs with modifiers

2017-05-10 Thread Varad Gautam
From: Varad Gautam support importing dmabufs into DRIimage while taking format modifiers in account, as per DRIimage extension version 15. bump __DRIimageExtension to 15. v2: initialize winsys modifier to DRM_FORMAT_MOD_INVALID (Daniel Stone) Signed-off-by: Varad Gautam --- src/gallium/inclu

[Mesa-dev] [PATCH v3 00/15] EGL_EXT_image_dma_buf_import_modifiers v3

2017-05-10 Thread Varad Gautam
One more time, from the top! Hi all, The v3 diverges somewhat form v2 while building upon the suggestions received on earlier patchsets, and hence warrants a resend. Here's a breakdown of patches in this series, and the changes since v2. 01 slightly reworks the multi-plane YUV import path in st/

[Mesa-dev] [PATCH v3 08/15] egl_dri2: add support for using modifier attributes in eglCreateImageKHR

2017-05-10 Thread Varad Gautam
From: Varad Gautam allow creating EGLImages with dmabuf format modifiers when target is EGL_LINUX_DMA_BUF_EXT for EGL_EXT_image_dma_buf_import_modifiers. v2: - clear modifier assembling and error label name (Eric Engestrom) v3: - remove goto jumps within switch-case (Emil Velikov) - treat zer

[Mesa-dev] [PATCH v3 03/15] egl: introduce DMA_BUF_MAX_PLANES

2017-05-10 Thread Varad Gautam
From: Pekka Paalanen Rather than hardcoding 3, use a #define. Makes it easier to bump this later to 4. Signed-off-by: Pekka Paalanen Signed-off-by: Varad Gautam Reviewed-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 8 src/egl/main/eglimage.h | 8 +--- 2 files

[Mesa-dev] [PATCH v3 09/15] dri: add queryDmaBufFormats and queryDmaBufModifiers to DRIimage

2017-05-10 Thread Varad Gautam
From: Varad Gautam these allow querying the driver for supported dmabuf formats and modifiers. v2: move to __DRIimageExtension version 16. v3: return GLBoolean for error reporting, document params better. Signed-off-by: Varad Gautam --- include/GL/internal/dri_interface.h | 42 +++

[Mesa-dev] [PATCH v3 10/15] st/dri: support format queries

2017-05-10 Thread Varad Gautam
From: Varad Gautam ask the driver for supported dmabuf formats v2: rebase to master. v3: return false on failure. v4: use pscreen->is_format_supported instead of adding a new query. (Lucas Stach) Signed-off-by: Varad Gautam --- src/gallium/state_trackers/dri/dri2.c | 91 +++

[Mesa-dev] [PATCH v3 11/15] egl: implement eglQueryDmaBufFormatsEXT

2017-05-10 Thread Varad Gautam
From: Varad Gautam allow egl clients to query the dmabuf formats supported on this platform. v2: rebase to master. v3: return EGL_FALSE upon failure. Signed-off-by: Louis-Francis Ratté-Boulianne Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 18 ++ src/egl/

[Mesa-dev] [PATCH v3 13/15] st/dri: support format modifier queries

2017-05-10 Thread Varad Gautam
From: Varad Gautam ask the driver for supported modifiers for a given format. bump __DRIimageExtension to 16. v2: move to __DRIimageExtension v16. v3: fail if the supplied format is not supported by driver. v4: purge PIPE_CAP_QUERY_DMABUF_ATTRIBS. Signed-off-by: Varad Gautam --- src/gallium/s

[Mesa-dev] [PATCH v3 14/15] egl: implement eglQueryDmaBufModifiersEXT

2017-05-10 Thread Varad Gautam
From: Varad Gautam query and return supported dmabuf format modifiers for EGL_EXT_image_dma_buf_import_modifiers. v2: rebase to master. v3: move format check to the driver instead of making format queries from here and then checking. Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/eg

[Mesa-dev] [PATCH v3 12/15] gallium: introduce format modifier querying

2017-05-10 Thread Varad Gautam
From: Varad Gautam format modifiers tokens are driver specific, and hence, need to come in from the driver. this allows drivers to be queried for supported format modifiers for EGL_EXT_image_dma_buf_import_modifiers. v2: rebase to master. v3: drivers must return false on query failure. v4: use p

[Mesa-dev] [PATCH v3 15/15] egl: advertise EGL_EXT_image_dma_buf_import_modifiers

2017-05-10 Thread Varad Gautam
From: Varad Gautam Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 6 ++ src/egl/main/eglapi.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 7f0edf6..853b6e5 100644 --- a/src/egl/driv

[Mesa-dev] [PATCH] gallium/tests: fix build after index buffer changes

2017-05-10 Thread Marek Olšák
From: Marek Olšák for some reason, only scons can build these. --- src/gallium/tests/graw/fs-fragcoord.c| 2 +- src/gallium/tests/graw/fs-frontface.c| 2 +- src/gallium/tests/graw/fs-test.c | 2 +- src/gallium/tests/graw/fs-write-z.c | 2 +- src/gallium/tests/graw/gs-tes

Re: [Mesa-dev] [PATCH 1/5] etnaviv: stop oversizing buffer resources

2017-05-10 Thread Wladimir J. van der Laan
Good catch! Reviewed-By: Wladimir J. van der Laan On Wed, May 10, 2017 at 06:01:04PM +0200, Lucas Stach wrote: > PIPE_BUFFER is a target enum, not a binding. This caused the driver to > up-align the height of buffer resources, leading to largely oversizing > those resources. This is especially b

Re: [Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN >= r302589

2017-05-10 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, May 10, 2017 at 10:27 AM, Michel Dänzer wrote: > From: Michel Dänzer > > deregisterEHFrames doesn't take any parameters anymore. > > Signed-off-by: Michel Dänzer > --- > src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +--- > 1 file changed,

Re: [Mesa-dev] [PATCH 13/22] blorp/clear: Add a binding-table-based CCS resolve function

2017-05-10 Thread Nanley Chery
On Tue, May 02, 2017 at 05:01:23PM -0700, Jason Ekstrand wrote: > On Thu, Apr 27, 2017 at 11:32 AM, Nanley Chery > wrote: > > > Signed-off-by: Nanley Chery > > --- > > src/intel/blorp/blorp.h | 9 ++ > > src/intel/blorp/blorp_clear.c | 64 ++ > > ++

Re: [Mesa-dev] [PATCH 3/5] etnaviv: apply feature overrides in one central location

2017-05-10 Thread Wladimir J. van der Laan
Yes, good idea to do this in one place. Reviewed-By: Wladimir J. van der Laan On Wed, May 10, 2017 at 06:01:06PM +0200, Lucas Stach wrote: > This way we can just test the feature bits and don't need to spread > the debug overrides to all locations touching a feature. > > Signed-off-by: Lucas St

Re: [Mesa-dev] [PATCH 15/22] anv/cmd_buffer: Adjust the image view reloc function

2017-05-10 Thread Nanley Chery
On Tue, May 02, 2017 at 05:15:46PM -0700, Jason Ekstrand wrote: > On Thu, Apr 27, 2017 at 11:32 AM, Nanley Chery > wrote: > > > Make the function take in an image instead of an image view. This > > enables us to record relocations for surfaces states created outside of > > the anv_CreateImageView

Re: [Mesa-dev] [RFC] intel/isl: Rewrite gen7_choose_image_alignment_el

2017-05-10 Thread Pohjolainen, Topi
On Tue, May 09, 2017 at 10:00:34AM -0700, Jason Ekstrand wrote: > The Ivy Bridge PRM provides a nice table that handles most of the > alignment cases in one place. For standard color buffers we have a > little freedom of choice but for most depth, stencil and compressed it's > hard-coded. Chad's

Re: [Mesa-dev] [PATCH 5/5] etnaviv: increment the resource seqno in resource_changed

2017-05-10 Thread Wladimir J. van der Laan
Seems more straightforward, but I don't know the rationale why it was done the way it was. Reviewed-By: Wladimir J. van der Laan On Wed, May 10, 2017 at 06:01:08PM +0200, Lucas Stach wrote: > From: Philipp Zabel > > Just increment the resource seqno instead of setting the texture > seqno to

[Mesa-dev] [PATCH 2/2] radeonsi/gfx9: add support for Raven

2017-05-10 Thread Marek Olšák
From: Marek Olšák Cc: 17.1 Reviewed-by: Alex Deucher Reviewed-by: Nicolai Hähnle --- include/pci_ids/radeonsi_pci_ids.h| 2 ++ src/amd/common/amd_family.h | 1 + src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++ src/gallium/drivers/radeonsi/si_pipe.c|

[Mesa-dev] [PATCH 1/2] amd/addrlib: import Raven support

2017-05-10 Thread Marek Olšák
From: Marek Olšák Cc: 17.1 Reviewed-by: Alex Deucher Reviewed-by: Nicolai Hähnle --- src/amd/addrlib/gfx9/gfx9addrlib.cpp | 57 src/amd/addrlib/gfx9/gfx9addrlib.h | 8 +++-- src/amd/common/amdgpu_id.h | 10 +++ 3 files changed, 72 insertio

Re: [Mesa-dev] [PATCH 16/22] anv/cmd_buffer: Add transition_color_buffer()

2017-05-10 Thread Nanley Chery
On Wed, May 03, 2017 at 02:24:19PM -0700, Jason Ekstrand wrote: > On Thu, Apr 27, 2017 at 11:32 AM, Nanley Chery > wrote: > > > Signed-off-by: Nanley Chery > > --- > > src/intel/vulkan/genX_cmd_buffer.c | 93 ++ > > > > 1 file changed, 93 insertions(+) > > >

[Mesa-dev] [PATCH 5/6] i965: Use brw_get_line_width() in Gen4-5 SF_STATE code.

2017-05-10 Thread Kenneth Graunke
This unifies the Gen4-5 and Gen6+ line width calculations. I believe it also fixes a bug - we weren't rounding the line width to the nearest integer. The GL 4.5 (and GL 2.1) specs "Wide Lines" section says: "The actual width of non-antialiased lines is determined by rounding the supplied width

[Mesa-dev] [PATCH 2/6] i965: When gl_PointSize is unwritten, default to 1.0 on Gen4-5.

2017-05-10 Thread Kenneth Graunke
Modern GL specifications say that the point size should be 1.0 when gl_PointSize is unwritten and the last enabled stage is a geometry or tessellation shader. If it's a vertex shader, though, both the GL specs and ES 3.0 spec say that it's undefined - so since Gen4-5 only support vertex shaders, t

[Mesa-dev] [PATCH 3/6] i965: Stop using BRW_RASTRULE_LOWER_RIGHT on Gen4-5.

2017-05-10 Thread Kenneth Graunke
This effectively reverts Robert Ellison's 2009 commit cc8afbd3862fedfe42e51c3774960d1c7078ec53. I'm not seeing any GL spec text indicating that UPPER won't work. On Gen6+, this bit moved to 3DSTATE_WM as a single bit, controlling UPPER_LEFT vs. UPPER_RIGHT. There is no way to request LOWER_RIGHT,

[Mesa-dev] [PATCH 6/6] i965: Use a line end cap width of 0.5 unless smooth lines enabled.

2017-05-10 Thread Kenneth Graunke
This updates the Gen4-5 code to use a line end cap width of 0.5 for non-smooth lines, and 1.0 for smooth lines - which is what we do on Gen6+. --- src/mesa/drivers/dri/i965/brw_sf_state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_sf_stat

[Mesa-dev] [PATCH 1/6] i965: Make Gen4-5 SF_STATE use the point size calculations from Gen6+.

2017-05-10 Thread Kenneth Graunke
Apparently, Nanhai made the Gen4-5 point size calculations round to the nearest integer in commit 8d5231a3582e4f2769ac0685cf0174e09750700e, "according to spec". When Eric first ported the driver to Sandybridge, he did not implement this rounding. In the GL 2.1 and 3.0 specs "Basic Point Rasteriza

[Mesa-dev] [PATCH 4/6] genxml: Fix Gen4-5 SF_STATE "Line Width" fixed point type.

2017-05-10 Thread Kenneth Graunke
It's a U3.1. It became a U3.7 on Sandybridge. --- src/intel/genxml/gen4.xml | 2 +- src/intel/genxml/gen45.xml | 2 +- src/intel/genxml/gen5.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/genxml/gen4.xml b/src/intel/genxml/gen4.xml index d3a2f9264e1..f4d588

[Mesa-dev] [AppVeyor] mesa master #4329 failed

2017-05-10 Thread AppVeyor
Build mesa 4329 failed Commit 0f34b674ed by Kenneth Graunke on 5/8/2017 5:50 AM: i965: Switch BRW_NEW_CURBE_OFFSETS to BRW_NEW_PUSH_CONSTANT_ALLOCATION.\n\nThe BRW_NEW_CURBE_OFFSETS dirty bit is signalled when changing the\npartitioning of the Constant Buffer U

[Mesa-dev] [PATCH] i965: Drop brw_context::viewport_transform_enable.

2017-05-10 Thread Kenneth Graunke
This was used by the meta fast clear code. Now that we've switched back to BLORP, it's always true. We might want it back when we add a RECTLIST extension to GL, but that's someday in the future... --- src/mesa/drivers/dri/i965/brw_context.c | 1 - src/mesa/drivers/dri/i965/brw_context.h

Re: [Mesa-dev] [PATCH] i965: Drop brw_context::viewport_transform_enable.

2017-05-10 Thread Kristian Høgsberg
Reviewed-by: Kristian H. Kristensen On Wed, May 10, 2017 at 12:01 PM, Kenneth Graunke wrote: > This was used by the meta fast clear code. Now that we've switched > back to BLORP, it's always true. > > We might want it back when we add a RECTLIST extension to GL, but > that's someday in the futu

[Mesa-dev] [Bug 100201] Windows scons build with MSVC toolchain and LLVM 4.0 fails

2017-05-10 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100201 Anonymous Helper changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH 1/2] amd/addrlib: import Raven support

2017-05-10 Thread Nils Wallménius
Hi Marek, A comment below Den 10 maj 2017 20:29 skrev "Marek Olšák" : From: Marek Olšák Cc: 17.1 Reviewed-by: Alex Deucher Reviewed-by: Nicolai Hähnle --- src/amd/addrlib/gfx9/gfx9addrlib.cpp | 57 ++ ++ src/amd/addrlib/gfx9/gfx9addrlib.h | 8 +++-- src/a

Re: [Mesa-dev] [PATCH 16/22] anv/cmd_buffer: Add transition_color_buffer()

2017-05-10 Thread Jason Ekstrand
On Wed, May 10, 2017 at 11:30 AM, Nanley Chery wrote: > On Wed, May 03, 2017 at 02:24:19PM -0700, Jason Ekstrand wrote: > > On Thu, Apr 27, 2017 at 11:32 AM, Nanley Chery > > wrote: > > > > > Signed-off-by: Nanley Chery > > > --- > > > src/intel/vulkan/genX_cmd_buffer.c | 93 >

[Mesa-dev] [PATCH 1/3] genxml: Fix KSPs on Ironlake to be offsets, not pointers.

2017-05-10 Thread Kenneth Graunke
We use Instruction State Base Address on Ironlake, so we want KSP to be an offset not an actual pointer. Gen4/G45 use pointers. --- src/intel/genxml/gen5.xml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml

[Mesa-dev] [PATCH 2/3] i965: Change GEN_GEN < 7 to GEN_GEN == 6 in 3DSTATE_VS code.

2017-05-10 Thread Kenneth Graunke
This whole code is surrounded in #if GEN_GEN >= 6, and this code only applies on Sandybridge. So, use GEN_GEN == 6 to reduce the delta in the next patch, when we add Gen4-5 support. --- src/mesa/drivers/dri/i965/genX_state_upload.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) d

[Mesa-dev] [PATCH 3/3] i965: Port Gen4-5 VS_STATE to genxml.

2017-05-10 Thread Kenneth Graunke
It's actually not that much code. --- src/intel/genxml/gen4.xml | 2 +- src/intel/genxml/gen45.xml| 2 +- src/intel/genxml/gen5.xml | 2 +- src/mesa/drivers/dri/i965/Makefile.sources| 1 - src/mesa/drivers/dri/i965/brw_vs_stat

Re: [Mesa-dev] [PATCH 4/5] etnaviv: clean up sampler view reference counting

2017-05-10 Thread Christian Gmeiner
Hi Lucas, 2017-05-10 18:01 GMT+02:00 Lucas Stach : > Use the proper pipe_resource_reference function instead of > rolling our own. Would it make sense to convert all gallium drivers using this pattern? greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://soundclou

Re: [Mesa-dev] [PATCH 1/2] amd/addrlib: import Raven support

2017-05-10 Thread Marek Olšák
On Wed, May 10, 2017 at 9:36 PM, Nils Wallménius wrote: > Hi Marek, > > A comment below > > Den 10 maj 2017 20:29 skrev "Marek Olšák" : > > From: Marek Olšák > > Cc: 17.1 > Reviewed-by: Alex Deucher > Reviewed-by: Nicolai Hähnle > --- > src/amd/addrlib/gfx9/gfx9addrlib.cpp | 57 >

Re: [Mesa-dev] [PATCH 1/3] genxml: Fix KSPs on Ironlake to be offsets, not pointers.

2017-05-10 Thread Jason Ekstrand
You can always use a NULL BO but this is fine too. Reviewed-by: Jason Ekstrand On Wed, May 10, 2017 at 12:41 PM, Kenneth Graunke wrote: > We use Instruction State Base Address on Ironlake, so we want KSP to be > an offset not an actual pointer. Gen4/G45 use pointers. > --- > src/intel/genxml

[Mesa-dev] [PATCH 08/17] radeon/vcn: add decode message decode for avc codec

2017-05-10 Thread Leo Liu
Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 197 +++- 1 file changed, 193 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index

[Mesa-dev] [PATCH 12/17] radeon/vcn: add decode message for mpeg4 codec

2017-05-10 Thread Leo Liu
Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 51 + 1 file changed, 51 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index 0323114..82dfa71

[Mesa-dev] [PATCH 15/17] amdgpu/winsys: set vcn dec as hw decode as well

2017-05-10 Thread Leo Liu
Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 3e92fff..97804e1 100644

  1   2   >