[Mesa-dev] [PATCH] common.py: Fix PEP 8 issues.

2015-03-14 Thread Vinson Lee
Signed-off-by: Vinson Lee --- common.py | 97 ++- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a/common.py b/common.py index 1d2d586..7a93941 100644 --- a/common.py +++ b/common.py @@ -26,28 +26,28 @@ else: target_p

[Mesa-dev] [Bug 89577] segfault using shader-db C runner

2015-03-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89577 --- Comment #2 from Kenneth Graunke --- FWIW you don't actually need --enable-gbm - that happens automatically if you have --with-egl-platforms=x11,drm -- You are receiving this mail because: You are the QA Contact for the bug. You are the assi

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-14 Thread Emil Velikov
On 13/03/15 22:10, Francisco Jerez wrote: > Emil Velikov writes: > >> Hi all, >> >> Allow me to sum all that is said here, plus elaborate on some of the >> myths and alternative solutions proposed. >> >> Considering that this is a never ending and somewhat emotional topic, I >> would kindly ask p

Re: [Mesa-dev] [PATCH] Allow static libstdc++/libgcc linking if selected

2015-03-14 Thread Vivek Das Mohapatra
Oops... that patch wasn't complete. Fixed version to follow as soon as I've run it through a build each way. Apologies for any inconvenience. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] Allow static libstdc++/libgcc linking if selected

2015-03-14 Thread Vivek Das Mohapatra
Sttaically link gallium modules with libstdc++/libgcc/libgcc_eh if --enable-static-libstdc++ is passed to ./configure: --- configure.ac| 38 + src/gallium/Automake.inc| 1 + src/gallium/targets/dri/Makefile.am | 1 + 3 fil

[Mesa-dev] [Bug 88806] nir/nir_constant_expressions.c:2754:15: error: controlling expression type 'unsigned int' not compatible with any generic association type

2015-03-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88806 Jason Ekstrand changed: What|Removed |Added Status|REOPENED|NEEDINFO --- Comment #6 from Jason Ekst

[Mesa-dev] [Bug 89238] "nir/nir.h", line 643: Error: In this declaration "src" is of an incomplete type "nir_alu_src[]".

2015-03-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89238 --- Comment #3 from Jason Ekstrand --- Created attachment 114310 --> https://bugs.freedesktop.org/attachment.cgi?id=114310&action=edit Patch to fix the unsized array issue I just attached a patch that *should* fix the bug. Let me know how it

Re: [Mesa-dev] [PATCH 4/4] i965/fs: Don't issue FB writes for bound but unwritten color targets.

2015-03-14 Thread Roland Scheidegger
I was just wondering, this actually clearly looks like a workaround for a broken app. GLSL and OGL have language such as "The variable gl_FragData is an array. Writing to gl_FragData[n] specifies the fragment data that will be used by the subsequent fixed functionality pipeline for data n. If su

Re: [Mesa-dev] RFC: Prune stale components

2015-03-14 Thread Emil Velikov
On 3 March 2015 at 12:15, Jose Fonseca wrote: > On 03/03/15 11:59, Emil Velikov wrote: >> >> On 3 March 2015 at 09:36, Jose Fonseca wrote: >>> >>> On 28/02/15 00:24, Rob Clark wrote: On Fri, Feb 27, 2015 at 5:05 PM, Emil Velikov wrote: >> >> >> - src/gallium/drive

[Mesa-dev] [PATCH 6/7] gallium/docs: remove information about identity driver

2015-03-14 Thread Emil Velikov
Removed from tree. Signed-off-by: Emil Velikov --- src/gallium/docs/source/distro.rst | 7 --- 1 file changed, 7 deletions(-) diff --git a/src/gallium/docs/source/distro.rst b/src/gallium/docs/source/distro.rst index 000b031..0785c0c 100644 --- a/src/gallium/docs/source/distro.rst +++ b/sr

[Mesa-dev] [PATCH 7/7] galahad: remove driver

