Re: [Mesa-dev] [PATCH] i965: Reenable glBitmap() after the sRGB winsys enabling.

2013-09-22 Thread Kenneth Graunke
On 09/21/2013 04:47 PM, Eric Anholt wrote: The format of the window system framebuffer changed from ARGB to SARGB8, but we're still supposed to render to it the same as ARGB unless the user flipped the GL_FRAMEBUFFER_SRGB switch. --- src/mesa/drivers/dri/i965/intel_pixel_bitmap.c | 3

Re: [Mesa-dev] XDC schedule published

2013-09-22 Thread Ian Romanick
On 09/20/2013 02:48 PM, Ian Romanick wrote: Final schedule is now available: http://www.x.org/wiki/Events/XDC2013/Program/ In addition, folks arriving today can meet up this evening at Backspace. 115 NW 5th Ave, Portland 503.248.2900 http://www.backspace.bz/ I'm planning to arrive there

[Mesa-dev] [PATCH 1/2] i965: Extract region use from hiz depth buffer

2013-09-22 Thread Ben Widawsky
Starting with Ivybridge, the hierarchical had relaxed requirements for its allocation. Following a simple formula in the bspec was all you needed to satisfy the requirement. To prepare the code for this, extract all places where the miptree was used, when we really only needed the region. This

[Mesa-dev] [PATCH 2/2] i965: Use IVB specific formula for depthbuffer

2013-09-22 Thread Ben Widawsky
After the last patch, we can replace the region allocated in the miptree creation with a more straightforward (and hopefully smaller resulting) buffer based on the bspec's allocation formula. Since I am relatively new to this part of the bspec, I would very much appreciate scrutiny during review

Re: [Mesa-dev] [RFC PATCH 4/5] ralloc: Make the C++ macros arrange for class destructors to be called.

2013-09-22 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/21/2013 11:41 AM, Eric Anholt wrote: Ian Romanick i...@freedesktop.org writes: Premature send strikes again... On 09/19/2013 05:26 PM, Ian Romanick wrote: On 09/18/2013 04:55 PM, Kenneth

Re: [Mesa-dev] [RFC PATCH 4/5] ralloc: Make the C++ macros arrange for class destructors to be called.

2013-09-22 Thread Francisco Jerez
Eric Anholt e...@anholt.net writes: [...] I've used this many times to show overhead in compiling, I didn't see any reason things would be different this time. Of course, this time I happened to run the wrong version of the script, which wasn't successfully compiling. Updated numbers: x

Re: [Mesa-dev] [PATCH 4/7] mesa: Convert some runtime asserts to static asserts.

2013-09-22 Thread Eric Anholt
Brian Paul brian.e.p...@gmail.com writes: On Fri, Sep 20, 2013 at 7:52 PM, Eric Anholt e...@anholt.net wrote: Noticed while grepping through the code for something else. --- src/mesa/program/program.c | 36 ++-- 1 file changed, 22 insertions(+), 14

[Mesa-dev] [PATCH 4/7 v2] mesa: Convert some runtime asserts to static asserts.

2013-09-22 Thread Eric Anholt
Noticed while grepping through the code for something else. --- src/mesa/program/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 2529c13..3a1eb73 100644 --- a/src/mesa/program/program.c +++

[Mesa-dev] [PATCH 3/7 v2] mesa: Shrink the size of the enum string lookup struct.

2013-09-22 Thread Eric Anholt
Since it's only used for debug information, we can misalign the struct and save the disk space. Another 19k on a 64-bit build. v2: Make a compiler.h macro to only use the attribute if we know we can. --- src/mapi/glapi/gen/gl_enums.py | 6 -- src/mesa/main/compiler.h | 9 + 2

Re: [Mesa-dev] Mesa built code size reduction

2013-09-22 Thread Eric Anholt
Eric Anholt e...@anholt.net writes: Since I'm going to be talking about the megadrivers idea next week at XDC, I thought I'd look at what the impact would be of an alternate option, and to do that I wanted to first fix up any stupid wastes of disk space I found. I found more than I expected.

Re: [Mesa-dev] [PATCH] i965: Fix cube array coordinate normalization

