Re: [Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-05 Thread Paul Berry
On 5 November 2013 14:58, Paul Berry wrote: > On 1 November 2013 17:31, Matt Turner wrote: > >> total instructions in shared programs: 1649485 -> 1649157 (-0.02%) >> instructions in affected programs: 7823 -> 7495 (-4.19%) >> --- >> src/mesa/drivers/dri/i965/Makefile.sources | 1 +

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-05 Thread Tapani Pälli
On 11/06/2013 12:14 AM, Paul Berry wrote: On 1 November 2013 05:08, Tapani Pälli > wrote: On 11/01/2013 12:38 PM, Erik Faye-Lund wrote: On Fri, Nov 1, 2013 at 11:35 AM, Tapani Pälli mailto:tapani.pa...@intel.com>> wrote: On 11/01/2

Re: [Mesa-dev] [PATCH] i965: Fix compiler warning.

2013-11-05 Thread Kenneth Graunke
On 10/30/2013 02:58 PM, Courtney Goeltzenleuchter wrote: > fix: intel_screen.c:1320:4: warning: initialization from > incompatible pointer type [enabled by default] > --- > src/mesa/drivers/dri/i965/brw_context.c | 2 +- > src/mesa/drivers/dri/i965/brw_context.h | 2 +- > 2 files changed, 2 insert

[Mesa-dev] [PATCH 3/3] i965/fs: Prefer things we know reduce reg pressure when pre-scheduling.

2013-11-05 Thread Eric Anholt
Previously, the best thing we had was to schedule the things unblocked by the last chosen instruction, on the hope that it would be consuming two values at the end of their live intervals while only producing one new value. But that's just a guess, and we can do counting of usage of registers to k

[Mesa-dev] [PATCH 1/3] i965: Add a warning if something ever hits a bug I noticed.

2013-11-05 Thread Eric Anholt
We'd have to map the VBO and rewrite things to a lower stride to fix it. --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 4da1b7e..8b1f0c5 100644

[Mesa-dev] [PATCH 2/3] i965: Fix undefined value usage in ABO setup.

2013-11-05 Thread Eric Anholt
Fixes a compiler warning. --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 46871c7..cbeaa32 100644 --- a/src/mesa/drive

Re: [Mesa-dev] [PATCH 5/7] mesa: Update TexStorage to support ARB_texture_view

2013-11-05 Thread Chris Forbes
You also need to update teximagemultisample (in teximage.c) which handles TexStorageMultisample* to do similar things. -- Chris On Wed, Nov 6, 2013 at 11:59 AM, Courtney Goeltzenleuchter wrote: > TexStorage now updates texture object state needed by > ARB_texture_view extension. > > Set appropri

[Mesa-dev] [PATCH] mesa: for GLSL_DUMP_ON_ERROR, also dump the info log

2013-11-05 Thread Brian Paul
Since it's helpful to know why the shader did not compile. Also, call fflush() for Windows. --- src/mesa/main/shaderapi.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 7da860d..1d9aac3 100644 --- a/src/mesa/main/shaderapi.c +++

[Mesa-dev] [PATCH 2/2] mesa: Build program as part of libmesa.

2013-11-05 Thread Matt Turner
--- Right you are! This version fixes out of tree builds by mkdir'ing the program folder in the builddir. Makefile.am | 2 +- configure.ac | 1 - src/mesa/Makefile.am | 26 + src/mesa/program/Makefile.am | 45

Re: [Mesa-dev] Fix crashes with static LLVM

2013-11-05 Thread Tom Stellard
On Wed, Oct 23, 2013 at 04:26:18PM -0400, Tom Stellard wrote: > Hi, > > The attached patches introduce linker scripts to the pipe-loader and > egl-static targets. The linker scripts prevents these targets from > exporting LLVM (and other) symbols that they shouldn't be. This fixes > several cras

[Mesa-dev] [PATCH] i965/fs: Fix message setup for SIMD8 spills.

2013-11-05 Thread Eric Anholt
In the SIMD16 spilling changes, I replaced a "1" in the spill path with "mlen", but obviously it wasn't mlen before because spills have the g0 header along with the payload. The interface I was trying to use was asking for how many physical regs we're writing, so we're looking for "1" or "2". I'm

Re: [Mesa-dev] [PATCH 0/8] Add DRIimage-based DRI3/Present loader

2013-11-05 Thread Keith Packard
Eric Anholt writes: > It seems like we could just stick these things in __DRI_CORE as opposed > to having another new extension to look up. Having the driver expose this new extension is how I tell that the driver is going to actually call the __DRIimage-based loader; the alternative to a new ex

Re: [Mesa-dev] [PATCH 4/4] i965: Combine {brw, gen7}_update_texture_buffer_surface() functions.

2013-11-05 Thread Paul Berry
On 1 November 2013 20:23, Kenneth Graunke wrote: > Now that brw_update_texture_buffer_surface() uses the virtual > emit_buffer_surface_state() function, it works for Gen7+ too. > > Signed-off-by: Kenneth Graunke > Series is: Reviewed-by: Paul Berry > --- > src/mesa/drivers/dri/i965/brw_con

[Mesa-dev] [PATCH] st/vdpau: resolve delayed rendering for GL interop

2013-11-05 Thread Grigori Goronzy
Otherwise OutputSurface interop has funny results sometimes. This fixes interop with the mpv media player. --- src/gallium/state_trackers/vdpau/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index

Re: [Mesa-dev] [PATCH 2/2] mesa: Build program as part of libmesa.

2013-11-05 Thread Emil Velikov
On 05/11/13 00:11, Matt Turner wrote: > --- > Makefile.am | 2 +- > configure.ac | 1 - > src/mesa/Makefile.am | 24 +++ > src/mesa/program/Makefile.am | 45 > > 4 files changed, 17 inserti

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Emil Velikov
On 05/11/13 18:55, Matt Turner wrote: > On Tue, Nov 5, 2013 at 10:49 AM, Emil Velikov > wrote: >> Now we have one intermediate library (archive), which links against both >> mesa classic and gallium. Whereas with your patch it builds it twice but >> drops the linking part. Is the extra recursion

[Mesa-dev] [PATCH 2/3] build: Change HAVE_X86_ASM to mean x86 or x86-64 asm.

2013-11-05 Thread Matt Turner
I want a conditional that says generally "we have x86 assembly" in the next patch. --- configure.ac | 2 +- src/mapi/glapi/Makefile.am | 5 +++-- src/mapi/glapi/gen/Makefile.am | 6 +++--- src/mesa/Makefile.am | 7 --- src/mesa/x86/Makefile.am | 2 ++ 5 fi

[Mesa-dev] [PATCH 1/3] configure.ac: Test $asm_arch directly.

2013-11-05 Thread Matt Turner
--- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 433470b..633d86e 100644 --- a/configure.ac +++ b/configure.ac @@ -1938,9 +1938,9 @@ AM_CONDITIONAL(HAVE_X11_DRIVER, test "x$enable_xlib_glx" = xyes) AM_CONDITIONAL(HAVE_OS

[Mesa-dev] [PATCH 3/3] build: Build gen_matypes and matypes.h from src/mesa.

2013-11-05 Thread Matt Turner
--- configure.ac| 4 +--- src/mesa/.gitignore | 2 ++ src/mesa/Makefile.am| 16 +- src/mesa/x86-64/.gitignore | 2 -- src/mesa/x86-64/Makefile.am | 49 --- src/mesa/x86/.gitignore | 2 -- src/mesa/x86/Make

[Mesa-dev] [PATCH] configure.ac: Drop no-out-of-tree notice.

2013-11-05 Thread Matt Turner
We do support out of tree builds now. Cc: Colin Walters --- configure.ac | 4 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac index bbdad83..433470b 100644 --- a/configure.ac +++ b/configure.ac @@ -14,10 +14,6 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_SYSTEM AM_IN

[Mesa-dev] [PATCH 4/7] mesa: ARB_texture_view get parameters

2013-11-05 Thread Courtney Goeltzenleuchter
Add support for ARB_texture_view get parameters: GL_TEXTURE_VIEW_MIN_LEVEL GL_TEXTURE_VIEW_NUM_LEVELS GL_TEXTURE_VIEW_MIN_LAYER GL_TEXTURE_VIEW_NUM_LAYERS Incorporate feedback regarding when to allow query of GL_TEXTURE_IMMUTABLE_LEVELS. --- src/mesa/main/texparam.c | 60 +

[Mesa-dev] [PATCH 3/7] mesa: update texture object for ARB_texture_view

2013-11-05 Thread Courtney Goeltzenleuchter
Add state needed by glTextureView to the gl_texture_object. --- src/mesa/main/mtypes.h | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a35e9d9..2c5343c 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1192,6 +1192,1

[Mesa-dev] [PATCH 5/7] mesa: Update TexStorage to support ARB_texture_view

2013-11-05 Thread Courtney Goeltzenleuchter
TexStorage now updates texture object state needed by ARB_texture_view extension. Set appropriate TextureView state in texture object. --- src/mesa/main/texstorage.c | 33 + 1 file changed, 33 insertions(+) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/t

[Mesa-dev] [PATCH 1/7] mesa: Add API definitions for ARB_texture_view

2013-11-05 Thread Courtney Goeltzenleuchter
Stub in glTextureView API call to go with the glTextureView API xml definition. Includes dispatch test for glTextureView --- src/mapi/glapi/gen/ARB_texture_view.xml | 23 src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 6 ++- src/mapi/glapi/g

[Mesa-dev] [PATCH 2/7] mesa: Tracking for ARB_texture_view extension

2013-11-05 Thread Courtney Goeltzenleuchter
--- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 48c4e9f..75591b0 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -156,6 +156,7 @@ static

[Mesa-dev] [PATCH 6/7] mesa: Add driver entry point for ARB_texture_view

2013-11-05 Thread Courtney Goeltzenleuchter
--- src/mesa/drivers/common/driverfuncs.c | 3 +++ src/mesa/main/dd.h| 5 + 2 files changed, 8 insertions(+) diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index 5faa98a..f185688 100644 --- a/src/mesa/drivers/common/driverfuncs.

[Mesa-dev] [PATCH 7/7] mesa: Fill out ARB_texture_view entry points

2013-11-05 Thread Courtney Goeltzenleuchter
Add Mesa TextureView logic. Incorporate feedback on ARB_texture_view --- src/mesa/main/texstorage.c | 3 +- src/mesa/main/textureview.c | 558 +++- 2 files changed, 558 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main

[Mesa-dev] [PATCH 0/7] Add ARB_texture_view

2013-11-05 Thread Courtney Goeltzenleuchter
The following patches add the necessary functions to Mesa to support ARB_texture_view. These patches do not include the actual driver elements, just the device independent portion. This extension requires ARB_texture_storage. The extension supports one new API call, glTextureView and a handful of

Re: [Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-05 Thread Paul Berry
On 1 November 2013 17:31, Matt Turner wrote: > total instructions in shared programs: 1649485 -> 1649157 (-0.02%) > instructions in affected programs: 7823 -> 7495 (-4.19%) > --- > src/mesa/drivers/dri/i965/Makefile.sources | 1 + > src/mesa/drivers/dri/i965/brw_fs.cpp

Re: [Mesa-dev] [PATCH 5/8] dri/common: Add functions mapping MESA_FORMAT_* <-> __DRI_IMAGE_FORMAT_*

2013-11-05 Thread Jordan Justen
On Mon, Nov 4, 2013 at 8:11 PM, Keith Packard wrote: > Jordan Justen writes: >> After patch 6, this will add SARGB8, right? So, maybe add this to the >> commit message, or separate out adding SARGB8 into a separate commit? > > I added the SARGB8 define in patch 4; is there some other separation y

[Mesa-dev] [PATCH 02/11] mesa: Split out the format code from update_array()

2013-11-05 Thread Fredrik Höglund
Split out the code for updating the array format into a new function called update_array_format(). This function will be called by both update_array() and the new glVertexAttrib*Format() entry points in ARB_vertex_attrib_binding. Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/m

[Mesa-dev] [PATCH 11/11] docs: Mark ARB_vertex_attrib_binding as done, update relnotes

2013-11-05 Thread Fredrik Höglund
--- docs/GL3.txt|2 +- docs/relnotes/10.0.html |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 03b24ed..c35f014 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -161,7 +161,7 @@ GL_ARB_texture_buffer_range

[Mesa-dev] [PATCH 03/11] mesa: Rename gl_array_object::VertexAttrib to _VertexAttrib

2013-11-05 Thread Fredrik Höglund
This will become derived state as part of the ARB_vertex_attrib_binding support. Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/main/api_arrayelt.c | 36 ++--- src/mesa/main/api_validate.c |6 ++-- src/mesa/main/arrayobj.c | 26 +++---

[Mesa-dev] [PATCH 08/11] mesa: Handle zero-stride arrays in _mesa_update_array_max_element()

2013-11-05 Thread Fredrik Höglund
Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/main/varray.h |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index a75cb7d..8a9487c 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -5

[Mesa-dev] [PATCH 09/11] mesa: Optimize rebinding the same VBO

2013-11-05 Thread Fredrik Höglund
Check if the new buffer object has the same name as the current buffer object before looking it up. Reviewed-by: Eric Anholt --- src/mesa/main/varray.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 39e5ad3..102

[Mesa-dev] [PATCH 05/11] glapi: Add infrastructure for ARB_vertex_attrib_binding

2013-11-05 Thread Fredrik Höglund
Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml | 58 ++ src/mapi/glapi/gen/Makefile.am |1 + src/mapi/glapi/gen/gl_API.xml|6 ++- src/mesa/main/tests/dispatch_sanity.cpp

[Mesa-dev] [PATCH 00/11] Implement GL_ARB_vertex_attrib_binding

2013-11-05 Thread Fredrik Höglund
So here's ARB_vertex_attrib_binding, take two. This incorporates all the feedback from Eric and Ian. Patches 6, 7, and 8 in the previous series have now been squashed into patch 5. This is unfortunate, since patch 5 was already larger than I would have liked, but unfortunately it's necessary to

[Mesa-dev] [PATCH 10/11] mesa: Enable ARB_vertex_attrib_binding

2013-11-05 Thread Fredrik Höglund
--- src/mesa/main/extensions.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 48c4e9f..0815eec 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -165,6 +165,7 @@ static const struct extension extension_

[Mesa-dev] [PATCH 07/11] mesa: Add Get* support for ARB_vertex_attrib_binding

2013-11-05 Thread Fredrik Höglund
Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/main/get.c | 24 src/mesa/main/get_hash_params.py |4 src/mesa/main/varray.c | 10 ++ 3 files changed, 38 insertions(+) diff --git a/src/mesa/main/get.c b/src/mes

[Mesa-dev] [PATCH 04/11] mesa: Make handle_bind_buffer_gen() non-static

2013-11-05 Thread Fredrik Höglund
...and rename it to _mesa_bind_buffer_gen(). This is so the function can be called from _mesa_BindVertexBuffer(). This patch also adds a caller parameter so we can report the right entry point in error messages. Based on a patch by Eric Anholt. Reviewed-by: Eric Anholt Reviewed-by: Ian Romanic

[Mesa-dev] [PATCH 01/11] mesa: Restore gl_array_object::NewArray

2013-11-05 Thread Fredrik Höglund
This will be used by the ARB_vertex_attrib_binding implementation. This reverts commit db38e9a0e179441f59274f6f2a751912c29872e2. Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/main/enable.c |2 ++ src/mesa/main/mtypes.h |3 +++ src/mesa/main/state.c |1 + src/mesa/

Re: [Mesa-dev] [PATCH] glsl: cleanup, remove duplicate assignment

2013-11-05 Thread Paul Berry
On 1 November 2013 03:21, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > src/glsl/glsl_parser_extras.cpp | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/glsl/glsl_parser_extras.cpp > b/src/glsl/glsl_parser_extras.cpp > index be17109..8f66d5f 100644 > --- a/src/glsl/glsl_p

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-05 Thread Paul Berry
On 1 November 2013 05:08, Tapani Pälli wrote: > On 11/01/2013 12:38 PM, Erik Faye-Lund wrote: > >> On Fri, Nov 1, 2013 at 11:35 AM, Tapani Pälli >> wrote: >> >>> On 11/01/2013 12:21 PM, Erik Faye-Lund wrote: >>> Won't using the git-sha1 as a compatibility-criteria cause issues for

Re: [Mesa-dev] [PATCH 0/8] Add DRIimage-based DRI3/Present loader

2013-11-05 Thread Kristian Høgsberg
On Tue, Nov 05, 2013 at 12:04:32PM -0800, Eric Anholt wrote: > Keith Packard writes: > > > Keith Packard writes: > > > >> This sequence first adds a a couple of new DRIimage extensions to the > >> dri/common, dri/i915 and dri/i965 directories which define a > >> loader-independent API for managi

Re: [Mesa-dev] [v2 5/6] glsl: functions to serialize gl_shader and gl_shader_program

2013-11-05 Thread Paul Berry
On 1 November 2013 02:16, Tapani Pälli wrote: > These utility functions can be used to (de)serialize gl_shader and > gl_shader_program structures. This makes it possible to implement a > shader compiler cache for individual shaders and functionality required > by OES_get_program_binary extension.

[Mesa-dev] [PATCH 2/2] i965: Add an implementation of intel_miptree_map using streaming loads.

2013-11-05 Thread Matt Turner
--- Chad has benchmark numbers, I think. src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 2f5e04f..17f0075 100644 ---

[Mesa-dev] [PATCH 1/2] mesa: Add a streaming load memcpy implementation.

2013-11-05 Thread Matt Turner
Uses SSE 4.1's MOVNTDQA instruction (streaming load) to read from uncached memory without polluting the cache. --- We should add runtime detection support later. src/mesa/Makefile.am | 10 + src/mesa/main/streaming-load-memcpy.c | 85 +++ src/m

[Mesa-dev] [PATCH] mesa: Add API debug logging to TexStorage

2013-11-05 Thread Courtney Goeltzenleuchter
Give glTexStorage* equivalent debug logging to glTexImage*. Signed-off-by: Courtney Goeltzenleuchter --- src/mesa/main/texstorage.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 7bd8652..84b8f82 100644 --- a/src/mesa/main

Re: [Mesa-dev] [PATCH 3/4] mesa: fix build on kFreeBSD

2013-11-05 Thread Andreas Boll
I think we could simplify this a bit. 2013/11/5 Fabio Pedretti : > From: Aurelien Jarno > From: Cyril Brulebois > > mesa fails to build on GNU/kFreeBSD, since some parts are not enabled. > > Debian bug: http://bugs.debian.org/524690 > > Patch from Debian package > --- > configure.ac | 6 +++---

[Mesa-dev] [PATCH] clover: mark gcc < 4.7.3 as broken

2013-11-05 Thread David Heidelberger
--- configure.ac | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index dc15ad4..20b1769 100644 --- a/configure.ac +++ b/configure.ac @@ -109,6 +109,7 @@ if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then if test $? -eq 0; then

Re: [Mesa-dev] [PATCH] i965/gen6: Don't allow SIMD16 dispatch in 4x PERPIXEL mode with computed depth.

2013-11-05 Thread Paul Berry
On 5 November 2013 12:13, Chris Forbes wrote: > Unfortunate :( > > Is the bad behavior from violating this restriction observable? > That's unclear. Sometimes restrictions like this wind up in the hardware docs because a hardware bug was found, in which case yes, the bad behaviour is definitely

Re: [Mesa-dev] [PATCH] i965/gen6: Don't allow SIMD16 dispatch in 4x PERPIXEL mode with computed depth.

2013-11-05 Thread Chris Forbes
Unfortunate :( Is the bad behavior from violating this restriction observable? In any case, Reviewed-by: Chris Forbes On Wed, Nov 6, 2013 at 7:43 AM, Eric Anholt wrote: > Paul Berry writes: > >> Hardware docs say we can only use SIMD8 dispatch in this condition. > > Reviewed-by: Eric Anholt

Re: [Mesa-dev] [PATCH] gallivm: optimize lp_build_minify for sse

2013-11-05 Thread Jose Fonseca
Looks great to me Jose - Original Message - > From: Roland Scheidegger > > SSE can't handle true vector shifts (with variable shift count), > so llvm is turning them into a mess of extracts, scalar shifts and inserts. > It is however possible to emulate them in lp_build_minify with floa

Re: [Mesa-dev] [PATCH 0/8] Add DRIimage-based DRI3/Present loader

2013-11-05 Thread Eric Anholt
Keith Packard writes: > Keith Packard writes: > >> This sequence first adds a a couple of new DRIimage extensions to the >> dri/common, dri/i915 and dri/i965 directories which define a >> loader-independent API for managing window system operations. >> >> The last patch adds a new DRI3000 loader

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Courtney Goeltzenleuchter
On Tue, Nov 5, 2013 at 12:22 PM, Ian Romanick wrote: > On 11/05/2013 09:44 AM, Chris Forbes wrote: > >> So, you can create a GL_LUMINANCE view of a GL_LUMINANCE texture. > Hmm... > > > > My understanding is you can't actually, since views can only be > > created from immutable-format textures, a

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Ian Romanick
On 11/05/2013 09:44 AM, Chris Forbes wrote: >> So, you can create a GL_LUMINANCE view of a GL_LUMINANCE texture. Hmm... > > My understanding is you can't actually, since views can only be > created from immutable-format textures, and GL_LUMINANCE is not a > sized internalformat, so it can't be us

Re: [Mesa-dev] [PATCH] gallivm: optimize lp_build_minify for sse

2013-11-05 Thread Brian Paul
On 11/05/2013 11:22 AM, srol...@vmware.com wrote: From: Roland Scheidegger SSE can't handle true vector shifts (with variable shift count), so llvm is turning them into a mess of extracts, scalar shifts and inserts. It is however possible to emulate them in lp_build_minify with float muls, whic

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Chad Versace
On 11/05/2013 10:55 AM, Emil Velikov wrote: On 05/11/13 18:18, Chad Versace wrote: On 11/02/2013 12:00 PM, Emil Velikov wrote: Rip out the source file list from mesa/Makefile.sources, to a more sensible location/file. * Split PROGRAM_FILES and GENERATED_FILES. * Update the automake and Android

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Matt Turner
On Tue, Nov 5, 2013 at 10:49 AM, Emil Velikov wrote: > Now we have one intermediate library (archive), which links against both > mesa classic and gallium. Whereas with your patch it builds it twice but > drops the linking part. Is the extra recursion + linking that much more > significant than re

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Emil Velikov
On 05/11/13 18:18, Chad Versace wrote: > On 11/02/2013 12:00 PM, Emil Velikov wrote: >> Rip out the source file list from mesa/Makefile.sources, to a >> more sensible location/file. >> * Split PROGRAM_FILES and GENERATED_FILES. >> * Update the automake and Android build systems. >> >> Android >> *

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Emil Velikov
On 05/11/13 18:28, Matt Turner wrote: > On Sat, Nov 2, 2013 at 12:00 PM, Emil Velikov > wrote: >> Rip out the source file list from mesa/Makefile.sources, to a >> more sensible location/file. >> * Split PROGRAM_FILES and GENERATED_FILES. >> * Update the automake and Android build systems. >> >> A

Re: [Mesa-dev] [PATCH 1/2] mesa: Add unreachable macro.

2013-11-05 Thread Matt Turner
On Mon, Nov 4, 2013 at 4:43 PM, Matt Turner wrote: > --- > src/mesa/main/compiler.h | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h > index 61ce5db..6a25bf5 100644 > --- a/src/mesa/main/compiler.h > +++ b/src/mesa/main/

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Courtney Goeltzenleuchter
On Tue, Nov 5, 2013 at 9:40 AM, Ian Romanick wrote: > On 11/04/2013 03:34 PM, Courtney Goeltzenleuchter wrote: > > > > On Fri, Nov 1, 2013 at 1:42 PM, Ian Romanick > > wrote: > > > > On 11/01/2013 09:54 AM, Courtney Goeltzenleuchter wrote: > > > @@ -1746,11 +

Re: [Mesa-dev] [PATCH] i965/gen6: Don't allow SIMD16 dispatch in 4x PERPIXEL mode with computed depth.

2013-11-05 Thread Eric Anholt
Paul Berry writes: > Hardware docs say we can only use SIMD8 dispatch in this condition. Reviewed-by: Eric Anholt pgp21UAGwJEfM.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mail

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Courtney Goeltzenleuchter
On Tue, Nov 5, 2013 at 10:44 AM, Chris Forbes wrote: > > So, you can create a GL_LUMINANCE view of a GL_LUMINANCE texture. Hmm... > > My understanding is you can't actually, since views can only be > created from immutable-format textures, and GL_LUMINANCE is not a > sized internalformat, so it

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Matt Turner
On Sat, Nov 2, 2013 at 12:00 PM, Emil Velikov wrote: > Rip out the source file list from mesa/Makefile.sources, to a > more sensible location/file. > * Split PROGRAM_FILES and GENERATED_FILES. > * Update the automake and Android build systems. > > Android > * Slightly reshuffle the Android.mk for

[Mesa-dev] [PATCH] gallivm: optimize lp_build_minify for sse

2013-11-05 Thread sroland
From: Roland Scheidegger SSE can't handle true vector shifts (with variable shift count), so llvm is turning them into a mess of extracts, scalar shifts and inserts. It is however possible to emulate them in lp_build_minify with float muls, which should be way faster (saves over 20 instructions p

Re: [Mesa-dev] [PATCH 10/37] mesa/program: move source files list to Makefile.sources

2013-11-05 Thread Chad Versace
On 11/02/2013 12:00 PM, Emil Velikov wrote: Rip out the source file list from mesa/Makefile.sources, to a more sensible location/file. * Split PROGRAM_FILES and GENERATED_FILES. * Update the automake and Android build systems. Android * Slightly reshuffle the Android.mk for readability sake. * U

[Mesa-dev] [PATCH] i965/gen6: Don't allow SIMD16 dispatch in 4x PERPIXEL mode with computed depth.

2013-11-05 Thread Paul Berry
Hardware docs say we can only use SIMD8 dispatch in this condition. --- src/mesa/drivers/dri/i965/gen6_wm_state.c | 34 ++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Chris Forbes
> So, you can create a GL_LUMINANCE view of a GL_LUMINANCE texture. Hmm... My understanding is you can't actually, since views can only be created from immutable-format textures, and GL_LUMINANCE is not a sized internalformat, so it can't be used with TexStorage? _

Re: [Mesa-dev] 9.2.2 OSMesa classic 80 new regressions in VTK

2013-11-05 Thread Ian Romanick
On 11/05/2013 09:32 AM, burlen wrote: > Upgrading from 9.2.0 to 9.2.2 with OSMesa classic I'm seeing 80 new > regressions in VTK. > http://open.cdash.org/viewTest.php?onlyfailed&buildid=3087854 > click "Failed" to see an image diff. Maybe related to line rendering? > Any chance a mesa developer cou

[Mesa-dev] 9.2.2 OSMesa classic 80 new regressions in VTK

2013-11-05 Thread burlen
Upgrading from 9.2.0 to 9.2.2 with OSMesa classic I'm seeing 80 new regressions in VTK. http://open.cdash.org/viewTest.php?onlyfailed&buildid=3087854 click "Failed" to see an image diff. Maybe related to line rendering? Any chance a mesa developer could investigate? Burlen _

Re: [Mesa-dev] [PATCH 1/6] st/draw: silence Mingw warning in pointer_to_offset()

2013-11-05 Thread Ian Romanick
On 10/29/2013 01:11 PM, Brian Paul wrote: > Fixes "warning: cast from pointer to integer of different size" for > 64-bit builds. > --- > src/mesa/state_tracker/st_draw.h |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/state_tracker/st_draw.h > b/src/mesa/stat

Re: [Mesa-dev] [PATCH 09/11] mesa: Add Get* support for ARB_vertex_attrib_binding

2013-11-05 Thread Ian Romanick
On 11/04/2013 03:10 PM, Fredrik Höglund wrote: > On Monday 04 November 2013, Ian Romanick wrote: >> On 10/28/2013 03:33 PM, Fredrik Höglund wrote: >> >> This needs some extension checks somewhere. > > I've added a check for ARB_instanced_arrays in the VERTEX_BINDING_DIVISOR > case. I didn't add c

[Mesa-dev] [PATCH 3/3] gbm: Add entry points for mapping and unmapping bos

2013-11-05 Thread Ander Conselvan de Oliveira
Add gbm_bo_map() and gbm_bo_unmap(). This lets a user access the contents of a bo using the CPU. --- I'm not sure about the extra flags. We do have GBM_BO_USE_WRITE but that is defined to always work with GBM_BO_USE_CURSOR_64X64. Reusing that would imply that these buffers are always mappable or

[Mesa-dev] [PATCH 1/3] gbm: Add intel backend

2013-11-05 Thread Ander Conselvan de Oliveira
This adds an intel backend that doesn't depend on dri. Its usage is limited since the current EGL implementation won't work with this as it is. --- src/gbm/Makefile.am| 12 ++ src/gbm/backends/intel/gbm_intel.c | 227 src/gbm/backends/intel/g

Re: [Mesa-dev] [PATCH 0/8] Add DRIimage-based DRI3/Present loader

2013-11-05 Thread Keith Packard
Keith Packard writes: > This sequence first adds a a couple of new DRIimage extensions to the > dri/common, dri/i915 and dri/i965 directories which define a > loader-independent API for managing window system operations. > > The last patch adds a new DRI3000 loader using those new interfaces. I'

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-05 Thread Ian Romanick
On 11/04/2013 03:34 PM, Courtney Goeltzenleuchter wrote: > > On Fri, Nov 1, 2013 at 1:42 PM, Ian Romanick > wrote: > > On 11/01/2013 09:54 AM, Courtney Goeltzenleuchter wrote: > > @@ -1746,11 +1770,37 @@ _mesa_GetTexParameteriv( GLenum target, > GLenum pn

[Mesa-dev] [PATCH 2/3] egl/dri: Add gbm platform

2013-11-05 Thread Ander Conselvan de Oliveira
This adds a GBM platform that doesn't depend on gbm's dri backend. This can be used, for instance, with the intel backend. This also adds a gbm_bo_export entrypoint to gbm, so that the EGL code can access the buffer. This is necessary since EGL won't share the fd width gbm when using the new platf

[Mesa-dev] [RFC] [PATCH 0/3] gbm: Add support for mapping bos

2013-11-05 Thread Ander Conselvan de Oliveira
Hi, This is a request for comments on the idea of being able to map gbm bos and how to implement it. The idea here is to take advantage of UMA atchitectures when the contents on the screen are a mix of GPU and CPU rendered. One of the problems of adding a map entry point to gbm is the fact that i

[Mesa-dev] R: Re: [PATCH 2/4] mesa: add aarch64 support

2013-11-05 Thread Fabio Pedretti
>On 11/05/2013 04:49 AM, Fabio Pedretti wrote: >> Patch from Ubuntu package >> --- >> src/mesa/main/compiler.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h >> index 2820913..65c4141 100644 >> --- a/src/mesa/main/compiler.h >> +++

Re: [Mesa-dev] [PATCH 2/4] mesa: add arm64 support

2013-11-05 Thread Brian Paul
On 11/05/2013 08:51 AM, Fabio Pedretti wrote: Patch from Ubuntu package --- src/mesa/main/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 2820913..d7a52d2 100644 --- a/src/mesa/main/compiler.h +++ b/src/me

[Mesa-dev] [PATCH 2/4] mesa: add arm64 support

2013-11-05 Thread Fabio Pedretti
Patch from Ubuntu package --- src/mesa/main/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 2820913..d7a52d2 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -311,7 +311,7 @@ static INLI

Re: [Mesa-dev] [PATCH 3/4] mesa: fix build on kFreeBSD

2013-11-05 Thread Brian Paul
On 11/05/2013 04:49 AM, Fabio Pedretti wrote: From: Aurelien Jarno From: Cyril Brulebois mesa fails to build on GNU/kFreeBSD, since some parts are not enabled. Debian bug: http://bugs.debian.org/524690 Patch from Debian package --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+),

Re: [Mesa-dev] [PATCH 2/4] mesa: add aarch64 support

2013-11-05 Thread Brian Paul
On 11/05/2013 04:49 AM, Fabio Pedretti wrote: Patch from Ubuntu package --- src/mesa/main/compiler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 2820913..65c4141 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler

Re: [Mesa-dev] [PATCH] mesa: Remove last BEOS checks

2013-11-05 Thread Brian Paul
On 11/04/2013 06:34 PM, Alexander von Gluck IV wrote: * Goodbye BeOS, we hardly knew thee * As BeOS was gcc2 only, there was little chance of this being useful. * Doesn't effect Haiku in any meaningful way --- include/GL/gl.h |8 scons/gallium.py |2 -- 2 files changed, 1

Re: [Mesa-dev] [PATCH 6/6] vbo: fix MSVC double->float conversion warnings

2013-11-05 Thread Jose Fonseca
Series looks good AFAICT. Jose - Original Message - > --- > src/mesa/vbo/vbo_attrib_tmp.h |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h > index 02c283d..bbc0205 100644 > --- a/src/mesa/vbo/vb

[Mesa-dev] R: Re: [PATCH 1/4] r600/compute: silence unused var warning

2013-11-05 Thread Fabio Pedretti
I have no commit access, so feel free to push it. >Reviewed-by: Marek Olšák > >Marek > >On Tue, Nov 5, 2013 at 12:49 PM, Fabio Pedretti wrote: >> --- >> src/gallium/drivers/r600/evergreen_compute.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/src/gallium/drivers/r600/evergreen_com

Re: [Mesa-dev] [PATCH 1/5] mesa: remove Alpha CPU checks

2013-11-05 Thread Aaron Watry
On Mon, Nov 4, 2013 at 7:04 PM, Matt Turner wrote: > On Mon, Nov 4, 2013 at 4:48 PM, Brian Paul wrote: >> --- >> src/mesa/main/compiler.h |7 +-- >> 1 file changed, 1 insertion(+), 6 deletions(-) >> >> diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h >> index 61ce5db..275

Re: [Mesa-dev] [PATCH 1/4] r600/compute: silence unused var warning

2013-11-05 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Tue, Nov 5, 2013 at 12:49 PM, Fabio Pedretti wrote: > --- > src/gallium/drivers/r600/evergreen_compute.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/gallium/drivers/r600/evergreen_compute.c > b/src/gallium/drivers/r600/evergreen_compute.c > in

[Mesa-dev] [PATCH 2/4] mesa: add aarch64 support

2013-11-05 Thread Fabio Pedretti
Patch from Ubuntu package --- src/mesa/main/compiler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 2820913..65c4141 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -312,6 +312,7 @@ static INLINE GLuint CPU_TO

[Mesa-dev] [PATCH 1/4] r600/compute: silence unused var warning

2013-11-05 Thread Fabio Pedretti
--- src/gallium/drivers/r600/evergreen_compute.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index ea77f5e..ffdc5c3 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/driver

[Mesa-dev] [PATCH 4/4] mesa: fix build on kFreeBSD

2013-11-05 Thread Fabio Pedretti
Patch from Debian package --- src/gallium/auxiliary/rtasm/rtasm_execmem.c | 2 +- src/gallium/include/pipe/p_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c index 3c4b

[Mesa-dev] [PATCH 3/4] mesa: fix build on kFreeBSD

2013-11-05 Thread Fabio Pedretti
From: Aurelien Jarno From: Cyril Brulebois mesa fails to build on GNU/kFreeBSD, since some parts are not enabled. Debian bug: http://bugs.debian.org/524690 Patch from Debian package --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/confi