[Mesa-dev] Mesa 10.2.5

2014-08-02 Thread Carl Worth
Mesa 10.2.5 has been released. Mesa 10.2.5 is a bug fix release fixing bugs since the 10.2.4 release, (see below for a list of changes). The tag in the git repository for Mesa 10.2.5 is 'mesa-10.2.5'. Mesa 10.2.5 is available for download at ftp://freedesktop.org/pub/mesa/10.2.5/ SHA-256 checksu

[Mesa-dev] [PATCH] mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers

2014-08-02 Thread Ilia Mirkin
Native integers imply a somewhat different handling of booleans. Instead of being 1.0/0.0 floats, they are 0 (true) / -1 (false) integers. As such the original optimization no longer applies. Reported-by: Glenn Kennard Signed-off-by: Ilia Mirkin --- This fixes builtin-gl-sample-mask on nvc0, an

[Mesa-dev] [Bug 54372] GLX_INTEL_swap_event crashes driver when swapping window buffers

2014-08-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54372 --- Comment #27 from danm...@gmail.com --- Sorry to overload this bug, but I sent the glxusexfont patch to mesa-dev June 22, and it seems not to have been merged yet.. Ian can you help get this done? http://lists.freedesktop.org/archives/mesa

Re: [Mesa-dev] [Mesa-stable] Patches queued up for upcoming 10.2.5 release

2014-08-02 Thread Carl Worth
Emil Velikov writes: > The */14 patches from 2014-07-21 are super-seeded by the */29 ones sent a week > later. Hope that saves you a a bit of time going through the list :) Thanks. I've updated the queue to reflect that. > P.S. Would it be possible to grab patch status from patchwork to ease the

[Mesa-dev] [PATCH 1/7] i965: Add low-level support for indirect sends

2014-08-02 Thread Chris Forbes
This provides a reasonable place to enforce the hardware restriction that indirect descriptors must be in a0.0 Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_eu.h | 5 + src/mesa/drivers/dri/i965/brw_eu_emit.c | 15 +++ 2 files changed, 20 insertions(+) diff

[Mesa-dev] [PATCH 7/7] docs: Mark off ARB_gpu_shader5 UBO array indexing for i965

2014-08-02 Thread Chris Forbes
Signed-off-by: Chris Forbes --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index e241257..b90f4ca 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -102,7 +102,7 @@ GL 4.0: GL_ARB_gpu_shader5 star

[Mesa-dev] [PATCH 6/7] i965/vec4: Add visitor support for nonconst ubo block indexing

2014-08-02 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 29 +++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index e16e93c..f03b3c9 10

[Mesa-dev] [PATCH 3/7] i965/fs: Generate indirect sends for nonconstant UBO array accesses

2014-08-02 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 174 +++-- 1 file changed, 135 insertions(+), 39 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 8a7fa92..0cf9cfe

[Mesa-dev] [PATCH 2/7] i965: Adjust set_message_descriptor to handle non-sends

2014-08-02 Thread Chris Forbes
We're about to be using this infrastructure to build descriptors in src1 of non-send instructions, when preparing to do an indirect send. Don't accidentally clobber the conditionalmod field of those instructions with SFID bits, which aren't part of the descriptor. Signed-off-by: Chris Forbes ---

[Mesa-dev] [PATCH 4/7] i965/fs: Add visitor support for nonconstant UBO indices

2014-08-02 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 30 +--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 3b03eef..0d9c684 100644

[Mesa-dev] [PATCH 5/7] i965/vec4: Generate indirect sends for nonconstant UBO array access

2014-08-02 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 77 +++- 1 file changed, 62 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp index c328f34..87cc6

[Mesa-dev] [PATCH] st/dri: Fix driver loading if swrast isn't built