2013-09-22 Thread Eric Anholt
Chris Forbes chr...@ijw.co.nz writes: Hardware requires the magnitude of the largest component to not exceed 1; brw_cubemap_normalize ensures that this is the case. Unfortunately, we would previously multiply the array index for cube arrays by the normalization factor. The incorrect array

[Mesa-dev] Consolidate the source files to Makefile.sources v2

2013-09-22 Thread Emil Velikov
This is a first part of my planned automake rework - moving source files list(s) into Makefile.sources. * The first four patches are rather trivial cleanups (first one being an update of Johannes Obermayr's patch from his ). * The next 24 provides Makefile.sources for the following

[Mesa-dev] [PATCH 01/29] gallium/targets: Make use of prebuilt libdricommon.la.

2013-09-22 Thread Emil Velikov
From: Johannes Obermayr johannesoberm...@gmx.de libdricommon.la is available whenever a non swrast driver is built. All the classic dri drivers make use of the prebuild library but all of the gallium ones rebuild it explicitly. While we're here gallium/{llvm,soft}pipe does not require

[Mesa-dev] [PATCH 02/29] mesa/drivers: drop HAVE_*_DRI from individual makefiles

2013-09-22 Thread Emil Velikov
The mesa/drivers/dri/Makefile.am already guards the individual targets/subdirs with HAVE_*_DRI before including them. Thus making the additional check within each Makefile.am unnecessary. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/mesa/drivers/dri/i915/Makefile.am| 3 ---

[Mesa-dev] [PATCH 03/29] gallium/radeon: drop unused variable LIBGALLIUM_LIBS

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/radeon/Makefile.am | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/radeon/Makefile.am b/src/gallium/drivers/radeon/Makefile.am index ac8cbd3..d5a6ff2 100644 ---

[Mesa-dev] [PATCH 04/29] r600: use NEED_RADEON_LLVM over R600_NEED_RADEON_GALLIUM

2013-09-22 Thread Emil Velikov
libllvmradeon.la is available whenever NEED_RADEON_LLVM is set, using R600_NEED_RADEON_GALLIUM is rather ambiguous and unnecessary. Drop it in favour of NEED_RADEON_LLVM. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 2 --

[Mesa-dev] [PATCH 05/29] softpipe: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/softpipe/Android.mk | 33 ++ src/gallium/drivers/softpipe/Makefile.am | 32 ++--- src/gallium/drivers/softpipe/Makefile.sources | 30 +++

[Mesa-dev] [PATCH 06/29] rbug: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/rbug/Makefile.am | 7 ++- src/gallium/drivers/rbug/Makefile.sources | 5 + src/gallium/drivers/rbug/SConscript | 8 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) create mode 100644

[Mesa-dev] [PATCH 07/29] llvmpipe: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/llvmpipe/Makefile.am | 44 ++ src/gallium/drivers/llvmpipe/Makefile.sources | 42 + src/gallium/drivers/llvmpipe/SConscript | 45 ++- 3

[Mesa-dev] [PATCH 08/29] trace: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/trace/Makefile.am | 8 ++-- src/gallium/drivers/trace/Makefile.sources | 6 ++ src/gallium/drivers/trace/SConscript | 9 ++--- 3 files changed, 10 insertions(+), 13 deletions(-) create mode 100644

[Mesa-dev] [PATCH 09/29] freedreno: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/drivers/freedreno/Makefile.am | 13 ++--- src/gallium/drivers/freedreno/Makefile.sources | 11 +++ src/gallium/drivers/freedreno/a2xx/Makefile.am | 17 ++---

[Mesa-dev] [PATCH 10/29] identity: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 1 + src/gallium/drivers/Makefile.am | 11 +-- src/gallium/drivers/identity/Makefile.am | 11 +++ src/gallium/drivers/identity/Makefile.sources | 4

[Mesa-dev] [PATCH 11/29] noop: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 1 + src/gallium/drivers/Makefile.am | 13 + src/gallium/drivers/noop/Makefile.am | 16 src/gallium/drivers/noop/Makefile.sources | 3 +++

[Mesa-dev] [PATCH 12/29] galahad: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 1 + src/gallium/drivers/Makefile.am | 21 + src/gallium/drivers/galahad/Makefile.am | 16 src/gallium/drivers/galahad/Makefile.sources |

