[Mesa-dev] tgsi dump and parsing

2013-08-26 Thread Dave Airlie
Hi TGSI guys mostly :-) So I'm wondering how circular and perfect tgsi->text->tgsi roundabouts should be, currently the TGSI dump code uses .4f in one place, which makes things like 1e6 not make it across the divide, I was thinking of dumping immediates in 32-bit hex format so we know for definit

Re: [Mesa-dev] void operation in glsl

2013-08-26 Thread Liu Xin
On 08/26/2013 02:42 PM, Matt Turner wrote: On Sun, Aug 25, 2013 at 10:07 PM, Liu Xin wrote: HI, list, i don't understand why glsl source have so many 'cast to void' operations, like this. ir_rvalue * ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) {

[Mesa-dev] [PATCH 00/15] Implement KHR_debug

2013-08-26 Thread Timothy Arceri
The following patchset implements the KHR_debug extension. Here are some notes/assumptions I have made: * These patches only enable the extension for GL not ES * MAX_LABEL_LENGTH and MAX_DEBUG_GROUP_STACK_DEPTH are set to the minimum values defined in the spec. * Assume its fine that Push/Pop

[Mesa-dev] [PATCH 01/15] mesa: Add some constants and state variables for KHR_debug functions

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/config.h |7 ++- src/mesa/main/errors.c |4 src/mesa/main/mtypes.h | 15 ++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 1d2ab4d..0bcf27c 10064

[Mesa-dev] [PATCH 02/15] mesa: Share common code between ARB_debug_output and KHR_debug functions

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/errors.c | 308 +--- src/mesa/main/errors.h | 15 +++ 2 files changed, 226 insertions(+), 97 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index eea7291..8e97b52 100644 ---

[Mesa-dev] [PATCH 03/15] mesa: Add a clone function to mesa hash

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/hash.c | 26 ++ src/mesa/main/hash.h |3 +++ 2 files changed, 29 insertions(+) diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index 6591af9..8dde8b1 100644 --- a/src/mesa/main/hash.c +++ b/src/mesa/main/hash

[Mesa-dev] [PATCH 04/15] mesa: Implement glPushDebugGroup and glPopDebugGroup

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/errors.c | 275 src/mesa/main/errors.h |5 + src/mesa/main/mtypes.h |5 +- 3 files changed, 214 insertions(+), 71 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c i

[Mesa-dev] [PATCH 05/15] mesa: make _mesa_lookup_arrayobj() non-static

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/arrayobj.c | 10 +- src/mesa/main/arrayobj.h |3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 9226050..006a2ea 100644 --- a/src/mesa/main/arrayobj.c +++ b

[Mesa-dev] [PATCH 06/15] mesa: make _mesa_lookup_list() non-static

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/dlist.c | 12 ++-- src/mesa/main/dlist.h |2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index af2b468..a82436c 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 07/15] mesa: add debug Label field to several data structures

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/mtypes.h | 12 1 file changed, 12 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index bd3560a..2277b95 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1128,6 +1128,7 @@ struct gl_sam

[Mesa-dev] [PATCH 08/15] mesa: free object labels when deleting

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/arrayobj.c |1 + src/mesa/main/bufferobj.c|1 + src/mesa/main/dlist.c|1 + src/mesa/main/framebuffer.c |1 + src/mesa/main/queryobj.c

[Mesa-dev] [PATCH 09/15] mesa: make _mesa_validate_sync() non-static

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/syncobj.c |2 +- src/mesa/main/syncobj.h |3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index e426474..92c7cb0 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 10/15] mesa: Implement KHR_debug ObjectLabel functions

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/objectlabel.c | 277 +++ src/mesa/main/objectlabel.h | 61 ++ 2 files changed, 338 insertions(+) create mode 100644 src/mesa/main/objectlabel.c create mode 100644 src/mesa/main/objectlabel.h dif

[Mesa-dev] [PATCH 11/15] mesa: Update builds scripts to build object labels

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/Makefile.sources |1 + src/mesa/SConscript |1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/Makefile.sources b/src/mesa/Makefile.sources index a5c1f5d..122ea8e 100644 --- a/src/mesa/Makefile.sources +++ b/src/mesa/Makefile.sou

[Mesa-dev] [PATCH 12/15] mesa: Implement GL_DEBUG_OUTPUT

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_context.c |2 ++ src/mesa/main/enable.c |9 + src/mesa/main/errors.c |3 +++ src/mesa/main/mtypes.h |1 + src/mesa/state_tracker/st_manager.c |6

