[Mesa-dev] [Bug 91254] (regresion) video using VA-API on Intel slow and freeze system with mesa 10.6 or 10.6.1

2015-08-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91254 --- Comment #21 from Rhys Kidd --- Confirmed as resolved for me on IronLake with Mesa git. Thanks. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list m

Re: [Mesa-dev] [PATCH] i965/fs: Use greater-equal cmod to implement maximum.

2015-08-28 Thread Jordan Justen
On 2015-08-28 17:12:31, Matt Turner wrote: > See commit 3b7f683f. That commit message seems short enough to replicate, although it is also valuable to mention the hash here too. Reviewed-by: Jordan Justen It almost seems like we could rename emit_minmax to emit_cmpsel, optionally make it privat

Re: [Mesa-dev] [PATCH 02/14] util: added ffsll() function

2015-08-28 Thread Jason Ekstrand
On Aug 28, 2015 2:31 PM, "Brian Paul" wrote: > > v2: fix errant _GNU_SOURCE test, per Matt Turner. > --- > src/gallium/auxiliary/util/u_math.h | 20 > 1 file changed, 20 insertions(+) > > diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h >

Re: [Mesa-dev] [PATCH v4 (part2) 20/59] glsl: Add parser/compiler support for std430 interface packing qualifier

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 8:27 PM, Jordan Justen wrote: > On 2015-08-05 01:30:17, Iago Toral Quiroga wrote: >> From: Samuel Iglesias Gonsalvez >> >> This commit also adds functions to calculate std430 base alignment and sizes >> >> Signed-off-by: Samuel Iglesias Gonsalvez >> --- >> src/glsl/ast.h

Re: [Mesa-dev] [PATCH v4 (part2) 20/59] glsl: Add parser/compiler support for std430 interface packing qualifier

2015-08-28 Thread Jordan Justen
On 2015-08-05 01:30:17, Iago Toral Quiroga wrote: > From: Samuel Iglesias Gonsalvez > > This commit also adds functions to calculate std430 base alignment and sizes > > Signed-off-by: Samuel Iglesias Gonsalvez > --- > src/glsl/ast.h | 1 + > src/glsl/ast_to_hir.cpp

[Mesa-dev] [PATCH] i965/fs: Use greater-equal cmod to implement maximum.

2015-08-28 Thread Matt Turner
See commit 3b7f683f. --- src/mesa/drivers/dri/i965/brw_fs_builder.h | 2 ++ src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp | 8 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_bui

Re: [Mesa-dev] [PATCH v4 (part2) 17/59] i965/fs/nir: implement unsized array's length calculation

2015-08-28 Thread Matt Turner
On Wed, Aug 5, 2015 at 1:30 AM, Iago Toral Quiroga wrote: > From: Samuel Iglesias Gonsalvez > > Signed-off-by: Samuel Iglesias Gonsalvez > --- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 49 > > 1 file changed, 49 insertions(+) > > diff --git a/src/mesa/driver

[Mesa-dev] [PATCH demos] egl: Remove demos using EGL_MESA_screen_surface.

2015-08-28 Thread Matt Turner
The remnants of the extension were removed from Mesa in commit 7a58262e. Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=555186 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91020 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91643 --- demo1 and eglscreen didn't look useful, bu

Re: [Mesa-dev] [PATCH v4 (part2) 19/59] i965/wm: surfaces should have the API buffer size, not the drm buffer size

2015-08-28 Thread Jordan Justen
On 2015-08-05 01:30:16, Iago Toral Quiroga wrote: > From: Samuel Iglesias Gonsalvez > > The returned drm buffer object has a size multiple of 4096 but that should not > be exposed to the API user, which is working with a different size. Would the only API where this would be visible be unsized a

Re: [Mesa-dev] [PATCH v4 (part2) 18/59] i965/wm: emit null buffer surfaces when null buffers are attached

2015-08-28 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-08-05 01:30:15, Iago Toral Quiroga wrote: > From: Samuel Iglesias Gonsalvez > > Otherwise we can expect odd things to happen if, for example, we ask > for the size of the attached buffer from shader code, since that > might query this value from the surface we

Re: [Mesa-dev] [PATCH v4 (part2) 17/59] i965/fs/nir: implement unsized array's length calculation

2015-08-28 Thread Jordan Justen
On 2015-08-05 01:30:14, Iago Toral Quiroga wrote: > From: Samuel Iglesias Gonsalvez > > Signed-off-by: Samuel Iglesias Gonsalvez > --- > src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 49 > > 1 file changed, 49 insertions(+) > > diff --git a/src/mesa/drivers/dri/i

Re: [Mesa-dev] [PATCH 02/14] util: added ffsll() function