2015-03-14 Thread Emil Velikov
Signed-off-by: Emil Velikov --- The src/gallium/drivers/galahad changes are omitted from this patch. -Emil configure.ac |1 - src/gallium/Makefile.am|1 - src/gallium/SConscript |1 - .../a

[Mesa-dev] [PATCH 3/7] winsys/sw/fbdev: remove unused software winsys

2015-03-14 Thread Emil Velikov
st/egl was its only user. Signed-off-by: Emil Velikov --- configure.ac | 1 - src/gallium/Makefile.am | 4 - src/gallium/winsys/sw/fbdev/Makefile.am | 33 src/gallium/winsys/sw/fbdev/Makefile.sources | 3 - src/gallium/win

[Mesa-dev] [PATCH 4/7] egl/main: drop platform fbdev specific code

2015-03-14 Thread Emil Velikov
st/egl was the only one which had support for this platform. Signed-off-by: Emil Velikov --- configure.ac | 3 +-- docs/egl.html | 2 +- src/egl/main/Makefile.am | 4 src/egl/main/egldisplay.c | 16 src/egl/main/egldisplay.h | 1 - 5 files chan

[Mesa-dev] [PATCH 5/7] docs: update the egl_platforms list

2015-03-14 Thread Emil Velikov
Signed-off-by: Emil Velikov --- docs/egl.html | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/egl.html b/docs/egl.html index d46181e..d946bb0 100644 --- a/docs/egl.html +++ b/docs/egl.html @@ -88,8 +88,11 @@ types such as EGLNativeDisplayType or EGLNativeWindowTyp

[Mesa-dev] [RFC PATCH 0/7] Prune stale components, take 2

2015-03-14 Thread Emil Velikov
Hi all, As a follow up to Jose's initial series dropping st/{egl,vega} and others here is the next round of cleanups, Namely this series - removes st/gbm, winsys/sw/{wayland,fbdev}, all of which no longer used by anyone, - cleans up libEGL (and configure) of the final fbdev references, - cl

[Mesa-dev] [PATCH 2/7] winsys/sw/wayland: remove unused winsys

2015-03-14 Thread Emil Velikov
st/egl was its only user. Signed-off-by: Emil Velikov --- configure.ac | 1 - src/gallium/Makefile.am | 4 - src/gallium/winsys/sw/wayland/Makefile.am | 32 --- src/gallium/winsys/sw/wayland/Makefile.sources| 3 -

[Mesa-dev] [PATCH 1/7] st/gbm: remove state-tracker

2015-03-14 Thread Emil Velikov
st/egl was its only user. Signed-off-by: Emil Velikov --- src/gallium/Makefile.am| 2 - src/gallium/state_trackers/gbm/Makefile.am | 48 src/gallium/state_trackers/gbm/Makefile.sources| 3 - src/gallium/state_trackers/gbm/gbm_drm.c | 30

Re: [Mesa-dev] [PATCH 3/7] winsys/sw/fbdev: remove unused software winsys

2015-03-14 Thread Matt Turner
On Sat, Mar 14, 2015 at 3:36 PM, Emil Velikov wrote: > st/egl was its only user. > > Signed-off-by: Emil Velikov > --- > configure.ac | 1 - > src/gallium/Makefile.am | 4 - > src/gallium/winsys/sw/fbdev/Makefile.am | 33 > s

Re: [Mesa-dev] [PATCH 3/7] winsys/sw/fbdev: remove unused software winsys

2015-03-14 Thread Matt Turner
On Sat, Mar 14, 2015 at 3:54 PM, Matt Turner wrote: >> -if HAVE_EGL_PLATFORM_FBDEV > > You need to remove the corresponding AM_CONDITIONAL from configure.ac as well. Which apparently happens in the next patch. The series is Acked-by: Matt Turner ___

Re: [Mesa-dev] [Junk released by User action] Re: Statically linking libstdc++ and libgcc