2014-08-02 Thread Aaron Watry
If building hardware drivers only, then kms_swrast_create_screen won't be defined in inline_drm_helper.h and hardware drivers will fail to dlopen as a result. Copy the #if guards from inline_drm_helper.h to dri_kms_init_screen to make the definition/use of the function match. Fixes radeonsi_dri.s

Re: [Mesa-dev] [PATCH 0/6] Add a libmesautil library for sharing code between

2014-08-02 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Fri, Jul 25, 2014 at 2:15 AM, Jason Ekstrand wrote: > There is a lot of code duplicated or awkwardly shared right now between > mesa/main, glsl, and gallium. It would be good to gather these useful > things into a central place that does not d

[Mesa-dev] [PATCH v2 11/13] mesa/texstore: Use _mesa_swizzle_and_convert when possible

2014-08-02 Thread Jason Ekstrand
This should be both faster and more accurate than our general slow-path of converting everything to float. v2: Add a comment to top of the texstore_swizzle function Signed-off-by: Jason Ekstrand --- src/mesa/main/texstore.c | 186 +++ 1 file changed,

[Mesa-dev] [PATCH v2 00/13] Rework the texture upload code

2014-08-02 Thread Jason Ekstrand
This is a direct rework of the patch series starting here: http://lists.freedesktop.org/archives/mesa-dev/2014-July/063483.html I've tried to address all of the direct comments given on those patches. This version is much better documented and even a little faster. Jason Ekstrand (13): mesa: A

[Mesa-dev] [PATCH v2 09/13] mesa/format_utils: Add a function to convert a mesa_format to an array format

2014-08-02 Thread Jason Ekstrand
This commits adds the _mesa_format_to_arary function that determines if the given format can be represented as an array format and computes the array format parameters. This is a direct helper function for using _mesa_swizzle_and_convert v2: Better documentation and commit message Signed-off-by:

[Mesa-dev] [PATCH v2 06/13] meas: Gather some common format conversion functions into a single file

2014-08-02 Thread Jason Ekstrand
This initial commit puts all of the RGB <-> sRGB conversion functions in format_utils.c. v2: Shorter commit subject and added format_utils.c to SConscript Signed-off-by: Jason Ekstrand --- src/mesa/Makefile.sources| 1 + src/mesa/SConscript | 1 + src/mesa/main/format_p

[Mesa-dev] [PATCH v2 10/13] main/texstore: Split texture storage into three functions

2014-08-02 Thread Jason Ekstrand
This commit splits the texture storage into three functions: texstore_depth_stencil, texstore_compressed, and texstore_rgba. Right now this split seems artificial since we just have one function pointer per format and there is no difference between these three categories. However, this split make

[Mesa-dev] [PATCH v2 08/13] mesa/format_utils: Add a general format conversion function

2014-08-02 Thread Jason Ekstrand
Most format conversion operations required by GL can be performed by converting one channel at a time, shuffling the channels around, and optionally filling missing channels with zeros and ones. This adds a function to do just that in a general, yet efficient, way. v2: * Add better comments incl

[Mesa-dev] [PATCH v2 07/13] mesa/imports: Add a _mesa_half_is_negative helper function