[Mesa-dev] [PATCH 13/15] mesa: Remap debug type and severity

2013-08-26 Thread Timothy Arceri
Remap any type or severity exclusive to KHR_debug to something suitable for ARB_debug_output Signed-off-by: Timothy Arceri --- src/mesa/main/errors.c | 65 ++-- src/mesa/main/mtypes.h |1 + 2 files changed, 58 insertions(+), 8 deletions(-) diff

[Mesa-dev] [PATCH 15/15] mesa: Setup remaining infrastucture and enable KHR_debug

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mesa/main/extensions.c |3 +++ src/mesa/main/get_hash_params.py | 14 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 1a040ee..f60157f 100644 --- a/src/m

[Mesa-dev] [PATCH 14/15] glapi: Setup autogeneration infrastructure for KHR_debug

2013-08-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/mapi/glapi/gen/gl_API.xml| 149 +- src/mapi/glapi/gen/gl_genexec.py |1 + 2 files changed, 149 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 82b908f

[Mesa-dev] [Bug 67046] [radeonsi] pixmark_piano benchmark from geeks3D gputest fail with a llvm error output

2013-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67046 Michel Dänzer changed: What|Removed |Added CC||arek.r...@gmail.com --- Comment #4 from

Re: [Mesa-dev] tgsi dump and parsing

2013-08-26 Thread Brian Paul
On 08/26/2013 02:38 AM, Dave Airlie wrote: Hi TGSI guys mostly :-) So I'm wondering how circular and perfect tgsi->text->tgsi roundabouts should be, Ideally, they should be consistent. currently the TGSI dump code uses .4f in one place, which makes things like 1e6 not make it across the div

Re: [Mesa-dev] [PATCH 00/15] Implement KHR_debug

2013-08-26 Thread Brian Paul
On 08/26/2013 04:43 AM, Timothy Arceri wrote: The following patchset implements the KHR_debug extension. The series looks good to me. Just a few minor comments to follow. Reviewed-by: Brian Paul ___ mesa-dev mailing list mesa-dev@lists.freedesktop

Re: [Mesa-dev] [PATCH 03/15] mesa: Add a clone function to mesa hash

2013-08-26 Thread Brian Paul
On 08/26/2013 04:43 AM, Timothy Arceri wrote: Signed-off-by: Timothy Arceri --- src/mesa/main/hash.c | 26 ++ src/mesa/main/hash.h |3 +++ 2 files changed, 29 insertions(+) diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index 6591af9..8dde8b1 100644

Re: [Mesa-dev] [PATCH 04/15] mesa: Implement glPushDebugGroup and glPopDebugGroup

