Re: [Mesa-dev] [PATCH] i965: Respect the no_8 flag on Gen6, not just Gen7+.

2015-01-09 Thread Kenneth Graunke
On Friday, January 09, 2015 09:31:35 PM Matt Turner wrote: On Fri, Jan 9, 2015 at 8:46 PM, Kenneth Graunke kenn...@whitecape.org wrote: When doing repclears, we only want to use the SIMD16 program, not the SIMD8 one. Kristian added this to the Gen7+ code, but apparently we missed it in the

[Mesa-dev] [PATCH] i965: Do Sandybridge workaround flushes before each primitive.

2015-01-09 Thread Kenneth Graunke
Sandybridge requires the post-sync non-zero workaround in a ton of places, and if you ever miss one, the GPU usually hangs. Currently, we try to track exactly when a workaround flush is necessary (via the brw-batch.need_workaround_flush flag). This is tricky to get right, and we've botched it

Re: [Mesa-dev] [PATCH] i965: Respect the no_8 flag on Gen6, not just Gen7+.

2015-01-09 Thread Matt Turner
On Fri, Jan 9, 2015 at 8:46 PM, Kenneth Graunke kenn...@whitecape.org wrote: When doing repclears, we only want to use the SIMD16 program, not the SIMD8 one. Kristian added this to the Gen7+ code, but apparently we missed it in the Gen6 code. This patch copies that code over. Approximately

Re: [Mesa-dev] [PATCH] i965: Respect the no_8 flag on Gen6, not just Gen7+.

2015-01-09 Thread Matt Turner
On Fri, Jan 9, 2015 at 10:33 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Friday, January 09, 2015 09:31:35 PM Matt Turner wrote: On Fri, Jan 9, 2015 at 8:46 PM, Kenneth Graunke kenn...@whitecape.org wrote: When doing repclears, we only want to use the SIMD16 program, not the SIMD8

Re: [Mesa-dev] [PATCH 092/133] nir: Add a pass to lower local variables to registers

2015-01-09 Thread Jason Ekstrand
On Fri, Jan 9, 2015 at 4:38 PM, Connor Abbott cwabbo...@gmail.com wrote: + case nir_intrinsic_copy_var: + unreachable(There should be no copies whatsoever at this point); + break; Are you sure about this? My impression is that lower_variables will lower

[Mesa-dev] [PATCH 153/133] nir/tex_instr: Add a nir_tex_src struct and

2015-01-09 Thread Jason Ekstrand
This solves a number of problems. First is the ability to change the number of sources that a texture instruction has. Second, it solves the delema that may occur if a texture instruction has more than 4 sources. --- src/glsl/nir/glsl_to_nir.cpp | 36

Re: [Mesa-dev] [PATCH 105/133] i965/fs_nir: Implement the ARB_gpu_shader5 interpolation intrinsics

2015-01-09 Thread Connor Abbott
On Tue, Jan 6, 2015 at 1:04 AM, Jason Ekstrand ja...@jlekstrand.net wrote: On Sun, Jan 4, 2015 at 9:15 PM, Connor Abbott cwabbo...@gmail.com wrote: This is a general question for the interpolation support: Why are we using the variable-based intrinsics directly, instead of lowering it to

Re: [Mesa-dev] [PATCH 153/133] nir/tex_instr: Add a nir_tex_src struct and

2015-01-09 Thread Connor Abbott
Ok, with the assert removed, Reviewed-by: Connor Abbott cwabbo...@gmail.com On Fri, Jan 9, 2015 at 11:16 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Fri, Jan 9, 2015 at 8:04 PM, Jason Ekstrand ja...@jlekstrand.net wrote: This solves a number of problems. First is the ability to

Re: [Mesa-dev] [PATCH 092/133] nir: Add a pass to lower local variables to registers

2015-01-09 Thread Connor Abbott
+ case nir_intrinsic_copy_var: + unreachable(There should be no copies whatsoever at this point); + break; Are you sure about this? My impression is that lower_variables will lower copies involving things that aren't indirectly referenced, but if you have something

Re: [Mesa-dev] [PATCH 153/133] nir/tex_instr: Add a nir_tex_src struct and

2015-01-09 Thread Jason Ekstrand
On Fri, Jan 9, 2015 at 8:24 PM, Connor Abbott cwabbo...@gmail.com wrote: On Fri, Jan 9, 2015 at 11:04 PM, Jason Ekstrand ja...@jlekstrand.net wrote: This solves a number of problems. First is the ability to change the number of sources that a texture instruction has. Second, it solves the