2015-08-28 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] VMware patches for OpenGL 3.3 support

2015-08-28 Thread Brian Paul
On 08/28/2015 10:00 AM, Brian Paul wrote: On 08/28/2015 06:12 AM, Emil Velikov wrote: On 28 August 2015 at 00:47, Brian Paul wrote: The first 15 patches or so are general gallium util/tgsi/etc changes. They've all been reviewed in-house but Mesa developers are more than welcome to review the

[Mesa-dev] [PATCH 01/14] util: added util_set_index_buffer()

2015-08-28 Thread Brian Paul
Like util_set_vertex_buffers_count(), this basically just copies a pipe_index_buffer object, taking care of refcounting. --- src/gallium/auxiliary/util/u_helpers.c | 15 +++ src/gallium/auxiliary/util/u_helpers.h | 3 +++ 2 files changed, 18 insertions(+) diff --git a/src/gallium/aux

Re: [Mesa-dev] [PATCH rework] mesa: rework Driver.CopyImageSubData() and related code

2015-08-28 Thread Brian Paul
On 08/28/2015 11:03 AM, Jason Ekstrand wrote: On Fri, Aug 28, 2015 at 7:43 AM, Brian Paul wrote: On 08/28/2015 12:43 AM, Jason Ekstrand wrote: On Thu, Aug 27, 2015 at 11:42 PM, Jason Ekstrand wrote: From: Brian Paul Previously, core Mesa's _mesa_CopyImageSubData() created temporary textu

[Mesa-dev] [PATCH 04/14] tgsi: added tgsi_is_shadow_target() helper

2015-08-28 Thread Brian Paul
--- src/gallium/auxiliary/tgsi/tgsi_util.c | 18 ++ src/gallium/auxiliary/tgsi/tgsi_util.h | 3 +++ 2 files changed, 21 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c index e5b8427..653e650 100644 --- a/src/gallium/auxi

[Mesa-dev] [PATCH 14/14] auxiliary/os: Don't implement os_get_option() on embedded builds.

2015-08-28 Thread Brian Paul
From: José Fonseca Let it be defined externally instead, allowing setting mechanisms other than environment variables. Reviewed-by: Zack Rusin Reviewed-by: Matthew McClure --- src/gallium/auxiliary/os/os_misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/os/os_

[Mesa-dev] [PATCH 06/14] gallium/util: return FALSE for intersection if there's empty rectangles

2015-08-28 Thread Brian Paul
From: Roland Scheidegger It isn't really obvious if intersection test should take into account empty rectangles or if the caller should do it. But it looks like most callers actually verified one of the rects but not the other, but since correctly returning an empty rect that other rect could act

[Mesa-dev] [PATCH 11/14] tgsi: adds tgsi utility to transform a shader to support point sprite

2015-08-28 Thread Brian Paul
From: Charmaine Lee This adds a tgsi utility tgsi_add_point_sprite to transform a geometry shader to emulate wide points by drawing quads. This utility adds an extra output for the original point position if the point position is to be written to a stream output buffer. It also assumes the driver

[Mesa-dev] [PATCH 02/14] util: added ffsll() function

2015-08-28 Thread Brian Paul
v2: fix errant _GNU_SOURCE test, per Matt Turner. --- src/gallium/auxiliary/util/u_math.h | 20 1 file changed, 20 insertions(+) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 56bd185..c551974 100644 --- a/src/gallium/auxiliary/u

[Mesa-dev] [PATCH 09/14] util: add util_strcasecmp() wrapper

2015-08-28 Thread Brian Paul
Reviewed-by: Jose Fonseca --- src/gallium/auxiliary/util/u_string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h index f7ab09c..adcdf20 100644 --- a/src/gallium/auxiliary/util/u_string.h +++ b/src/gallium/aux

[Mesa-dev] [PATCH 10/14] tgsi: add new tgsi_two_side.c utility code

2015-08-28 Thread Brian Paul
This could be used by any driver where the device doesn't directly support two-sided lighting. This code modifies a fragment shader to accecpt back-face colors and choose between the front/back colors depending on the triangle's front-face sign. --- src/gallium/auxiliary/Makefile.sources |

[Mesa-dev] [PATCH 12/14] tgsi: add tgsi utility to transform a fragment shader to support aa point

2015-08-28 Thread Brian Paul
From: Charmaine Lee This adds a tgsi utility tgsi_add_aa_point to transform a fragment shader to support anti-aliased wide point by computing the fragment distance from the point center. This utility assumes the geometry shader is emitting an extra generic output with point coord data. The semant

[Mesa-dev] [PATCH 03/14] tgsi: add negate parameter to tgsi_transform_kill_inst()