2013-08-26 Thread Brian Paul
On 08/26/2013 04:43 AM, Timothy Arceri wrote: [...] @@ -722,13 +769,112 @@ void GLAPIENTRY _mesa_PushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar *message) { + const char *callerstr = "glPushDebugGroup"; + int s, t, sev; + GLint prevStackDepth

Re: [Mesa-dev] [PATCH 10/15] mesa: Implement KHR_debug ObjectLabel functions

2013-08-26 Thread Brian Paul
On 08/26/2013 04:43 AM, Timothy Arceri wrote: Signed-off-by: Timothy Arceri --- src/mesa/main/objectlabel.c | 277 +++ src/mesa/main/objectlabel.h | 61 ++ 2 files changed, 338 insertions(+) create mode 100644 src/mesa/main/objectlabel.c

Re: [Mesa-dev] [PATCH 24/30] i965/gs: Support UBOs by generating surface state and binding tables.

2013-08-26 Thread Paul Berry
On 22 August 2013 13:58, Kenneth Graunke wrote: > On 08/20/2013 11:30 AM, Paul Berry wrote: > >> From: Eric Anholt >> >> All but two of the piglit GLSL 1.50/uniform_buffer tests work, and >> maxuniformblocksize and referenced-by-shader work. >> >> v2 (Paul Berry ): Account for Ken's recent >> bi

Re: [Mesa-dev] [PATCH] i965: Don't try to fall back when creating unrecognized program targets.

2013-08-26 Thread Paul Berry
On 23 August 2013 14:55, Kenneth Graunke wrote: > On 08/23/2013 11:50 AM, Paul Berry wrote: > >> If brwNewProgram is asked to create a program for an unrecognized >> target, don't bother falling back on _mesa_new_program(). That just >> hides bugs. >> --- >> src/mesa/drivers/dri/i965/brw_**pro

Re: [Mesa-dev] [PATCH 1/3] softpipe: support nested/overlapping queries for all query types

2013-08-26 Thread Brian Paul
On 08/23/2013 03:10 PM, srol...@vmware.com wrote: From: Roland Scheidegger There's just no way resetting the counters is working with nested/overlapping queries. --- src/gallium/drivers/softpipe/sp_prim_vbuf.c |2 +- src/gallium/drivers/softpipe/sp_query.c | 33 +---

[Mesa-dev] [PATCH 1/2] mesa: init dst values in COPY_CLEAN_4V_TYPE_AS_FLOAT()

2013-08-26 Thread Brian Paul
to silence gcc 4.8.1 warnings. And improve the ASSERT(0) call. --- src/mesa/main/macros.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index ddfeee2..1052f75 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.

[Mesa-dev] [PATCH 2/2] swrast: init i0, i1 values to silence warnings

2013-08-26 Thread Brian Paul
--- src/mesa/swrast/s_texfilter.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 0920a64..312b9ce 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -274,6 +274,7 @@ linear_texel_locations(GL

[Mesa-dev] [PATCH] eglut/wayland: Port to 1.0 API.

2013-08-26 Thread Armin K
--- src/egl/eglut/eglut_wayland.c | 129 +++--- 1 file changed, 97 insertions(+), 32 deletions(-) diff --git a/src/egl/eglut/eglut_wayland.c b/src/egl/eglut/eglut_wayland.c index 61207d2..809d8b4 100644 --- a/src/egl/eglut/eglut_wayland.c +++ b/src/egl/eglut/eg

[Mesa-dev] [PATCH 01/19] Xephyr: stop loading the host's keymap

2013-08-26 Thread Eric Anholt
From: Julien Cristau This isn't used anywhere. v2: Rebase to the top of the patch series (anholt) Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Signed-off-by: Eric Anholt --- hw/kdrive/ephyr/ephyr.c | 2 +- hw/kdrive/ephyr/hostx.c | 33 + h

[Mesa-dev] [PATCH 03/19] Xephyr: use xcb-shape instead of XShape*

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c

[Mesa-dev] [PATCH 04/19] Xephyr: no need for XDisplayKeycodes

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index f4948b9..699805b 100644 --- a/hw/k

[Mesa-dev] [PATCH 05/19] Xephyr: xcb-ify pointer/keyboard grab

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 45 - 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/ho

[Mesa-dev] [PATCH 02/19] Xephyr: start converting hostx.c over to xcb

2013-08-26 Thread Eric Anholt
From: Julien Cristau v2: Dropped the hostx_load_keymap changes, now that that function is gutted (anholt). Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Signed-off-by: Eric Anholt --- configure.ac| 4 +- hw/kdrive/ephyr/hostx.c | 614 ++

[Mesa-dev] [PATCH 10/19] Xephyr: move HostX.visual to xcb

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 4bcc902..d984db9 100644 -

[Mesa-dev] [PATCH 11/19] Xephyr: some more hostx.c xcb-ification

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index d984db9..3d3519b 100644 -

[Mesa-dev] [PATCH 06/19] Xephyr: xcb-ify visual list construction

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/hostx.c | 59 +++-- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephy

[Mesa-dev] [PATCH 08/19] Xephyr: delete unused hostx_get_extension_info function

2013-08-26 Thread Eric Anholt
From: Julien Cristau v2: Also remove the prototype (anholt) Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Signed-off-by: Eric Anholt --- hw/kdrive/ephyr/hostx.c | 15 --- hw/kdrive/ephyr/hostx.h | 5 - 2 files changed, 20 deletions(-) diff --git a/hw/kdriv

[Mesa-dev] [PATCH 12/19] Xephyr: use xcb for event handling

2013-08-26 Thread Eric Anholt
From: Julien Cristau v2: Rebase on indentation changes, squash in a simpler variant of the later event compression patch, fix server hang or segfault on window close by reimplementing the x_io_error_handler in the new XCB event loop (anholt). Reviewed-by: Mikhail Gusarov (v1) Signed

[Mesa-dev] [PATCH 14/19] Xephyr: move ephyrdri over to xcb

2013-08-26 Thread Eric Anholt
From: Julien Cristau Require new xcb-xf86dri to get fixed GetDrawableInfo. Reviewed-by: Mikhail Gusarov Signed-off-by: Julien Cristau --- configure.ac | 2 +- hw/kdrive/ephyr/ephyrdri.c | 201 - 2 files changed, 144 insertions(+), 59

[Mesa-dev] [PATCH 13/19] Xephyr: use xcb-xv instead of libXv

2013-08-26 Thread Eric Anholt
From: Julien Cristau v2: Massive, conflict-filled rebase. I think I resolved everything right, but this host xv code makes my eyes bleed. Touch-tested XV after the rebase (anholt). Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Signed-off-by: Eric Anholt --- config

[Mesa-dev] [PATCH 07/19] Xephyr: delete unused proxy code

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/ephyrhostproxy.c | 91 --- hw/kdrive/ephyr/ephyrhostproxy.h | 51 - hw/kdrive/ephyr/ephyrproxyext.c | 115 ---

[Mesa-dev] [PATCH 15/19] Xephyr: remove unused DRI1 code

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Signed-off-by: Julien Cristau --- hw/kdrive/ephyr/Makefile.am | 2 - hw/kdrive/ephyr/XF86dri.c | 654 hw/kdrive/ephyr/xf86dri.h | 124 - 3 files changed, 780 deletions(-) delete mode 1

[Mesa-dev] [PATCH 09/19] Xephyr: replace XKeycodeToKeysym with xcb-keysyms

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- configure.ac| 2 +- hw/kdrive/ephyr/hostx.c | 13 - 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 2c9585d..d

[Mesa-dev] [PATCH 18/19] Xephyr: handle errors in event loop

2013-08-26 Thread Eric Anholt
From: Julien Cristau Signed-off-by: Julien Cristau Reviewed-by: Eric Anholt Reviewed-by: Mikhail Gusarov --- hw/kdrive/ephyr/hostx.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 68bb48a..1eef64e 100644 --- a/hw/kd

[Mesa-dev] [PATCH 17/19] Xephyr: drop remaining Xlib dependency

2013-08-26 Thread Eric Anholt
From: Julien Cristau Reviewed-by: Mikhail Gusarov Reviewed-by: Eric Anholt Signed-off-by: Julien Cristau --- configure.ac| 4 ++-- hw/kdrive/ephyr/hostx.c | 64 - hw/kdrive/ephyr/hostx.h | 2 -- 3 files changed, 22 insertions(+), 4

[Mesa-dev] [PATCH 16/19] Xephyr: move glx code to xcb

2013-08-26 Thread Eric Anholt
From: Julien Cristau v2: Rebase on master, notably adding XCB for X_GLXvop_MakeCurrentReadSGI (anholt). Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Signed-off-by: Eric Anholt --- hw/kdrive/ephyr/ephyrglxext.c | 11 +- hw/kdrive/ephyr/ephyrhostglx.c | 665 +++

[Mesa-dev] [PATCH 19/19] Xephyr: we're not using Xlib anymore, no need to undef _XSERVER64

2013-08-26 Thread Eric Anholt
From: Julien Cristau Drop obsolete comments about interaction between Xlib code and that macro, and stop undefining it. Signed-off-by: Julien Cristau Reviewed-by: Eric Anholt --- hw/kdrive/ephyr/ephyrhostglx.c | 11 --- hw/kdrive/ephyr/ephyrhostvideo.c | 10 -- hw/kdrive/eph

Re: [Mesa-dev] [RFC PATCH] i965: Allow C++ type safety in the use of enum brw_urb_write_flags.

2013-08-26 Thread Ian Romanick
On 08/24/2013 10:41 AM, Francisco Jerez wrote: Chad Versace writes: On 08/23/2013 02:18 PM, Paul Berry wrote: The disadvantages are that (a) we need an explicit enum value for 0, and (b) we can't use related operators like |= unless we define additional overloads. Disadvantage (a) is trivi

Re: [Mesa-dev] [PATCH 01/19] Xephyr: stop loading the host's keymap

2013-08-26 Thread Ian Romanick
Did this patch series go to the wrong list? Did you intend xorg-devel instead? On 08/26/2013 11:16 AM, Eric Anholt wrote: From: Julien Cristau This isn't used anywhere. v2: Rebase to the top of the patch series (anholt) Reviewed-by: Mikhail Gusarov (v1) Signed-off-by: Julien Cristau Sign

Re: [Mesa-dev] [PATCH 2/2] swrast: init i0, i1 values to silence warnings

2013-08-26 Thread Chad Versace
Series is Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] radeonsi: add flexible shader descriptor management and use it for sampler views

2013-08-26 Thread Marko Ristola
Hi 15.08.2013 13:54, Marek Olšák wrote: On Thu, Aug 15, 2013 at 10:27 AM, Christian König wrote: Am 15.08.2013 05:25, schrieb Marek Olšák: (This should be applied before MSAA, which will need to be rebased.) It moves all sampler view descriptors to a buffer. It supports partial resource up

[Mesa-dev] [PATCH] Fixed and/or order mistake, resulting in compiling llvmpipe without llvm installed

2013-08-26 Thread Kristian Lehmann
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 40e052c..e20a228 100644 --- a/configure.ac +++ b/configure.ac @@ -1925,8 +1925,8 @@ AM_CONDITIONAL(NEED_GALLIUM_SOFTPIPE_DRIVER, test "x$HAVE_GALLIUM_SVGA" = xyes -

[Mesa-dev] [PATCH] Fixed and/or order mistake, resulting in compiling llvmpipe without llvm installed

2013-08-26 Thread Kristian Lehmann
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 40e052c..e20a228 100644 --- a/configure.ac +++ b/configure.ac @@ -1925,8 +1925,8 @@ AM_CONDITIONAL(NEED_GALLIUM_SOFTPIPE_DRIVER, test "x$HAVE_GALLIUM_SVGA" = xyes -

Re: [Mesa-dev] [RFC PATCH] i965: Allow C++ type safety in the use of enum brw_urb_write_flags.

2013-08-26 Thread Francisco Jerez
Ian Romanick writes: >[...] >>> Disadvantage (b) can be made painless with the macro I discuss below. >>> >>> >> IMHO it would be nicer to define generic templates implementing >> overloads for all bitwise operators. They would have to reference the >> bitmask_enumeration_traits structure so the

Re: [Mesa-dev] [PATCH 01/19] Xephyr: stop loading the host's keymap

2013-08-26 Thread Eric Anholt
Ian Romanick writes: > Did this patch series go to the wrong list? Did you intend xorg-devel > instead? Yes, I intended the other list, just mis-typed. pgpiOoE6RwZ_a.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedeskto

Re: [Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-26 Thread Eric Anholt
Kenneth Graunke writes: > Previously, we allocated space in brw_vs_prog_data's params and > pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't > necessary. > > On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * > 4 floats per plane * 8 bytes per float pointer * 2

Re: [Mesa-dev] [PATCH 03/15] i965/fs: Add support for translating ir_triop_fma into MAD.

2013-08-26 Thread Paul Berry
On 23 August 2013 17:45, Matt Turner wrote: > On Fri, Aug 23, 2013 at 8:27 AM, Paul Berry > wrote: > > On 22 August 2013 16:08, Matt Turner wrote: > >> > >> --- > >> src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + > >> src/mesa/drivers/dri/i965/brw_fs.h |

Re: [Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-26 Thread Paul Berry
On 25 August 2013 23:46, Kenneth Graunke wrote: > Previously, we allocated space in brw_vs_prog_data's params and > pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't > necessary. > > On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * > 4 floats per plane * 8 byt

[Mesa-dev] [PATCH] glsl: Disallow uniform block layout qualifiers on non-uniform block vars.

2013-08-26 Thread Matt Turner
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68460 Cc: 9.2 --- src/glsl/ast_to_hir.cpp | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index feff586..bb25d81 100644 --- a/src/glsl/ast_to_hir.cpp +++

[Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68504 Bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 CC: mesa-sta...@lists.freedesktop.org --- configure.ac | 11 +++ src/gallium/state_trackers/clover/Makefile.am | 2 +- 2 files changed,

[Mesa-dev] [PATCH] configure.ac: Fix order of "and"/"or" for AM_CONDITIONAL

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
From: Kris Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68544 CC: mesa-sta...@lists.freedesktop.org --- configure.ac | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 40e052c..f135f81 100644 --- a/configure.ac +++ b/configu

[Mesa-dev] [Bug 68504] 9.2-rc1 workaround for clover build failure on ppc/altivec: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 Chí-Thanh Christopher Nguyễn changed: What|Removed |Added Status|RESOLVED|REOPENED Resoluti

[Mesa-dev] [PATCH 00/22] i965/gen7: Initial geometry shader support, part 2

2013-08-26 Thread Paul Berry
This is a re-spin of patches 23-30 of my series "i965/gen7: Initial geometry shader support." from 8/20. Based on code review, I've made the following changes: - Rather than using "vec4_gs" to refer to the new user-programmable geometry shader functionality, and "gs" to refer to the old fixed

[Mesa-dev] [PATCH 02/22] i965: Rename user-defined gs structs from vec4_gs to gs.

2013-08-26 Thread Paul Berry
Now that the name "gs" is no longer used to refer to the legacy fixed function geometry shaders, we can use it to refer to user-defined geometry shaders. --- src/mesa/drivers/dri/i965/brw_context.h | 4 ++-- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 2 +- src/mesa/drivers/dri

[Mesa-dev] [PATCH 01/22] i965: rename legacy gs structs and functions to ff_gs.

2013-08-26 Thread Paul Berry
"ff" is for "fixed function". This frees up the name "gs" to refer to user-defined geometry shaders. --- src/mesa/drivers/dri/i965/brw_context.h | 14 +-- src/mesa/drivers/dri/i965/brw_gs.c | 42 src/mesa/drivers/dri/i965/brw_gs.h | 19 ++-- src/mesa/drivers/d

[Mesa-dev] [PATCH 03/22] i965: Move vec4 register allocation data structures to brw->vec4.

2013-08-26 Thread Paul Berry
This will avoid confusion when we add geometry shaders, since these data structures will be shared by vertex and geometry shaders. --- src/mesa/drivers/dri/i965/brw_context.h| 31 -- .../drivers/dri/i965/brw_vec4_reg_allocate.cpp | 31 +++--- 2 f

[Mesa-dev] [PATCH 04/22] i965/gs: Update defines related to GS surface organization.

2013-08-26 Thread Paul Berry
Defines that previously referred to VS now refer to VEC4, since they will be shared by the user-programmable vertex shader and geometry shader stages. Defines that previously referred to the Gen6 geometry shader stage (which is only used for transform feedback) are now renamed to explicitly refer

[Mesa-dev] [PATCH 05/22] i965: Move data from brw->vs into a base class if gs will also need it.

2013-08-26 Thread Paul Berry
This paves the way for sharing the code that will set up the vertex and geometry shader pipeline state. --- src/mesa/drivers/dri/i965/brw_context.h | 47 ++-- src/mesa/drivers/dri/i965/brw_draw.c | 3 +- src/mesa/drivers/dri/i965/brw_misc_state.c |

[Mesa-dev] [PATCH 06/22] i965/gs: Create brw_context::gs structure to track GS program state.

2013-08-26 Thread Paul Berry
v2: Change name from "vec4_gs" to simply "gs". --- src/mesa/drivers/dri/i965/brw_context.h | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 9784956..d5ca4dd 100644 --- a/src/mesa/drivers/dri/i965/brw_c

[Mesa-dev] [PATCH 07/22] i965: Make CACHE_NEW_GS_PROG.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index d5ca4dd..be5175f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_conte

[Mesa-dev] [PATCH 08/22] i965/gs: Allocate URB space for use by GS.

2013-08-26 Thread Paul Berry
Previously, we gave all of the URB space (other than the small amount that is used for push constants) to the vertex shader. However, when a geometry shader is active, we need to divide it up between the vertex and geometry shaders. The size of the URB entries for the vertex and geometry shaders

[Mesa-dev] [PATCH 09/22] i965/gs: Allocate push constant space for use by GS.

2013-08-26 Thread Paul Berry
Previously, we would always use the same push constant allocation regardless of what shader programs were being run: the available push constant space was split into 2 equal size partitions, one for the vertex shader, and one for the fragment shader. Now that we are adding geometry shader support,

[Mesa-dev] [PATCH 10/22] i965: Make sure constants re-sent after constant buffer reallocation.

2013-08-26 Thread Paul Berry
The hardware requires that after constant buffers for a stage are allocated using a 3DSTATE_PUSH_CONSTANT_ALLOC_{VS,HS,DS,GS,PS} command, and prior to execution of a 3DPRIMITIVE, the corresponding stage's constant buffers must be reprogrammed using a 3DSTATE_CONSTANT_{VS,HS,DS,GS,PS} command. Prev

[Mesa-dev] [PATCH 11/22] i965: generalize brw_vs_pull_constants in preparation for GS.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_state.h| 8 +++ src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 66 +++- 2 files changed, 50 insertions(+), 24 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 48146

[Mesa-dev] [PATCH 12/22] i965/vs: generalize brw_vs_binding_table in preparation for GS.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_state.h| 6 src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 42 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index e7a1

[Mesa-dev] [PATCH 13/22] i965/gs: Implement support for geometry shader surfaces.

2013-08-26 Thread Paul Berry
This patch implements pull constant upload, binding table upload, and surface setup for geometry shaders, by re-using vertex shader code that was generalized in previous patches. Based on work by Eric Anholt . --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 14/22] i965/gs: make the state atom for compiling Gen7 geometry shaders.

2013-08-26 Thread Paul Berry
Reviewed-by: Kenneth Graunke v2: Use "unsigned" rather than "GLuint". --- src/mesa/drivers/dri/i965/Makefile.sources| 1 + src/mesa/drivers/dri/i965/brw_defines.h | 10 + src/mesa/drivers/dri/i965/brw_draw.c | 2 + src/mesa/drivers/dri/i965/brw_state.h

[Mesa-dev] [PATCH 15/22] i965/vs: generalize gen6_vs_push_constants in preparation for GS.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_context.h | 7 + src/mesa/drivers/dri/i965/gen6_vs_state.c | 45 --- 2 files changed, 36 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 622b5c

[Mesa-dev] [PATCH 16/22] i965: Modify signature to update_texture_surface functions.

2013-08-26 Thread Paul Berry
Previously these functions would accept a pointer to the binding table and an index indicating which entry in the binding table should be updated. Now they merely take a pointer to the binding table entry to be updated. This will make it easier to generalize brw_texture_surfaces to support geomet

[Mesa-dev] [PATCH 17/22] i965/gs: generalize brw_texture_surfaces in preparation for gs.

2013-08-26 Thread Paul Berry
There is a slight functionality change. Previously we would compute a common value for num_samplers for all stages, and populate that many entries in each stage's surf_offset table regardless of how many samplers each stage used. Now we only populate the number of entries in the surf_offset table

[Mesa-dev] [PATCH 18/22] i965/gs: add geometry shader support to brw_texture_surfaces.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 1b4388c..600b564 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c

[Mesa-dev] [PATCH 19/22] i965/gs: Implement support for geometry shader samplers.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_state.h| 1 + src/mesa/drivers/dri/i965/brw_state_upload.c | 1 + src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | 28 3 files changed, 30 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/dr

[Mesa-dev] [PATCH 20/22] i965/gen7: merge defines for 3DSTATE{VS, GS, WM} dword 2

2013-08-26 Thread Paul Berry
Dword 2 of all 3DSTATE commands is the same, so there's no need tohave separate defines for it. This will allow us to unify some of the state setup code between VS and GS. --- src/mesa/drivers/dri/i965/brw_defines.h | 30 +- src/mesa/drivers/dri/i965/gen6_blorp.cpp

[Mesa-dev] [PATCH 21/22] i965/gen7: Generalize gen7_vs_state in preparation for GS.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/brw_state.h | 41 ++ src/mesa/drivers/dri/i965/gen7_vs_state.c | 123 -- 2 files changed, 122 insertions(+), 42 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index b54

[Mesa-dev] [PATCH 22/22] i965/gs: Add a state atom to set up geometry shader state.

2013-08-26 Thread Paul Berry
--- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_defines.h | 7 ++ src/mesa/drivers/dri/i965/brw_state.h| 2 + src/mesa/drivers/dri/i965/brw_state_upload.c | 2 + src/mesa/drivers/dri/i965/gen7_disable.c | 33 --- src/mesa/drivers/

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Francisco Jerez
Chí-Thanh Christopher Nguyễn writes: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68504 > Bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 > CC: mesa-sta...@lists.freedesktop.org > --- > configure.ac | 11 +++ > src/gallium/state_tr

Re: [Mesa-dev] [PATCH] configure.ac: Fix order of "and"/"or" for AM_CONDITIONAL

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
Sorry, I missed that the author already sent his patch to the list. Please disregard. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
Francisco Jerez schrieb: > Chí-Thanh Christopher Nguyễn writes: > >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68504 Bugzilla: >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241 CC: >> mesa-sta...@lists.freedesktop.org --- configure.ac >> | 11 +++ src/gallium/state_trackers

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
Chí-Thanh Christopher Nguyễn schrieb: >> How about disabling AltiVec code generation by adding "-mno-altivec" to >> CXXFLAGS? AFAICT what's going on is that the "-maltivec" option (which >> is implied by your "-mcpu=7450") enables a number of language >> extensions as a side effect that collide

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Francisco Jerez
Chí-Thanh Christopher Nguyễn writes: > Francisco Jerez schrieb: >[...] >> How about disabling AltiVec code generation by adding "-mno-altivec" to >> CXXFLAGS? AFAICT what's going on is that the "-maltivec" option (which >> is implied by your "-mcpu=7450") enables a number of language >> extens

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Francisco Jerez
Chí-Thanh Christopher Nguyễn writes: > Chí-Thanh Christopher Nguyễn schrieb: >>> How about disabling AltiVec code generation by adding "-mno-altivec" to >>> CXXFLAGS? AFAICT what's going on is that the "-maltivec" option (which >>> is implied by your "-mcpu=7450") enables a number of language

Re: [Mesa-dev] [PATCH] clover: work around altivec build failure with GNU C++ and -std=c++

2013-08-26 Thread Chí-Thanh Christopher Nguyễn
Francisco Jerez schrieb: > Chí-Thanh Christopher Nguyễn writes: > >> Chí-Thanh Christopher Nguyễn schrieb: How about disabling AltiVec code generation by adding "-mno-altivec" to CXXFLAGS? AFAICT what's going on is that the "-maltivec" option (which is implied by your "-mcpu=7450"

Re: [Mesa-dev] [PATCH] glsl: Disallow uniform block layout qualifiers on non-uniform block vars.

2013-08-26 Thread Ian Romanick
On 08/26/2013 02:16 PM, Matt Turner wrote: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68460 Cc: 9.2 --- src/glsl/ast_to_hir.cpp | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index feff586..b

Re: [Mesa-dev] [PATCH] glsl: Disallow uniform block layout qualifiers on non-uniform block vars.

2013-08-26 Thread Matt Turner
On Mon, Aug 26, 2013 at 4:35 PM, Ian Romanick wrote: >> I think this will allow things like: > > struct foo { > layout(row_major) mat4 bar; > }; > > Yeah? Don't think so: error: syntax error, unexpected LAYOUT_TOK ___ mesa-dev mailing list mesa-dev

Re: [Mesa-dev] [RFC PATCH] i965: Allow C++ type safety in the use of enum brw_urb_write_flags.

2013-08-26 Thread Ian Romanick
On 08/26/2013 01:10 PM, Francisco Jerez wrote: Ian Romanick writes: [...] Disadvantage (b) can be made painless with the macro I discuss below. IMHO it would be nicer to define generic templates implementing overloads for all bitwise operators. They would have to reference the bitmask_enu

Re: [Mesa-dev] [PATCH] glsl: Disallow uniform block layout qualifiers on non-uniform block vars.

2013-08-26 Thread Ian Romanick
On 08/26/2013 04:49 PM, Matt Turner wrote: On Mon, Aug 26, 2013 at 4:35 PM, Ian Romanick wrote: I think this will allow things like: struct foo { layout(row_major) mat4 bar; }; Yeah? Don't think so: error: syntax error, unexpected LAYOUT_TOK Right... because the grammar doesn't all

Re: [Mesa-dev] [PATCH 05/15] glsl: Add new {fr, ld}exp built-ins IR and prototypes.

2013-08-26 Thread Ian Romanick
On 08/23/2013 02:02 PM, Paul Berry wrote: On 23 August 2013 13:19, Matt Turner mailto:matts...@gmail.com>> wrote: On Fri, Aug 23, 2013 at 8:55 AM, Paul Berry mailto:stereotype...@gmail.com>> wrote: > On 22 August 2013 16:08, Matt Turner mailto:matts...@gmail.com>> wrote: >> >>

Re: [Mesa-dev] [PATCH 01/15] glsl: Add new fma built-in IR and prototype from ARB_gpu_shader5.

2013-08-26 Thread Ian Romanick
The fma patches (patches 1 through 4) are all Reviewed-by: Ian Romanick I haven't quite made my way all the way through the rest. On 08/22/2013 04:08 PM, Matt Turner wrote: --- src/glsl/builtins/ir/fma.ir | 29 + src/glsl/builtins/profiles/ARB_gp

  1   2   >