2015-03-14 Thread Francisco Jerez
"Pierre-Loup A. Griffais" writes: > On 03/12/2015 08:20 PM, Michel Dänzer wrote: >> On 13.03.2015 03:07, Pierre-Loup A. Griffais wrote: >>> On 03/11/2015 09:40 AM, Ian Romanick wrote: On 03/11/2015 09:31 AM, Tobias Klausmann wrote: > The problem in not forcing this to link statically is,

[Mesa-dev] [PATCH 06/18] i965/cs: Add support for the SEND message that terminates a CS thread.

2015-03-14 Thread Jordan Justen
From: Paul Berry This message must be sent to the "thread spawner" unit. Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_eu.h | 4 +++ src/mesa/drivers/dri/i965/brw_eu_emit.c | 46 + 2 files changed, 50 insertions(+) diff --git a/src/mesa/dri

[Mesa-dev] [PATCH 00/18] i965 basic CS program generation support

2015-03-14 Thread Jordan Justen
git://people.freedesktop.org/~jljusten/mesa i965-cs-prog-v1 This depends on the unmerged i965-pipelines series. With this series merged, we still won't be able to run a CS program, but we should be able to run some trivial programs after after a follow on DispatchCompute series. Jordan Justen (1

[Mesa-dev] [PATCH 04/18] mesa/cs: Add compute support to update_program().

2015-03-14 Thread Jordan Justen
From: Paul Berry Reviewed-by: Jordan Justen --- src/mesa/main/state.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index dadfb3c..5d5e94d 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -101,9 +101,12

[Mesa-dev] [PATCH 08/18] i965/cs: Mark g0 as used by CS_OPCODE_CS_TERMINATE

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 72c490b..1f30a19 100644 --- a/src/mesa/drivers/dr

[Mesa-dev] [PATCH 07/18] i965/cs: Support CS_OPCODE_CS_TERMINATE

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_defines.h | 5 + src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 +++ src/mesa/drivers/dri/i965/brw_shader.cpp | 2 ++ 4 files changed, 19 insertions(+) di

[Mesa-dev] [PATCH 01/18] i965/cs: Add BRW_NEW_COMPUTE_PROGRAM state flag.

2015-03-14 Thread Jordan Justen
From: Paul Berry Also add code to brw_upload_state to set it when the compute program changes. Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.h | 3 +++ src/mesa/drivers/dri/i965/brw_state_upload.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/src/mesa/d

[Mesa-dev] [PATCH 03/18] mesa/cs: Update program.c for compute shaders.

2015-03-14 Thread Jordan Justen
From: Paul Berry Reviewed-by: Jordan Justen --- src/mesa/program/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 3c214d5..ba22a51 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -101,6 +10

[Mesa-dev] [PATCH 02/18] mesa/cs: Add inline functions for dealing with compute shaders.

2015-03-14 Thread Jordan Justen
From: Paul Berry Reviewed-by: Jordan Justen --- src/mesa/program/program.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h index 0b0d1ac..2d92ab2 100644 --- a/src/mesa/program/program.h +++ b/src/mesa/program/pr

[Mesa-dev] [PATCH 05/18] i965: Add an INTEL_DEBUG=cs option.

2015-03-14 Thread Jordan Justen
From: Paul Berry At the moment it's not wired up to anything. Later patches will hook it up to the compute shader back-end. Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/intel_debug.c | 1 + src/mesa/drivers/dri/i965/intel_debug.h | 1 + 2 files changed, 2 insertions(+) diff --git

[Mesa-dev] [PATCH 10/18] i965/cs: Add brw_cs_prog_data, brw_cs_prog_key and brw_context::cs.

2015-03-14 Thread Jordan Justen
From: Paul Berry jordan.l.jus...@intel.com: * Added brw_cs_prog_key structure * Added brw_cs_prog_data::dispatch_grf_start_reg_16 * Added brw_cs_prog_data::no_8 * Added brw_cs_prog_data::local_size * Added brw_cs_prog_data::simd_size Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 13/18] i965/fs: Support compute programs in fs_visitor

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_fs.cpp | 82 +++- src/mesa/drivers/dri/i965/brw_fs.h | 10 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 23 3 files changed, 112 insertions(+), 3 deletions(-) diff --git a/src