[Mesa-dev] [PATCH 13/29] st/clover: consolidate CPP sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/clover/Makefile.am | 43 ++ src/gallium/state_trackers/clover/Makefile.sources | 40 2 files changed, 43 insertions(+), 40 deletions(-) create mode 100644

[Mesa-dev] [PATCH 14/29] st/dri: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/dri/drm/Makefile.am | 7 ++- src/gallium/state_trackers/dri/drm/Makefile.sources | 5 + src/gallium/state_trackers/dri/drm/SConscript | 9 + 3 files changed, 8 insertions(+), 13

[Mesa-dev] [PATCH 15/29] st/dri/sw: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/dri/sw/Makefile.am | 7 ++- src/gallium/state_trackers/dri/sw/Makefile.sources | 5 + src/gallium/state_trackers/dri/sw/SConscript | 9 + 3 files changed, 8 insertions(+), 13

[Mesa-dev] [PATCH 16/29] st/egl: consolidate C sources lists into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/egl/Android.mk | 12 ++-- src/gallium/state_trackers/egl/Makefile.am | 31 +--- src/gallium/state_trackers/egl/Makefile.sources | 39 +

[Mesa-dev] [PATCH 17/29] st/gbm: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/gbm/Makefile.am | 3 ++- src/gallium/state_trackers/gbm/Makefile.sources | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/gallium/state_trackers/gbm/Makefile.sources diff --git

[Mesa-dev] [PATCH 18/29] st/glx: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Move glx/{,xlib/}Makefile.am to preserve file list Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- configure.ac | 2 +- src/gallium/state_trackers/Makefile.am| 2 +- src/gallium/state_trackers/glx/{ = xlib}/Makefile.am | 8

[Mesa-dev] [PATCH 19/29] st/osmesa: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/osmesa/Makefile.am | 4 ++-- src/gallium/state_trackers/osmesa/Makefile.sources | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/gallium/state_trackers/osmesa/Makefile.sources

[Mesa-dev] [PATCH 20/29] st/vdpau: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/vdpau/Makefile.am | 14 ++ src/gallium/state_trackers/vdpau/Makefile.sources | 12 2 files changed, 14 insertions(+), 12 deletions(-) create mode 100644

[Mesa-dev] [PATCH 21/29] st/vega: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/vega/Makefile.am | 32 ++ src/gallium/state_trackers/vega/Makefile.sources | 30 + src/gallium/state_trackers/vega/SConscript | 34 +--- 3

[Mesa-dev] [PATCH 22/29] st/wgl: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/wgl/Makefile.sources | 15 +++ src/gallium/state_trackers/wgl/SConscript | 19 +-- 2 files changed, 16 insertions(+), 18 deletions(-) create mode 100644

[Mesa-dev] [PATCH 23/29] st/xa: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/xa/Makefile.am | 9 ++--- src/gallium/state_trackers/xa/Makefile.sources | 7 +++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 src/gallium/state_trackers/xa/Makefile.sources

[Mesa-dev] [PATCH 24/29] st/xorg: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/xorg/Makefile.am | 14 +++--- src/gallium/state_trackers/xorg/Makefile.sources | 11 +++ src/gallium/state_trackers/xorg/SConscript | 15 +-- 3 files changed, 15

[Mesa-dev] [PATCH 25/29] st/xvmc: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/xvmc/Makefile.am | 8 ++-- src/gallium/state_trackers/xvmc/Makefile.sources | 6 ++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644

[Mesa-dev] [PATCH 27/29] winsys/nouveau/drm: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/winsys/nouveau/drm/Android.mk | 4 ++-- src/gallium/winsys/nouveau/drm/Makefile.am | 3 ++- src/gallium/winsys/nouveau/drm/Makefile.sources | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644

[Mesa-dev] [PATCH 26/29] winsys/i915/sw: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/winsys/i915/sw/Makefile.am | 7 ++- src/gallium/winsys/i915/sw/Makefile.sources | 5 + src/gallium/winsys/i915/sw/SConscript | 7 +-- 3 files changed, 8 insertions(+), 11 deletions(-) create mode 100644

[Mesa-dev] [PATCH 28/29] winsys/freedreno/drm: consolidate C sources list into Makefile.sources

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/winsys/freedreno/drm/Makefile.am | 3 ++- src/gallium/winsys/freedreno/drm/Makefile.sources | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/gallium/winsys/freedreno/drm/Makefile.sources diff