2015-08-28 Thread Brian Paul
Reviewed-by: Charmaine Lee --- src/gallium/auxiliary/draw/draw_pipe_aapoint.c | 3 ++- src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 3 ++- src/gallium/auxiliary/tgsi/tgsi_transform.h | 5 +++-- src/gallium/auxiliary/util/u_pstipple.c | 2 +- 4 files changed, 8 insertions(+), 5 d

[Mesa-dev] [PATCH 05/14] tgsi: add some more helper functions

2015-08-28 Thread Brian Paul
From: Charmaine Lee This patch adds some more helper functions such as . tgsi_transform_temps_decl . tgsi_transform_output_decl . tgsi_transform_dst_reg . tgsi_transform_src_reg Reviewed-by: Brian Paul --- src/gallium/auxiliary/tgsi/tgsi_transform.h | 69 +++

[Mesa-dev] [PATCH 08/14] gallium/util: add a utility to create geometry passthrough shader

2015-08-28 Thread Brian Paul
From: Charmaine Lee Reviewed-by: Brian Paul --- src/gallium/auxiliary/util/u_simple_shaders.c | 51 +++ src/gallium/auxiliary/util/u_simple_shaders.h | 6 2 files changed, 57 insertions(+) diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/a

[Mesa-dev] [PATCH 13/14] util: add a couple primitive restart helper functions

2015-08-28 Thread Brian Paul
The first function translates prim restart indexes to be 0x or 0x. The second splits indexed primitives with restart indexes into sub- primitives without restart indexes. Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/u

[Mesa-dev] [PATCH 07/14] gallium/util: fix returning empty box for rectangle intersection