2014-08-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/main/imports.h | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 09e55eb..023ef2e 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -552,6 +552,11 @@ _mesa_float_to_half(f

[Mesa-dev] [PATCH v2 13/13] mesa/texstore: Add a generic rgba integer texture upload path

2014-08-02 Thread Jason Ekstrand
Again, we delete a lot of functions that aren't really doing anything interesting anymore. v2: Comment the texstore_rgba_integer function Signed-off-by: Jason Ekstrand --- src/mesa/main/texstore.c | 552 +++ 1 file changed, 73 insertions(+), 479 delet

[Mesa-dev] [PATCH v2 03/13] mesa/formats: Autogenerate the format_info structure from a CSV file

2014-08-02 Thread Jason Ekstrand
Instead of a having all of the format metadata in a gigantic hard-to-edit array of type struct format_info, we now use a human-readable CSV file. The CSV file also contains more format information than the format_info struct contained so we can potentially make format_info more detailed later. The

[Mesa-dev] [PATCH v2 01/13] mesa: Add a format description CSV file

2014-08-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/main/formats.csv | 282 ++ 1 file changed, 282 insertions(+) create mode 100644 src/mesa/main/formats.csv diff --git a/src/mesa/main/formats.csv b/src/mesa/main/formats.csv new file mode 100644 index 000.

[Mesa-dev] [PATCH v2 05/13] mesa/formats: Add layout and swizzle information

2014-08-02 Thread Jason Ekstrand
v2: Move the MESA_FORMAT_SWIZZLE enum to the top of the file Signed-off-by: Jason Ekstrand --- src/mesa/main/format_info.py | 11 +++ src/mesa/main/formats.c | 46 src/mesa/main/formats.h | 29 3 files ch

[Mesa-dev] [PATCH v2 02/13] mesa: Add python to parse the formats CSV file

2014-08-02 Thread Jason Ekstrand
The basic concept for the format parser was taken from the format CSV parser in gallium/auxilliary/util. However, this one has been altered in a number of ways: * Removed big endian vs. little endian stuff (mesa doesn't need it) * Better documentation: Almost every method has a full docstring

[Mesa-dev] [PATCH v2 12/13] mesa/texstore: Add a generic float/normalized rgba texture upload path

2014-08-02 Thread Jason Ekstrand
This commit also removes a bunch of functions which aren't doing anything more interesting than the general path does. v2: Better comment the texstore_via_float function Signed-off-by: Jason Ekstrand --- src/mesa/main/texstore.c | 2046 +++--- 1 file chan

[Mesa-dev] [PATCH v2 04/13] mesa/formats: Remove IndexBits

2014-08-02 Thread Jason Ekstrand
Mesa hasn't supported color-indexed textures for some time. This is 0 for all texture formats, so we don't need to store it. Signed-off-by: Jason Ekstrand --- src/mesa/main/format_info.py | 2 +- src/mesa/main/formats.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH] mesa: Actually use the Mesa IR optimizer for ARB programs.

2014-08-02 Thread Kenneth Graunke
On Haswell, this cuts 1-3 instructions from 183 vertex shaders in "Shadowrun Returns", "Shatter", and "Trine 2." It adds 2 instructions to a single fragment shader in "Closure." total instructions in shared programs: 278803 -> 278546 (-0.09%) instructions in affected programs: 41930 -> 41673

Re: [Mesa-dev] [PATCH 1/5] mesa: Have validate_uniform_parameters return the gl_uniform_storage pointer

2014-08-02 Thread Kenneth Graunke
On Friday, August 01, 2014 07:09:15 PM Ian Romanick wrote: > From: Ian Romanick > > This simplifies all the callers, and it enables the removal of one of > the function parameters. > > Signed-off-by: Ian Romanick Nice! Thanks for tidying up this code. This series is: Reviewed-by: Kenneth Gra

Re: [Mesa-dev] sampler objects and texture rectangles

2014-08-02 Thread Marek Olšák
Yeah, I think you're right. Both Mesa and the test are incorrect. Marek On Sat, Aug 2, 2014 at 6:31 AM, Roland Scheidegger wrote: > I've discovered by accident that the mesa state tracker is trying to use > REPEAT wrap mode with texture rectangles - this happens with piglit > tex-miplevel-select

Re: [Mesa-dev] [PATCH 3/3] gallium/docs: Document TEX2/TXL2/TXB2 instructions and fix up other tex doc

2014-08-02 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, Aug 2, 2014 at 4:12 AM, wrote: > From: Roland Scheidegger > > Add documentation for TEX2/TXL2/TXB2 tgsi opcodes. Also, the texture opcode > documentation wasn't very accurate so fix this up a bit. > --- > src/gallium/docs/source/tgsi.rst | 127 > ++