[Mesa-dev] [PATCH 29/29] winsys/freedreno/drm: drop obsolete .gitignore

2013-09-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/winsys/freedreno/drm/.gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 src/gallium/winsys/freedreno/drm/.gitignore diff --git a/src/gallium/winsys/freedreno/drm/.gitignore

[Mesa-dev] [Bug 69682] New: mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 Priority: medium Bug ID: 69682 Assignee: mesa-dev@lists.freedesktop.org Summary: mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?) Severity: normal

[Mesa-dev] [Bug 69682] mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 --- Comment #1 from Denis M. (Phr33d0m) g...@politeia.in --- Created attachment 86329 -- https://bugs.freedesktop.org/attachment.cgi?id=86329action=edit X-crash-backtrace.txt -- You are receiving this mail because: You are the assignee for

Re: [Mesa-dev] [PATCH 4/7] mesa: Convert some runtime asserts to static asserts.

2013-09-22 Thread Dave Airlie
On Sun, Sep 22, 2013 at 12:57 AM, Brian Paul brian.e.p...@gmail.com wrote: On Fri, Sep 20, 2013 at 7:52 PM, Eric Anholt e...@anholt.net wrote: Noticed while grepping through the code for something else. --- src/mesa/program/program.c | 36 ++-- 1 file changed,

[Mesa-dev] [Bug 69682] mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 Ian Romanick i...@freedesktop.org changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 66359] Mesa crashes in _mesa_VertexAttrib2dvNV on starting KDE 4.11

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66359 Ian Romanick i...@freedesktop.org changed: What|Removed |Added CC||g...@politeia.in ---

[Mesa-dev] [Bug 69682] mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 Marek Olšák mar...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Mesa-dev] [Bug 69682] mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 --- Comment #4 from Marek Olšák mar...@gmail.com --- Sorry for reopening. Anyway, Denis, please attach your xorg.conf. I think this can be fixed at least for you. -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 69682] mesa-9.2.0 and glamor-0.5.1 crash X - (?) _mesa_GetVertexAttribdv (?)

2013-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69682 --- Comment #5 from Kenneth Graunke kenn...@whitecape.org --- ajax is talking about things related to this at XDC this year. There are definitely solutions. -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH] i965/hsw: compute DDX in a subspan based only on top row

2013-09-22 Thread Chia-I Wu
On Fri, Sep 20, 2013 at 10:50 PM, Paul Berry stereotype...@gmail.com wrote: On 17 September 2013 19:54, Chia-I Wu olva...@gmail.com wrote: Hi Paul, On Mon, Sep 16, 2013 at 3:46 PM, Chia-I Wu olva...@gmail.com wrote: On Sat, Sep 14, 2013 at 5:15 AM, Paul Berry stereotype...@gmail.com

Re: [Mesa-dev] [PATCH 4/7] mesa: Convert some runtime asserts to static asserts.

2013-09-22 Thread Kenneth Graunke
On 09/22/2013 01:53 PM, Dave Airlie wrote: On Sun, Sep 22, 2013 at 12:57 AM, Brian Paul brian.e.p...@gmail.com wrote: [snip] It's worrisome that our STATIC_ASSERT macro is silent at compile time when the expression isn't a compile-time constant. The problem with our macro now is

Re: [Mesa-dev] [PATCH 3/7 v2] mesa: Shrink the size of the enum string lookup struct.

2013-09-22 Thread Kenneth Graunke
On 09/22/2013 12:56 PM, Eric Anholt wrote: Since it's only used for debug information, we can misalign the struct and save the disk space. Another 19k on a 64-bit build. v2: Make a compiler.h macro to only use the attribute if we know we can. --- src/mapi/glapi/gen/gl_enums.py | 6 --

Re: [Mesa-dev] [PATCH 02/29] mesa/drivers: drop HAVE_*_DRI from individual makefiles

2013-09-22 Thread Kenneth Graunke
On 09/22/2013 01:29 PM, Emil Velikov wrote: The mesa/drivers/dri/Makefile.am already guards the individual targets/subdirs with HAVE_*_DRI before including them. Thus making the additional check within each Makefile.am unnecessary. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com ---