Re: [Mesa-dev] [PATCH 153/133] nir/tex_instr: Add a nir_tex_src struct and

2015-01-09 Thread Jason Ekstrand
On Fri, Jan 9, 2015 at 8:04 PM, Jason Ekstrand ja...@jlekstrand.net wrote: This solves a number of problems. First is the ability to change the number of sources that a texture instruction has. Second, it solves the delema that may occur if a texture instruction has more than 4 sources. ---

[Mesa-dev] [PATCH] i965: Respect the no_8 flag on Gen6, not just Gen7+.

2015-01-09 Thread Kenneth Graunke
When doing repclears, we only want to use the SIMD16 program, not the SIMD8 one. Kristian added this to the Gen7+ code, but apparently we missed it in the Gen6 code. This patch copies that code over. Approximately doubles the performance in a clear microbenchmark from mesa-demos (clearspd

[Mesa-dev] [Bug 87886] constant fps drops with Intel and Radeon on Source games

2015-01-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=87886 --- Comment #17 from Stéphane Travostino stephane.travost...@gmail.com --- Status as of Linux 3.19-rc3, mesa HEAD e28f9d0 Resolution 1280x800 out of native 1600x900, all graphic detail at minimum. Radeon: min fps 20, avg fps 65, max fps 95 In

[Mesa-dev] [PATCH] mesa: Fix render buffer initial internal format type

2015-01-09 Thread michael . w . mason
From: Mike Mason michael.w.ma...@intel.com Changes the initial internal format of a render buffer to GL_RGBA4. This fixes a failure in the following DrawElements test: dEQP-GLES3.functional.state_query.rbo.renderbuffer_internal_format --- src/mesa/main/renderbuffer.c | 6 +- 1 file changed,

Re: [Mesa-dev] [PATCH 092/133] nir: Add a pass to lower local variables to registers

2015-01-09 Thread Jason Ekstrand
On Tue, Jan 6, 2015 at 5:05 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Sun, Jan 4, 2015 at 7:52 PM, Connor Abbott cwabbo...@gmail.com wrote: On Tue, Dec 16, 2014 at 1:11 AM, Jason Ekstrand ja...@jlekstrand.net wrote: --- src/glsl/Makefile.sources | 1 +

[Mesa-dev] [Bug 88079] dEQP-GLES3.functional.fbo.completeness.renderable.renderbuffer.color0 tests fail due to enabling of GL_RGB and GL_RGBA

2015-01-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88079 --- Comment #2 from Mike Mason michael.w.ma...@intel.com --- I submitted a similar patch for review yesterday: http://lists.freedesktop.org/archives/mesa-dev/2015-January/074092.html then submitted v2 today after Matt Turner's review:

Re: [Mesa-dev] [PATCH v4 17/22] mesa/format_pack: Add _mesa_pack_int_rgba_row()

2015-01-09 Thread Jason Ekstrand
On Jan 8, 2015 11:54 PM, Samuel Iglesias Gonsálvez sigles...@igalia.com wrote: On Thursday, January 08, 2015 10:13:11 AM Jason Ekstrand wrote: On Wed, Jan 7, 2015 at 11:20 PM, Iago Toral Quiroga ito...@igalia.com wrote: From: Samuel Iglesias Gonsalvez sigles...@igalia.com This

Re: [Mesa-dev] [PATCH] mesa/format_pack: Add _mesa_pack_int_rgba_row()

2015-01-09 Thread Jason Ekstrand
On Jan 9, 2015 2:43 AM, Samuel Iglesias Gonsalvez sigles...@igalia.com wrote: This will be used to unify code in pack.c. v2: - Modify pack_int_*() function generator to use c.datatype() and f.datatype() v3: - Only autogenerate pack_int_*() functions for non-normalized integer

[Mesa-dev] [PATCH] mesa: Accepts GL_RGB and GL_RGBA as valid internal formats only when querying

2015-01-09 Thread Eduardo Lima Mitev
Previous patch 78942787170615c9333810cf3a4819a13c9eb8e8 globally introduced GL_RGB and GL_RGBA as valid internal formats on GLES 3.0.4, as the spec implies (page 112). However, page 205 of the spec states that for RenderbufferStorageMultisample, internal format must be a sized internal format. For

Re: [Mesa-dev] [PATCH v4 16/22] mesa: Add _mesa_pack_uint_rgba_row() format conversion function

2015-01-09 Thread Jason Ekstrand
On Jan 9, 2015 2:40 AM, Samuel Iglesias Gonsálvez sigles...@igalia.com wrote: On Thursday, January 08, 2015 08:20:55 AM Iago Toral Quiroga wrote: From: Samuel Iglesias Gonsalvez sigles...@igalia.com We will use this later on to handle uint conversion scenarios in a master convert

Re: [Mesa-dev] [PATCH 4/5] meta: Add a BlitFramebuffers-based implementation of TexSubImage

2015-01-09 Thread Jason Ekstrand
On Jan 9, 2015 6:33 AM, Neil Roberts n...@linux.intel.com wrote: This patch looks really good. I have some comments below. Jason Ekstrand ja...@jlekstrand.net writes: This meta path, designed for use with PBO's, creates a temporary texture out of the PBO and uses BlitFramebuffers to do

[Mesa-dev] [Bug 88079] dEQP-GLES3.functional.fbo.completeness.renderable.renderbuffer.color0 tests fail due to enabling of GL_RGB and GL_RGBA

2015-01-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=88079 --- Comment #1 from Eduardo Lima Mitev el...@igalia.com --- Sent a patch for review: http://lists.freedesktop.org/archives/mesa-dev/2015-January/074122.html. It just allows GL_RGB and GL_RGBA when querying state through glGetInternalformativ().

Re: [Mesa-dev] [PATCH v4 17/22] mesa/format_pack: Add _mesa_pack_int_rgba_row()

2015-01-09 Thread Samuel Iglesias Gonsálvez
On Friday, January 09, 2015 07:14:37 AM Jason Ekstrand wrote: On Jan 8, 2015 11:54 PM, Samuel Iglesias Gonsálvez sigles...@igalia.com wrote: On Thursday, January 08, 2015 10:13:11 AM Jason Ekstrand wrote: On Wed, Jan 7, 2015 at 11:20 PM, Iago Toral Quiroga ito...@igalia.com wrote:

Re: [Mesa-dev] [PATCH v4 02/22] mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM

2015-01-09 Thread Samuel Iglesias Gonsálvez
On Thursday, January 08, 2015 01:31:56 PM Jason Ekstrand wrote: On Thu, Jan 8, 2015 at 12:02 PM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Jan 7, 2015 at 11:20 PM, Iago Toral Quiroga ito...@igalia.com wrote: From: Jason Ekstrand jason.ekstr...@intel.com Aparently, the

Re: [Mesa-dev] [PATCH v3] mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

2015-01-09 Thread Kenneth Graunke
On Friday, January 09, 2015 11:25:18 AM Tapani Pälli wrote: Patch enables ES2 extension that utilizes existing ES3 functionality. Changes make all the subtests to run and pass in WebGL conformance test 'webgl-draw-buffers' when running Chrome on OpenGL ES, also Piglit test

[Mesa-dev] [PATCH v3] mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

2015-01-09 Thread Tapani Pälli
Patch enables ES2 extension that utilizes existing ES3 functionality. Changes make all the subtests to run and pass in WebGL conformance test 'webgl-draw-buffers' when running Chrome on OpenGL ES, also Piglit test 'draw_buffers_gles2' passes. v2: remove unused boolean (Ilia Mirkin) v3: proper

Re: [Mesa-dev] [PATCH v4 14/22] mesa: Autogenerate most of format_pack.c

2015-01-09 Thread Samuel Iglesias Gonsálvez
On Thursday, January 08, 2015 10:03:01 AM Jason Ekstrand wrote: On Wed, Jan 7, 2015 at 11:20 PM, Iago Toral Quiroga ito...@igalia.com wrote: From: Jason Ekstrand jason.ekstr...@intel.com We were auto-generating it before. The problem was that the autogeneration tool we were using

Re: [Mesa-dev] [PATCH v2 118/133] nir/tex_instr: Rename the indirect source type

2015-01-09 Thread Connor Abbott
Reviewed-by: Connor Abbott cwabbo...@gmail.com On Wed, Jan 7, 2015 at 9:03 PM, Jason Ekstrand ja...@jlekstrand.net wrote: In particular, we rename nir_tex_src_sampler_index to _sampler_offset and add a sampler_array_size field to nir_tex_instr. This way we can pass the size of sampler arrays

Re: [Mesa-dev] [PATCH v2 118.5/133] nir/tex_instr_create: Initialize all 4 sources

2015-01-09 Thread Connor Abbott
BTW, now that we're adding an extra possible source, do we need to expand the size of the source array? Anyways, Reviewed-by: Connor Abbott cwabbo...@gmail.com On Wed, Jan 7, 2015 at 9:03 PM, Jason Ekstrand ja...@jlekstrand.net wrote: This helps a lot with things like lowering passes that may

Re: [Mesa-dev] [PATCH v2 2/2] i965: Use the predicate enable bit for conditional rendering without stalling

2015-01-09 Thread Neil Roberts
Daniel Vetter dan...@ffwll.ch writes: Oh, I guess my earlier mail was too late. One issue still is picking the numbers, since you seem to assume here that ver = 2 means the stuff actually works. But like Ken said the cmd parser in upstream isn't really enabled yet. The patch only enables the

Re: [Mesa-dev] [PATCH 5/5] i965: Use _mesa_meta_TexSubImage for PBO's and cases where the texture is busy

2015-01-09 Thread Neil Roberts
Jason Ekstrand ja...@jlekstrand.net writes: This improves texture upload performance on the PBO upload test available at http://www.songho.ca/opengl/gl_pbo.html by 80% for the non-PBO case (due to avoiding a buffer stall) and 500% for the PBO case. Just for reference, if I run this branch

[Mesa-dev] [PATCH v2] mesa: Enable GL_RGB/GL_RGBA in GLES3 glGetInternalformativ

2015-01-09 Thread michael . w . mason
From: Mike Mason michael.w.ma...@intel.com Removes commit 7894278 changes and moves fix to _mesa_GetInternalformativ(). The original commit enabled the GL_RGB and GL_RGBA unsized internal formats as valid for render buffers in GLES3, but this is incorrect. They should have only been enabled for

Re: [Mesa-dev] [PATCH 149/133] nir: Use the actual FNV-1a hash for hashing derefs

2015-01-09 Thread Connor Abbott
As you mentioned, you should add something to the commit message saying you're making it use a loop too. On Tue, Jan 6, 2015 at 7:34 PM, Jason Ekstrand ja...@jlekstrand.net wrote: --- src/glsl/nir/nir_lower_locals_to_regs.c | 65 src/glsl/nir/nir_lower_variables.c |

Re: [Mesa-dev] [PATCH 152/133] nir/validate: Don't build anything unless we're in

2015-01-09 Thread Connor Abbott
With Matt's suggested commit message, Reviewed-by: Connor Abbott cwabbo...@gmail.com On Tue, Jan 6, 2015 at 7:34 PM, Jason Ekstrand ja...@jlekstrand.net wrote: --- src/glsl/nir/nir.h | 4 src/glsl/nir/nir_validate.c | 7 +++ 2 files changed, 11 insertions(+) diff --git

Re: [Mesa-dev] [PATCH 149/133] nir: Use the actual FNV-1a hash for hashing derefs

2015-01-09 Thread Connor Abbott
Whoops... I was looking over the actual file (instead of the patch), and there's a comment above (at least in lower_variables) about magic numbers that needs to be deleted or rewritten. On Fri, Jan 9, 2015 at 1:30 PM, Connor Abbott cwabbo...@gmail.com wrote: As you mentioned, you should add

Re: [Mesa-dev] [PATCH 091/133] nir: Add a pass to lower local variable accesses to SSA values

2015-01-09 Thread Connor Abbott
On Sun, Jan 4, 2015 at 4:01 PM, Connor Abbott cwabbo...@gmail.com wrote: [...] static bool deref_may_be_aliased(nir_deref_var *deref, struct lower_variables_state *state) { nir_deref_var var_deref = *deref; var_deref.deref.child = NULL; struct deref_node *node

Re: [Mesa-dev] [PATCH 151/133] nir/lower_variables: Improve documentation

2015-01-09 Thread Connor Abbott
On Tue, Jan 6, 2015 at 7:34 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Additional description was added to a variety of places. Also, we no longer use the term leaf to describe fully-qualified direct derefs. Instead, we simply use the term direct or spell it out completely. ---

Re: [Mesa-dev] [PATCH v2 118.5/133] nir/tex_instr_create: Initialize all 4 sources

2015-01-09 Thread Jason Ekstrand
On Fri, Jan 9, 2015 at 11:34 AM, Connor Abbott cwabbo...@gmail.com wrote: BTW, now that we're adding an extra possible source, do we need to expand the size of the source array? I don't know that we've added anything that wasn't there before. Then again, it's not documented how you came to

Re: [Mesa-dev] [PATCH 5/5] i965: Use _mesa_meta_TexSubImage for PBO's and cases where the texture is busy

2015-01-09 Thread Jason Ekstrand
On Fri, Jan 9, 2015 at 11:39 AM, Neil Roberts n...@linux.intel.com wrote: Jason Ekstrand ja...@jlekstrand.net writes: This improves texture upload performance on the PBO upload test available at http://www.songho.ca/opengl/gl_pbo.html by 80% for the non-PBO case (due to avoiding a buffer

Re: [Mesa-dev] [PATCH v2 118.5/133] nir/tex_instr_create: Initialize all 4 sources

2015-01-09 Thread Connor Abbott
On Fri, Jan 9, 2015 at 5:41 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Fri, Jan 9, 2015 at 11:34 AM, Connor Abbott cwabbo...@gmail.com wrote: BTW, now that we're adding an extra possible source, do we need to expand the size of the source array? I don't know that we've added

[Mesa-dev] [PATCH v2 4/5] meta: Add a BlitFramebuffers-based implementation of TexSubImage

2015-01-09 Thread Jason Ekstrand
This meta path, designed for use with PBO's, creates a temporary texture out of the PBO and uses BlitFramebuffers to do the actual texture upload. v2 Jason Ekstrand jason.ekstr...@intel.com: - Add support for handling simple packing options --- src/mesa/Makefile.sources | 1

Re: [Mesa-dev] [PATCH 31/53] st/nine: Clamp ps 1.X constants

2015-01-09 Thread Marek Olšák
As far as I know, no. Marek On Fri, Jan 9, 2015 at 7:42 AM, Matt Turner matts...@gmail.com wrote: On Thu, Jan 8, 2015 at 5:48 AM, Marek Olšák mar...@gmail.com wrote: Please avoid TGSI_SAT_MINUS_PLUS_ONE. Nobody uses it, hardly anybody implements it. I'm curious -- does any hardware

Re: [Mesa-dev] [PATCH 4/5] meta: Add a BlitFramebuffers-based implementation of TexSubImage

2015-01-09 Thread Neil Roberts
This patch looks really good. I have some comments below. Jason Ekstrand ja...@jlekstrand.net writes: This meta path, designed for use with PBO's, creates a temporary texture out of the PBO and uses BlitFramebuffers to do the actual texture upload. --- src/mesa/Makefile.sources

Re: [Mesa-dev] [PATCH] radeon: align r600/700 fmask to 128 X blocks.

2015-01-09 Thread Alex Deucher
On Thu, Jan 8, 2015 at 10:34 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com After much searching and empricial testing, and reading of things I've no justifcation for this fix, other than it really appears this is what the hw is doing or close enough. It makes

Re: [Mesa-dev] Precision qualifiers in the IR

2015-01-09 Thread Iago Toral
On Thu, 2015-01-08 at 13:54 +0200, Aras Pranckevicius wrote: I see precision qualifiers being parsed and stored in the AST, but I don't see where this information is passed to the IR: ir_variable or glsl_type don't have this info, in fact,

Re: [Mesa-dev] [PATCH v3] mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

2015-01-09 Thread Tapani Pälli
On 01/09/2015 12:07 PM, Kenneth Graunke wrote: On Friday, January 09, 2015 11:25:18 AM Tapani Pälli wrote: Patch enables ES2 extension that utilizes existing ES3 functionality. Changes make all the subtests to run and pass in WebGL conformance test 'webgl-draw-buffers' when running Chrome on

Re: [Mesa-dev] [PATCH v4 16/22] mesa: Add _mesa_pack_uint_rgba_row() format conversion function

2015-01-09 Thread Samuel Iglesias Gonsálvez
On Thursday, January 08, 2015 08:20:55 AM Iago Toral Quiroga wrote: From: Samuel Iglesias Gonsalvez sigles...@igalia.com We will use this later on to handle uint conversion scenarios in a master convert function. v2: - Modify pack_uint_*() function generation to use c.datatype() and

[Mesa-dev] [PATCH] mesa/format_pack: Add _mesa_pack_int_rgba_row()

2015-01-09 Thread Samuel Iglesias Gonsalvez
This will be used to unify code in pack.c. v2: - Modify pack_int_*() function generator to use c.datatype() and f.datatype() v3: - Only autogenerate pack_int_*() functions for non-normalized integer formats. Signed-off-by: Samuel Iglesias Gonsalvez sigles...@igalia.com ---