2015-08-28 Thread Brian Paul
From: Roland Scheidegger These functions deal with inclusive coordinates, hence a 0/0/0/0 rect returned when there's no intersection doesn't actually represent an empty rectangle. Hence return 0/-1/0/-1 instead. This fixes some problems in llvmpipe with empty scissor rects (which up to now didn't

Re: [Mesa-dev] [PATCH 1/2] mesa: only look up base-format once

2015-08-28 Thread Matt Turner
On Mon, Aug 24, 2015 at 2:02 PM, Erik Faye-Lund wrote: > There's no point in repeatedly looking up the base-format of an > internalformat. So let's cache it in a variable instead. > > Signed-off-by: Erik Faye-Lund > --- I actually measure an increase in .text size with this patch, but marking th

[Mesa-dev] [PATCH v2] gbm: convert gbm bo format to fourcc format on dma-buf import

2015-08-28 Thread Ray Strode
From: Ray Strode At the moment if a gbm buffer is imported and the gbm buffer has an old-style GBM_BO_FORMAT format, the import will crash, since it's passed directly to DRI functions that expect a fourcc format (as provided by the newer GBM_FORMAT definitions) This commit addresses the problem

[Mesa-dev] [PATCH] glapi: Inline x86_64_current_tls().

2015-08-28 Thread Matt Turner
--- Here's another glapi patch that I never got upstream. src/mapi/entry_x86-64_tls.h | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mapi/entry_x86-64_tls.h b/src/mapi/entry_x86-64_tls.h index 5c03b04..38faccc 100644 --- a/src/mapi/entry_x86-64_tls.h +++ b/src/

Re: [Mesa-dev] [PATCH] gbm: convert gbm bo format to fourcc format on dma-buf import

2015-08-28 Thread Ray Strode
Hi, > + switch (fd_data->format) { > + case GBM_FORMAT_RGB565: > + case GBM_FORMAT_XRGB: > + case GBM_FORMAT_ARGB: > + case GBM_FORMAT_ABGR: > + case GBM_FORMAT_ARGB2101010: > + case GBM_FORMAT_XRGB2101010: So Rob Clark pointed out on IRC that this mi

[Mesa-dev] [PATCH] gbm: convert gbm bo format to fourcc format on dma-buf import

2015-08-28 Thread Ray Strode
From: Ray Strode At the moment if a gbm buffer is imported and the gbm buffer has an old-style GBM_BO_FORMAT format, the import will crash, since it's passed directly to DRI functions that expect a fourcc format (as provided by the newer GBM_FORMAT definitions) This commit addresses the problem

Re: [Mesa-dev] [PATCH 1/5] nir: Make nir_block_{first, last}_instr return NULL for empty blocks.

2015-08-28 Thread Jason Ekstrand
On Fri, Aug 28, 2015 at 10:49 AM, Connor Abbott wrote: > > On Aug 27, 2015 11:45 AM, "Jason Ekstrand" wrote: >> >> On Tue, Aug 25, 2015 at 1:24 PM, Kenneth Graunke >> wrote: >> > This is a lot more reasonable than returning an offset from NULL. >> > >> > Signed-off-by: Kenneth Graunke >> > ---

Re: [Mesa-dev] [PATCH 1/5] nir: Make nir_block_{first, last}_instr return NULL for empty blocks.

2015-08-28 Thread Connor Abbott
On Aug 27, 2015 11:45 AM, "Jason Ekstrand" wrote: > > On Tue, Aug 25, 2015 at 1:24 PM, Kenneth Graunke wrote: > > This is a lot more reasonable than returning an offset from NULL. > > > > Signed-off-by: Kenneth Graunke > > --- > > src/glsl/nir/nir.h | 4 ++-- > > 1 file changed, 2 insertions(+)

[Mesa-dev] [PATCH 2/4] nvc0: use enumerations for driver queries

2015-08-28 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 243 + 1 file changed, 123 insertions(+), 120 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h index 41008d2..cc67

[Mesa-dev] [PATCH 1/4] nvc0: remove commented out code related to PCOUNTER queries

2015-08-28 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 20 1 file changed, 20 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h index d8826ae..41008d2 100644 --- a/src/galli

[Mesa-dev] [PATCH 3/4] nvc0: make names of performance counter queries consistent

2015-08-28 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 56 +- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 56 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0

Re: [Mesa-dev] [PATCH rework] mesa: rework Driver.CopyImageSubData() and related code

2015-08-28 Thread Jason Ekstrand
On Fri, Aug 28, 2015 at 7:43 AM, Brian Paul wrote: > On 08/28/2015 12:43 AM, Jason Ekstrand wrote: >> >> On Thu, Aug 27, 2015 at 11:42 PM, Jason Ekstrand >> wrote: >>> >>> From: Brian Paul >>> >>> Previously, core Mesa's _mesa_CopyImageSubData() created temporary >>> textures >>> to wrap renderb

Re: [Mesa-dev] [PATCH 00/10] i965: add ARB_shader_texture_image_samples support

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 6:58 AM, Francisco Jerez wrote: > Ilia Mirkin writes: > >> This should include everything. I sent a test for textureSamples to >> piglit a while ago, not sure how to test imageSamples -- apparently ms >> images aren't entirely supported on i965? But I'm not sure via what >

Re: [Mesa-dev] [PATCH 07/10] glsl: add support for the imageSamples function

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 12:51 PM, Neil Roberts wrote: > Ilia Mirkin writes: > >> @@ -2757,6 +2764,11 @@ builtin_builder::add_image_functions(bool glsl) >>"__intrinsic_image_size", >>&builtin_builder::_image_size_prototype, 1, >>

Re: [Mesa-dev] [PATCH v4 1/2] mesa: add missing queries for ARB_direct_state_access

2015-08-28 Thread Fredrik Höglund
I've pushed both patches with my reviewed-by tags. Thanks, Fredrik On Friday 28 August 2015, Daniel Scharrer wrote: > This adds index queries (glGet*i_v) for GL_TEXTURE_BINDING_* and > GL_SAMPLER_BINDING, as well as textue queries > (glGetTex{,ture}Parameter*) for GL_TEXTURE_TARGET. > > CC: "10

Re: [Mesa-dev] [PATCH 07/10] glsl: add support for the imageSamples function

2015-08-28 Thread Neil Roberts
Ilia Mirkin writes: > @@ -2757,6 +2764,11 @@ builtin_builder::add_image_functions(bool glsl) >"__intrinsic_image_size", >&builtin_builder::_image_size_prototype, 1, >flags | IMAGE_FUNCTION_SUPPORTS_FLOAT_DATA_TYPE); > + > +

Re: [Mesa-dev] [PATCH] i965/fs: Do not set the size for zero-size uniforms

2015-08-28 Thread Jason Ekstrand
On Fri, Aug 28, 2015 at 2:08 AM, Francisco Jerez wrote: > Marta Lofstedt writes: > >> From: Marta Lofstedt >> >> Zero sized uniforms can exist in the list, but they >> don't get get any space allocated in >> prog_data->params or in the param_size array, so >> the size should not be set for them.

Re: [Mesa-dev] [PATCH v4 1/2] mesa: add missing queries for ARB_direct_state_access

2015-08-28 Thread Brian Paul
On 08/28/2015 03:45 AM, Daniel Scharrer wrote: This adds index queries (glGet*i_v) for GL_TEXTURE_BINDING_* and GL_SAMPLER_BINDING, as well as textue queries (glGetTex{,ture}Parameter*) for GL_TEXTURE_TARGET. CC: "10.6 11.0" --- v4: fixed trivial merge conflict in texparam.c added 11.0 to

Re: [Mesa-dev] [PATCH] Revert "i965: Stop aux data compare preventing program binary re-use"

2015-08-28 Thread Ben Widawsky
On Fri, Aug 28, 2015 at 10:15:30AM +0300, Pohjolainen, Topi wrote: > On Fri, Aug 28, 2015 at 09:56:43AM +0300, Pohjolainen, Topi wrote: > > On Thu, Aug 27, 2015 at 10:05:14AM -0700, Ben Widawsky wrote: > > > On Thu, Aug 27, 2015 at 10:51:59AM +0300, Pohjolainen, Topi wrote: > > > > On Wed, Aug 26,

Re: [Mesa-dev] [PATCH 1/6] mesa/glformats: expose certain compressed formats to desktop GL

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 10:50 AM, Nanley Chery wrote: > From: Nanley Chery > > According to the extensions table and our glext headers, these > extensions are only supported in the core and compatibility > profiles of desktop GL. > > Signed-off-by: Nanley Chery > --- > src/mesa/main/glformats.c

[Mesa-dev] [PATCH 1/2] mesa/texcompress: add function to determine compressed format type

2015-08-28 Thread Nanley Chery
From: Nanley Chery Determines if a compressed format is non-palettized and specific. Signed-off-by: Nanley Chery --- src/mesa/main/texcompress.c | 10 ++ src/mesa/main/texcompress.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/te

[Mesa-dev] [PATCH 2/2] mesa/glformats: catch certain compressed formats as color formats

2015-08-28 Thread Nanley Chery
From: Nanley Chery Catches all specific, non-palettized compressed formats as color formats. This enables ASTC to be recognized as one such format type. Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 44 +--- 1 file changed, 5 insertions(+),

Re: [Mesa-dev] VMware patches for OpenGL 3.3 support

2015-08-28 Thread Brian Paul
On 08/28/2015 06:12 AM, Emil Velikov wrote: On 28 August 2015 at 00:47, Brian Paul wrote: If you've seen the announcement of VMware Workstation 12 / Fusion 8, we now support OpenGL 3.3 in the guest. The Mesa/gallium patches for this can be seen in my git repo at cgit.freedesktop.org/~brianp/m

Re: [Mesa-dev] VMware patches for OpenGL 3.3 support

2015-08-28 Thread Brian Paul
On 08/27/2015 06:35 PM, Matt Turner wrote: On Thu, Aug 27, 2015 at 4:56 PM, Ilia Mirkin wrote: The ffsll patch seems dodgy... among other things the same logic is in imports.c and thus would probably best refactored to src/util, but additionally it's only defined if !_GNU_SOURCE -- is that OK?

[Mesa-dev] [PATCH 5/6] mesa/texcompress: add compressed formats to base format utility function

2015-08-28 Thread Nanley Chery
From: Nanley Chery Adds S3TC and PALETTE formats. Signed-off-by: Nanley Chery --- src/mesa/main/texcompress.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c index e0294a8..84973d3 100644 --- a/src/mesa/main/texcompr

[Mesa-dev] [PATCH 2/6] mesa/glformats: restrict ETC1_RGB8 support to GLES1/2

2015-08-28 Thread Nanley Chery
From: Nanley Chery According to the extensions table and our glext headers, OES_compressed_ETC1_RGB8_texture is only supported in GLES1 and GLES2. Signed-off-by: Nanley Chery --- src/mesa/main/teximage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texima

[Mesa-dev] [PATCH 6/6] mesa/teximage: reuse compressed format utility functions for base_format

2015-08-28 Thread Nanley Chery
From: Nanley Chery Reuse utility functions instead of reimplementing the same logic. * _mesa_is_compressed_format() performs the required checking to determine format support in the current context. * _mesa_gl_compressed_format_base_format() returns the base format. Signed-off-by: Nanley Cher

[Mesa-dev] [PATCH 4/6] mesa/glformats: refactor compressed format support function

2015-08-28 Thread Nanley Chery
From: Nanley Chery Instead of case statements, use _mesa_get_format_layout() to determine if a GL format is part of a family of compressed formats. Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 119 -- 1 file changed, 40 insertions(+),

[Mesa-dev] [PATCH 1/6] mesa/glformats: expose certain compressed formats to desktop GL

2015-08-28 Thread Nanley Chery
From: Nanley Chery According to the extensions table and our glext headers, these extensions are only supported in the core and compatibility profiles of desktop GL. Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 4 ++-- src/mesa/main/teximage.c | 6 -- 2 files changed, 6 ins

[Mesa-dev] [PATCH 3/6] mesa/formats: add MESA_LAYOUT_LATC

2015-08-28 Thread Nanley Chery
From: Nanley Chery This enables us to predicate statments on a compressed format being a type of LATC format. Also, remove the comment that lists the enum (which was getting a tad long). Signed-off-by: Nanley Chery --- src/mesa/main/format_info.py | 2 +- src/mesa/main/formats.c | 11 ---

Re: [Mesa-dev] [PATCH 2/2] i965/gen: Don't conflate base miplevel in sampler state

2015-08-28 Thread Ben Widawsky
On Thu, 27 Aug 2015 23:24:26 -0700 Kenneth Graunke wrote: > On Thursday, August 27, 2015 11:50:52 AM Ben Widawsky wrote: > > Gen9 changes the meaning of this to coarse LOD quality mode. > > Although that's a desirable thing to be setting, it doesn't match > > the gen8 behavior and this was uninte

Re: [Mesa-dev] [PATCH v2 2/2] mesa/texformat: use format conversion function in _mesa_choose_tex_format

2015-08-28 Thread Nanley Chery
I should add that this patch enables this function to handle ASTC formats. This in turn enables such formats to be used for GL calls such as Tex*Storage*. - Nanley On Wed, Aug 26, 2015 at 2:38 PM, Nanley Chery wrote: > From: Nanley Chery > > This function's cases for non-generic compressed for

Re: [Mesa-dev] [PATCH rework] mesa: rework Driver.CopyImageSubData() and related code

2015-08-28 Thread Brian Paul
On 08/28/2015 12:43 AM, Jason Ekstrand wrote: On Thu, Aug 27, 2015 at 11:42 PM, Jason Ekstrand wrote: From: Brian Paul Previously, core Mesa's _mesa_CopyImageSubData() created temporary textures to wrap renderbuffer sources/destinations. This caused a bit of a mess in the Mesa/gallium state

Re: [Mesa-dev] [PATCH] r600g: add proper support for VGT_FLUSH

2015-08-28 Thread Alex Deucher
On Fri, Aug 28, 2015 at 12:35 AM, Ilia Mirkin wrote: > Just an observation... this was previously only done for EG+, while > now R600/R700 will get this too. VGT flush is valid on r6xx/r7xx too and probably should have been applied for them as well originally. Alex > > On Fri, Aug 28, 2015 at

Re: [Mesa-dev] [PATCH] r600g: add proper support for VGT_FLUSH

2015-08-28 Thread Marek Olšák
IIRC, VGT_FLUSH should be emitted before any of the ring registers are changed, but this code emits it after they're changed. Marek On Fri, Aug 28, 2015 at 6:31 AM, Dave Airlie wrote: > From: Dave Airlie > > The geom shader rings require a VGT FLUSH, but up until now > it was just hacked into t

Re: [Mesa-dev] [PATCH 2/3 v2] i965: Swap the order of the vertex ID and edge flag attributes

2015-08-28 Thread Neil Roberts
Ben Widawsky writes: > Also, I just noticed: > "It is INVALID to store both the VertexID and InstanceID in the same > element/component location within the VUE." > > Aren't we potentially doing that today (and still with your patch)? Perhaps this means you can't store the VID and the IID in the

Re: [Mesa-dev] VMware patches for OpenGL 3.3 support

2015-08-28 Thread Emil Velikov
On 28 August 2015 at 00:47, Brian Paul wrote: > > If you've seen the announcement of VMware Workstation 12 / Fusion 8, we now > support OpenGL 3.3 in the guest. > > The Mesa/gallium patches for this can be seen in my git repo at > cgit.freedesktop.org/~brianp/mesa/log/?h=vmware-gl3 > If you don't

Re: [Mesa-dev] [PATCH] r600: port si_conv_prim_to_gs_out from radeonsi

2015-08-28 Thread Glenn Kennard
On Fri, 28 Aug 2015 02:47:44 +0200, Dave Airlie wrote: From: Dave Airlie This code we broken by the tess merge, and I totally missed it was broken until now. I'm not sure this fixes anything but it stops the assert. Cc: "11.0" Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r6

[Mesa-dev] [Bug 91793] the "bin" directory is not created

2015-08-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91793 YuGiOhJCJ changed: What|Removed |Added CC||yugioh...@1s.fr -- You are receiving this m

[Mesa-dev] [Bug 91793] the "bin" directory is not created

2015-08-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91793 Bug ID: 91793 Summary: the "bin" directory is not created Product: Mesa Version: unspecified Hardware: x86 (IA32) OS: Linux (All) Status: NEW Severity: no

Re: [Mesa-dev] [PATCH v2] mesa/es3.1: Expose GL_ARB_framebuffer_no_attachments to GLES 3.1

2015-08-28 Thread Lofstedt, Marta
> -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Ilia Mirkin > Sent: Thursday, August 27, 2015 11:51 PM > To: Marta Lofstedt > Cc: mesa-dev@lists.freedesktop.org > Subject: Re: [Mesa-dev] [PATCH v2] mesa/es3.1: Expose > GL_ARB_framebuffer_

Re: [Mesa-dev] [PATCH 2/2] r600g: use PRIu64 for some compute debug printfs

2015-08-28 Thread Marek Olšák
The commit message mentions PRIu, but patch uses PRIi. Other than that: Reviewed-by: Marek Olšák Marek On Fri, Aug 28, 2015 at 1:58 AM, Dave Airlie wrote: > From: Dave Airlie > > Otherwise this will crash on 32-bit, and it gets rid of > warnings building on 32-bit. > > Signed-off-by: Dave Air

Re: [Mesa-dev] [PATCH 1/2] gallium/util: fix debug_get_flags_option on 32-bit

2015-08-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Aug 28, 2015 at 1:58 AM, Dave Airlie wrote: > From: Dave Airlie > > On 32-bit we need to use PRIu64 flags for printfs, > otherwise this segfaults in R600_DEBUG=help otherwise. > > Cc: "11.0" > Signed-off-by: Dave Airlie > --- > src/gallium/auxiliary/ut

Re: [Mesa-dev] [PATCH 9/9] llvmpipe: enable PIPE_CAP_COPY_IMAGE

2015-08-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Aug 28, 2015 at 1:48 AM, Brian Paul wrote: > We have to disallow the 8 and 16-bit 3-component formats for non-display > target surfaces as we do for softpipe (see earlier commit). > > v2: Simplify 3-component format check, per Marek. > Also check that targ

Re: [Mesa-dev] [PATCH 8/9] softpipe: enable PIPE_CAP_COPY_IMAGE

2015-08-28 Thread Marek Olšák
On Fri, Aug 28, 2015 at 2:28 AM, Ilia Mirkin wrote: > On Thu, Aug 27, 2015 at 8:19 PM, Brian Paul wrote: >> On 08/27/2015 06:01 PM, Ilia Mirkin wrote: >>> >>> Are you sure you want to enable it in spite of the fact that it >>> doesn't handle swizzling (which you've slightly papered over by >>> sw

Re: [Mesa-dev] [PATCH 7/9] softpipe: don't use 3-component formats

2015-08-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Aug 28, 2015 at 1:47 AM, Brian Paul wrote: > Mesa and gallium don't have a complete set of matching 3-component > texture formats. For example, 8-bit sRGB unorm. To fully support > the GL_ARB_copy_image extension we need to have support for all of > thes

Re: [Mesa-dev] nv3x libreoffice impress opengl animations not working

2015-08-28 Thread Hans de Goede
Hi, On 28-08-15 13:01, Marek Olšák wrote: Your first question was about shader translation, but now you're talking about texture allocations, which are completely unrelated. Like I said, visuals and textures have NOTHING to do with shader compilations. My first mail in this thread had 2 questi

Re: [Mesa-dev] nv3x libreoffice impress opengl animations not working

2015-08-28 Thread Marek Olšák
Your first question was about shader translation, but now you're talking about texture allocations, which are completely unrelated. Like I said, visuals and textures have NOTHING to do with shader compilations. Marek On Fri, Aug 28, 2015 at 10:54 AM, Hans de Goede wrote: > Hi, > > On 27-08-15 20

Re: [Mesa-dev] [PATCH 00/10] i965: add ARB_shader_texture_image_samples support

2015-08-28 Thread Francisco Jerez
Ilia Mirkin writes: > This should include everything. I sent a test for textureSamples to > piglit a while ago, not sure how to test imageSamples -- apparently ms > images aren't entirely supported on i965? But I'm not sure via what > feat that happens. > i965 doesn't support MS images because on

[Mesa-dev] [PATCH v4 1/2] mesa: add missing queries for ARB_direct_state_access

2015-08-28 Thread Daniel Scharrer
This adds index queries (glGet*i_v) for GL_TEXTURE_BINDING_* and GL_SAMPLER_BINDING, as well as textue queries (glGetTex{,ture}Parameter*) for GL_TEXTURE_TARGET. CC: "10.6 11.0" --- v4: fixed trivial merge conflict in texparam.c added 11.0 to stable tag v3: fixed uper limit for texture units

[Mesa-dev] [PATCH v4 2/2] mesa: return old name for deleted samplers for SAMPLER_BINDING queries

2015-08-28 Thread Daniel Scharrer
If the sampler object has been deleted in the same context the binding will have been cleared. If it has been deleted in another context, the spec does not say what should returned. None of the other binding point queries check for deletion in another context. Also, as names of deleted objects are

Re: [Mesa-dev] [PATCH] i965/fs: Do not set the size for zero-size uniforms

2015-08-28 Thread Francisco Jerez
Marta Lofstedt writes: > From: Marta Lofstedt > > Zero sized uniforms can exist in the list, but they > don't get get any space allocated in > prog_data->params or in the param_size array, so > the size should not be set for them. > This was previously fixed in: > commit: 781dc7c0e1f41502f18e07c

Re: [Mesa-dev] nv3x libreoffice impress opengl animations not working

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 4:54 AM, Hans de Goede wrote: > Hi, > > On 27-08-15 20:19, Ilia Mirkin wrote: >> >> On Thu, Aug 27, 2015 at 1:59 PM, Alex Deucher >> wrote: > > > > >> 2) Since the glretrace does work outside of libreoffice impress, I >> think >> it may have something to do wi

