[Mesa-dev] Add interpolateAt builtin support to the radeonsi nir backend

2018-01-14 Thread Timothy Arceri
This series is intended to be applied on top of the previous serires that ebales glsl 450 starting with: [PATCH 1/5] ac/radeonsi: add tcs load outputs support ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH 4/8] radeonsi/nir: add si_nir_load_sample_position() helper

2018-01-14 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 8e91a45455..a04b01eb79 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++

[Mesa-dev] [PATCH 6/8] ac/radeonsi: add lookup_interp_param and load_sample_position to the abi

2018-01-14 Thread Timothy Arceri
The will enable the interpolateAt builtins to work on the radeonsi nir backend. --- src/amd/common/ac_nir_to_llvm.c | 64 +--- src/amd/common/ac_shader_abi.h | 7 src/gallium/drivers/radeonsi/si_shader.c | 2 + 3 files changed, 44

[Mesa-dev] [PATCH 3/8] radeonsi/nir: add si_nir_lookup_interp_param() helper

2018-01-14 Thread Timothy Arceri
--- src/amd/common/ac_nir_to_llvm.c | 4 --- src/amd/common/ac_nir_to_llvm.h | 5 src/amd/common/ac_shader_abi.h| 2 ++ src/gallium/drivers/radeonsi/si_shader_internal.h | 4 +++ src/gallium/drivers/radeonsi/si_shader_nir.c |

[Mesa-dev] [PATCH 1/8] radeonsi/nir: add interpolate at intrinsics to scan_instruction()

2018-01-14 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader_nir.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 20b3beccc4..fcc857f838 100644 ---

[Mesa-dev] [PATCH 7/8] radeonsi/nir: add input support for arrays that have not been copied to temps and split

2018-01-14 Thread Timothy Arceri
We need this to be able to support the interpolateAt builtins in a sane way. It also leads to the generation of more optimal code. --- src/gallium/drivers/radeonsi/si_shader_nir.c | 146 +++ 1 file changed, 81 insertions(+), 65 deletions(-) diff --git

[Mesa-dev] [PATCH 5/8] radeonsi/nir: add prim_mask to the abi

2018-01-14 Thread Timothy Arceri
--- src/amd/common/ac_nir_to_llvm.c | 11 +-- src/amd/common/ac_shader_abi.h | 1 + src/gallium/drivers/radeonsi/si_shader.c | 7 --- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c

[Mesa-dev] [PATCH 8/8] st/glsl_to_nir: disable io lowering and forced indirect array splitting in fs

2018-01-14 Thread Timothy Arceri
We need this to be able to support the interpolateAt builtins in a sane way. It also leads to the generation of more optimal code. The lowering and splitting is made conditional on glsl 400 because vc4 and freedreno both expect these passes to be enabled and niether support glsl 400 so don't need

[Mesa-dev] [PATCH 2/8] radeonsi/nir: move the interpolation qualifier scanning

2018-01-14 Thread Timothy Arceri
We need to collect this when scanning over the instruction rather than when scanning over the inputs otherwise we might get confliting values for inputs that are use by the interpolateAt* builtins. --- src/gallium/drivers/radeonsi/si_shader_nir.c | 52 +++- 1 file changed,

[Mesa-dev] [Bug 104490] [radeonsi/290x] Dota2 fails to start (can't create opengl context)

2018-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104490 Christian Inci changed: What|Removed |Added CC|

[Mesa-dev] [PATCH] radeon: remove unneeded semicolons

2018-01-14 Thread Grazvydas Ignotas
Trivial. Found by Coccinelle. --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 6 +++--- src/mesa/drivers/dri/radeon/radeon_debug.c | 2 +- src/mesa/drivers/dri/radeon/radeon_state_init.c | 2 +- src/mesa/drivers/dri/radeon/radeon_swtcl.c | 2 +- 4 files changed, 6 insertions(+), 6

[Mesa-dev] [PATCH] mesa: remove unneeded semicolons

2018-01-14 Thread Grazvydas Ignotas
Trivial. Found by Coccinelle. --- src/gbm/backends/dri/gbm_dri.c | 2 +- src/mesa/main/dlist.c| 2 +- src/mesa/main/program_resource.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index

[Mesa-dev] [PATCH] osmesa: don't check SmoothFlag twice

2018-01-14 Thread Grazvydas Ignotas
Trivial. Found by Coccinelle. --- src/mesa/drivers/osmesa/osmesa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 1df3da4..e0f87b8 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@

[Mesa-dev] [Bug 104626] broadcom/vc5: double compare

2018-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104626 --- Comment #1 from Grazvydas Ignotas --- also in src/gallium/drivers/vc5/vc5_emit.c: +int min_img_filter = psampler->min_img_filter; +int min_mip_filter = psampler->min_mip_filter; +int

[Mesa-dev] [Bug 104626] broadcom/vc5: double compare

2018-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104626 Bug ID: 104626 Summary: broadcom/vc5: double compare Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority:

[Mesa-dev] [Bug 104625] semicolon after if

2018-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104625 Bug ID: 104625 Summary: semicolon after if Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium

Re: [Mesa-dev] [PATCH] glx: fix non-dri build

2018-01-14 Thread Dylan Baker
I don't know enough about glx to know if this is correct, but you'll need to add the c files to the meson.build as well On January 13, 2018 3:36:30 AM PST, Samuel Thibault wrote: >glXGetDriverConfig parameters do not provide a context to dynamically >check for the

[Mesa-dev] [PATCH] r600/shader: Initialize max_driver_temp_used correctly for the first time

2018-01-14 Thread Gert Wollny
Without this initialization the temp registers used in tgsi_declaration may used random indices, and this may result in failing translation from TGSI with an error message "GPR limit exceeded", because the random index is greater then the allowed limit implying that the shader uses more temporary

[Mesa-dev] [Bug 104490] [radeonsi/290x] Dota2 fails to start (can't create opengl context)

2018-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104490 --- Comment #9 from Mike Lothian --- Has there been any progress on this bug? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the

[Mesa-dev] [PATCH] u_thread: Use pthread_setname_np on linux only

2018-01-14 Thread Samuel Thibault
pthread_setname_np was added in glibc 2.12 for the Linux port only, other ports do not necessarily have it. --- src/util/u_thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index 26cc0b093..8c6e0bdc5 100644 ---

[Mesa-dev] [PATCH] glx: fix non-dri build

2018-01-14 Thread Samuel Thibault
glXGetDriverConfig parameters do not provide a context to dynamically check for the presence of the function, so the dispatcher directly calls glXGetDriverConfig, but in non-dri builds dri_glx.c didn't provide glXGetDriverConfig. This change makes it provide a NULL-returning stub in non-dri