[Mesa-dev] [PATCH 17/18] i965/cs: Add max_cs_threads

2015-03-14 Thread Jordan Justen
Add some values for gen7 & gen8. These are the number threads in a subslice. Signed-off-by: Jordan Justen Cc: Ben Widawsky Cc: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.c | 1 + src/mesa/drivers/dri/i965/brw_context.h | 1 + src/mesa/drivers/dri/i965/brw_device_info.c |

[Mesa-dev] [PATCH 18/18] i965/cs: Upload brw_cs_state

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.h | 2 +- src/mesa/drivers/dri/i965/brw_cs.cpp | 70 src/mesa/drivers/dri/i965/brw_defines.h | 3 ++ src/mesa/drivers/dri/i965/brw_state.h| 1 + src/mesa/drivers/dri/i9

[Mesa-dev] [PATCH 16/18] i965/cs: Support CS program precompile

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.h | 6 ++ src/mesa/drivers/dri/i965/brw_cs.cpp | 26 ++ src/mesa/drivers/dri/i965/brw_shader.cpp | 4 src/mesa/drivers/dri/i965/brw_shader.h | 3 +++ 4 files changed, 39 insertions(+)

[Mesa-dev] [PATCH 15/18] i965/cs: Emit compute shader code and upload programs

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.h | 1 + src/mesa/drivers/dri/i965/brw_cs.cpp | 216 +++ src/mesa/drivers/dri/i965/brw_state_upload.c | 3 + 3 files changed, 220 insertions(+) diff --git a/src/mesa/drivers/dri/i965/b

[Mesa-dev] [PATCH 11/18] i965/cs: Add BRW_NEW_CS_PROG_DATA and BRW_CACHE_CS_PROG

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_dump.c | 3 +++ src/mesa/drivers/dri/i965/brw_state_upload.c | 1 + 3 files changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/driver

[Mesa-dev] [PATCH 14/18] i965/fs: Don't assign high regs for CS termination send

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 1f30a19..fe3406c 100644 --- a/src/mes

[Mesa-dev] [PATCH 12/18] i965/cache: Add support for CS in program state cache

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_cs.cpp| 48 + src/mesa/drivers/dri/i965/brw_cs.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_cache.c | 3 ++ 4 files changed, 54 insert

[Mesa-dev] [PATCH 09/18] i965/cs: Emit gen code for CS_OPCODE_CS_TERMINATE

2015-03-14 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 11 +++ 2 files changed, 12 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index faf7893..b8b26a4

Re: [Mesa-dev] [PATCH 2/4] util: Change hash_table to use quadratic probing

2015-03-14 Thread Connor Abbott
On Fri, Mar 13, 2015 at 6:37 PM, Thomas Helland wrote: > This should give better cache locality, less memory consumption, > and should also be faster since we avoid a modulo operation. > Also change table size to be power of two. > This gives better performance as we can do bitmasking instead of >

Re: [Mesa-dev] [PATCH 3/4] util: Change util/set to use quadratic probing

2015-03-14 Thread Connor Abbott
On Fri, Mar 13, 2015 at 6:37 PM, Thomas Helland wrote: > The same rationale applies here as for the hash table. > Power of two size should give better performance, > and using the algorithm hash = sh + i/2 + i*i/2 > should result in only distinct hash values when hitting collisions. > Should give

Re: [Mesa-dev] [PATCH 2/4] util: Change hash_table to use quadratic probing

2015-03-14 Thread Connor Abbott
On Sun, Mar 15, 2015 at 1:25 AM, Connor Abbott wrote: > On Fri, Mar 13, 2015 at 6:37 PM, Thomas Helland > wrote: >> This should give better cache locality, less memory consumption, >> and should also be faster since we avoid a modulo operation. >> Also change table size to be power of two. >> Thi