[Mesa-dev] nv3x libreoffice impress opengl animations not working

2015-08-28 Thread Hans de Goede
Hi, On 27-08-15 20:19, Ilia Mirkin wrote: On Thu, Aug 27, 2015 at 1:59 PM, Alex Deucher wrote: 2) Since the glretrace does work outside of libreoffice impress, I think it may have something to do with the visual chosen by libreoffice impress, is there an easy way to find out what visual lo

[Mesa-dev] [PATCH] i965/fs: Do not set the size for zero-size uniforms

2015-08-28 Thread Marta Lofstedt
From: Marta Lofstedt Zero sized uniforms can exist in the list, but they don't get get any space allocated in prog_data->params or in the param_size array, so the size should not be set for them. This was previously fixed in: commit: 781dc7c0e1f41502f18e07c0940af949a78d2792. However, commit: 259f

[Mesa-dev] [Bug 91785] make check DispatchSanity_test.GLES31 regression

2015-08-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91785 --- Comment #3 from Tapani Pälli --- Thanks Ilia, I'm travelling ATM and did not spot this. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. __

Re: [Mesa-dev] [PATCH 07/10] glsl: add support for the imageSamples function

2015-08-28 Thread Matt Turner
On Fri, Aug 28, 2015 at 12:10 AM, Ilia Mirkin wrote: > On Fri, Aug 28, 2015 at 3:02 AM, Matt Turner wrote: >> On Thu, Aug 27, 2015 at 8:48 PM, Ilia Mirkin wrote: >>> Signed-off-by: Ilia Mirkin >>> --- >>> src/glsl/builtin_functions.cpp | 48 >>> +++--- >>>

Re: [Mesa-dev] [PATCH] Revert "i965: Stop aux data compare preventing program binary re-use"

2015-08-28 Thread Pohjolainen, Topi
On Fri, Aug 28, 2015 at 09:56:43AM +0300, Pohjolainen, Topi wrote: > On Thu, Aug 27, 2015 at 10:05:14AM -0700, Ben Widawsky wrote: > > On Thu, Aug 27, 2015 at 10:51:59AM +0300, Pohjolainen, Topi wrote: > > > On Wed, Aug 26, 2015 at 03:46:05PM -0700, Ben Widawsky wrote: > > > > This reverts commit 1

[Mesa-dev] [Bug 91785] make check DispatchSanity_test.GLES31 regression

2015-08-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91785 Ilia Mirkin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 07/10] glsl: add support for the imageSamples function

2015-08-28 Thread Ilia Mirkin
On Fri, Aug 28, 2015 at 3:02 AM, Matt Turner wrote: > On Thu, Aug 27, 2015 at 8:48 PM, Ilia Mirkin wrote: >> Signed-off-by: Ilia Mirkin >> --- >> src/glsl/builtin_functions.cpp | 48 >> +++--- >> 1 file changed, 45 insertions(+), 3 deletions(-) >> >> diff --

Re: [Mesa-dev] [PATCH] mesa: fix dispatch sanity with GL_OES_texture_storage_multisample_2d_array

2015-08-28 Thread Matt Turner
On Fri, Aug 28, 2015 at 12:02 AM, Ilia Mirkin wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91785 > Signed-off-by: Ilia Mirkin > --- Thanks. Please commit immediately. Acked-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.f

Re: [Mesa-dev] [PATCH 07/10] glsl: add support for the imageSamples function

2015-08-28 Thread Matt Turner
On Thu, Aug 27, 2015 at 8:48 PM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > --- > src/glsl/builtin_functions.cpp | 48 > +++--- > 1 file changed, 45 insertions(+), 3 deletions(-) > > diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functi

[Mesa-dev] [PATCH] mesa: fix dispatch sanity with GL_OES_texture_storage_multisample_2d_array

2015-08-28 Thread Ilia Mirkin
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91785 Signed-off-by: Ilia Mirkin --- src/mesa/main/tests/dispatch_sanity.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index 59107eb..b941f3e 1006