Re: [Mesa-dev] [PATCH v2 02/14] nir: insert ssa_undef instructions when cleaning up defs/uses

2015-05-21 Thread Jason Ekstrand
On May 21, 2015 9:41 AM, "Connor Abbott" wrote: > > The point of cleanup_defs_uses() is to make an instruction safe to > remove by removing any references that the rest of the shader may have > to it. Previously, it was handling register use/def sets and removing > the instruction from the use set

Re: [Mesa-dev] [PATCH] nir/remove_phis: handle trivial back-edges

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 5:07 PM, Connor Abbott wrote: > Some loops may have phi nodes that look like: > > foo = ... > loop { > bar = phi(foo, bar) > ... > } > > in which case we can remove the phi node and replace all uses of 'bar' > with 'foo'. In particular, there are some L4D2 vertex sh

Re: [Mesa-dev] [PATCH v2 01/14] nir/vars_to_ssa: don't rewrite removed instructions

2015-05-21 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On May 21, 2015 9:41 AM, "Connor Abbott" wrote: > We were rewriting the uses of the intrinsic instruction to point to > something else after removing it, which only happened to work since we > were lax about having dangling uses when removing instructions. Fix that >

Re: [Mesa-dev] [PATCH] nir/remove_phis: handle trivial back-edges

2015-05-21 Thread Jason Ekstrand
This looks totally sane to me. Reviewed-by: Jason Ekstrand I'll try and get some shader-db numbers for you tomorrow. --Jason On May 21, 2015 5:07 PM, "Connor Abbott" wrote: > > Some loops may have phi nodes that look like: > > foo = ... > loop { > bar = phi(foo, bar) > ... > } > > in w

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Connor Abbott
On Thu, May 21, 2015 at 8:51 PM, Rogovin, Kevin wrote: > >> FWIW, the kernel standards for commit messages are at: >> https://www.kernel.org/doc/Documentation/SubmittingPatches >> Most of those rules apply to Mesa too. It says the body should be wrapped to >> 75 chars (although I've been using 72

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Connor Abbott
On Thu, May 21, 2015 at 8:40 PM, Rogovin, Kevin wrote: > > >> I suppose it could be useful, but I think we've been mostly successful at >> just expecting people to recognize when what they're writing doesn't look >> like the code around it. > > This is my point. Older code had different style/ex

[Mesa-dev] [PATCH] mesa: do not use _glapi_new_nop_table() for DRI builds

2015-05-21 Thread Brian Paul
Commit 4bdbb588a9d38 introduced new _glapi_new_nop_table() and _glapi_set_nop_handler() functions in the glapi dispatcher (which live in libGL.so). The calls to those functions from context.c would be undefined (i.e. an ABI break) if the libGL used at runtime was older. For the time being, use th

Re: [Mesa-dev] [PATCH] mesa: do not use _glapi_new_nop_table() for DRI builds

2015-05-21 Thread Brian Paul
On 05/15/2015 02:28 PM, Emil Velikov wrote: On 15/05/15 17:58, Brian Paul wrote: On 05/15/2015 11:14 AM, Emil Velikov wrote: On 15/05/15 15:13, Brian Paul wrote: Commit 4bdbb588a9d38 introduced new _glapi_new_nop_table() and _glapi_set_nop_handler() functions in the glapi dispatcher (which liv

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Rogovin, Kevin
> FWIW, the kernel standards for commit messages are at: > https://www.kernel.org/doc/Documentation/SubmittingPatches > Most of those rules apply to Mesa too. It says the body should be wrapped to > 75 chars (although I've been using 72 like Matt said). This is my point: "use most rules, but no

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 5:26 PM, Rogovin, Kevin wrote: > HI, > > > >>Or 78 columns, to be safe, but there's exceptions, like if you're >> defining a big static table/array of info. > > Uggg I don't mind exceptions, but knowing them is key. > > > >>> 4. successive parenthesis must have spaces

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Anuj Phogat
On Thu, May 21, 2015 at 1:51 PM, Matt Turner wrote: > On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: >> A lot of opinion stuff is below, feel free to ignore them if you don't think >> there are improvements. >> >> On Fri, Apr 17, 2015 at 04:51:38PM -0700, Anuj Phogat wrote: >>> This patch

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Anuj Phogat
On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: > A lot of opinion stuff is below, feel free to ignore them if you don't think > there are improvements. > > On Fri, Apr 17, 2015 at 04:51:38PM -0700, Anuj Phogat wrote: >> This patch enables using XY_FAST_COPY_BLT only for Yf/Ys tiled buffers.

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Connor Abbott
On Thu, May 21, 2015 at 8:05 PM, Rogovin, Kevin wrote: > >> This line is too long. (It will not fit in 80 columns in git log since git >> log adds some spaces before each commit message line.) > > What is the accepted maximum length for a line in a commit message? > >>> - extension table >>> -

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Rogovin, Kevin
> I suppose it could be useful, but I think we've been mostly successful at > just expecting people to recognize when what they're writing doesn't look > like the code around it. This is my point. Older code had different style/expectations than newer code. For this patch series, I have hit a

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Brian Paul
On 05/21/2015 05:26 PM, Rogovin, Kevin wrote: HI, Or 78 columns, to be safe, but there's exceptions, like if you're defining a big static table/array of info. Uggg I don't mind exceptions, but knowing them is key. 4. successive parenthesis must have spaces between parenthesis

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Rogovin, Kevin
HI, >Or 78 columns, to be safe, but there's exceptions, like if you're > defining a big static table/array of info. Uggg I don't mind exceptions, but knowing them is key. >> 4. successive parenthesis must have spaces between parenthesis > Example? if (some_func(some_argument)) is

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 5:05 PM, Rogovin, Kevin wrote: > >> This line is too long. (It will not fit in 80 columns in git log since git >> log adds some spaces before each commit message line.) > > What is the accepted maximum length for a line in a commit message? Gentoo's default vim configurat

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Brian Paul
On 05/21/2015 05:05 PM, Rogovin, Kevin wrote: This line is too long. (It will not fit in 80 columns in git log since git log adds some spaces before each commit message line.) What is the accepted maximum length for a line in a commit message? Probably 75 chars since there's 4 spaces of in

Re: [Mesa-dev] [v3 PATCH 06/10] i965: Use _mesa_geometry_ functions appropriately

2015-05-21 Thread Rogovin, Kevin
> Strange because of the types -- presumably fb_samples is an int because its > uses are in a comparison with another int (that probably doesn't need to be > an int :) I am really hesitant to start changing types all over the place; I have a sinking suspicion that changing the types of fb_width

[Mesa-dev] [PATCH] nir/remove_phis: handle trivial back-edges

2015-05-21 Thread Connor Abbott
Some loops may have phi nodes that look like: foo = ... loop { bar = phi(foo, bar) ... } in which case we can remove the phi node and replace all uses of 'bar' with 'foo'. In particular, there are some L4D2 vertex shaders with loops that, after optimization, look like: /* succs:

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Rogovin, Kevin
> This line is too long. (It will not fit in 80 columns in git log since git > log adds some spaces before each commit message line.) What is the accepted maximum length for a line in a commit message? >> - extension table >> - additions to gl_framebuffer >> >> v1 -> v2 >> Spacing and trail

Re: [Mesa-dev] [PATCH V2 22/22] i965/gen9: Disable Mip Tail for YF/YS tiled surfaces

2015-05-21 Thread Ben Widawsky
On Fri, Apr 17, 2015 at 04:51:43PM -0700, Anuj Phogat wrote: > This fixed the buffer corruption happening in a FBO which use YF/YS > tiled renderbuffer or texture as color attachment. > > Spec recommends disabling mip tails for non-mip-mapped surfaces. > But, with this enabled I couldn't get corre

Re: [Mesa-dev] [v3 PATCH 06/10] i965: Use _mesa_geometry_ functions appropriately

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 4:44 PM, Rogovin, Kevin wrote: >> struct brw_state_flags state = brw->state.pipelines[pipeline]; >> + int fb_samples = (int)_mesa_geometric_samples(ctx->DrawBuffer); > >> The cast looks strange > > Is there a spacing missing in the cast? or is it strange because of th

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Jordan Justen
Some commit message nits... :) On 2015-05-21 14:30:48, wrote: > From: Kevin Rogovin > > Define the infrastructure for the extension GL_ARB_framebuffer_no_attachments: This line is too long. (It will not fit in 80 columns in git log since git log adds some spaces before each commit message line

Re: [Mesa-dev] [v3 PATCH 06/10] i965: Use _mesa_geometry_ functions appropriately

2015-05-21 Thread Rogovin, Kevin
>> src/mesa/drivers/dri/i965/brw_misc_state.c | 10 +++--- > > src/mesa/drivers/dri/i965/brw_sf_state.c | 8 > As is this? brw_misc_state.c is active for all Gens. The change to brw_sf_state.c is to add a comment warning that using gl_framebuffer::Width and so o

Re: [Mesa-dev] [v3 PATCH 00/10] Implement extension ARB_framebuffer_no_attachments

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 4:23 PM, Matt Turner wrote: > On Thu, May 21, 2015 at 2:30 PM, wrote: >> From: Kevin Rogovin >> >> This patch series implements: >> - the needed functionality in Mesa-core for ARB_framebuffer_no_attachments >> - implements and enables the extension i965 > > I think t

Re: [Mesa-dev] [v3 PATCH 03/10] mesa: Complete implementation for ARB_framebuffer_no_attachments in Mesa core

2015-05-21 Thread Rogovin, Kevin
> Extra space between . and " Fix I will > Extra space before . Fix I will > Also, if anyone is ever grepping for MAX_FRAMEBUFFER_SAMPLES, they won't find > this. I'd move the whole word to the next line. Ok. > + * > + * The same requirements are also in place for GL 4.5, > +

Re: [Mesa-dev] [PATCH V2 21/22] i965/gen9: Plugin the code for selecting YF/YS tiling on skl+

2015-05-21 Thread Ben Widawsky
On Fri, Apr 17, 2015 at 04:51:42PM -0700, Anuj Phogat wrote: > Note: Yf/Ys tiling stays disabled to avoid any piglit regressions. I'm > working on fixing the remaining piglit failures. > > We need to do some benchmarking to come up with conditions to choose > Ys (64 KB) over Yf (4 KB). Any thought

Re: [Mesa-dev] [v3 PATCH 00/10] Implement extension ARB_framebuffer_no_attachments

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > This patch series implements: > - the needed functionality in Mesa-core for ARB_framebuffer_no_attachments > - implements and enables the extension i965 I think there was one patch I didn't notice some kind of obvious style p

Re: [Mesa-dev] [v3 PATCH 03/10] mesa: Complete implementation for ARB_framebuffer_no_attachments in Mesa core

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Implement GL_ARB_framebuffer_no_attachments in Mesa core > - changes to conditions for framebuffer completenss > - implement set/get functions for framebuffers for >new functions in GL_ARB_framebuffer_no_attachments > > v1 -

Re: [Mesa-dev] [v3 PATCH 04/10] mesa: add helper convenience functions for fetching geometry of gl_framebuffer

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Add convenience helper functions for fetching geometry of gl_framebuffer > that return the geometry of the gl_framebuffer instead of the geometry of > the buffers of the gl_framebuffer when then the gl_framebuffer has no > attachm

Re: [Mesa-dev] [v3 PATCH 08/10] i965: ensure execution of fragment shader when fragment shader has atomic buffer access

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Ensure that the GPU spawns the fragment shader thread for those > fragment shaders with atomic buffer access. > > v1 -> v2 > No change. > > v2 -> v3 > Use utility function _mesa_active_fragment_shader_has_atomic_ops(). > > Revie

Re: [Mesa-dev] [v3 PATCH 07/10] mesa: add helper function for testing if current fragment shader has atomics

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Add helper function that checks if current fragment shader active > of gl_context has atomic buffer access. > > v1 -> v3 > Added in v3 of patch series. > > Signed-off-by: Kevin Rogovin > --- > src/mesa/main/mtypes.h | 7 ++-

Re: [Mesa-dev] [v3 PATCH 06/10] i965: Use _mesa_geometry_ functions appropriately

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Change references to gl_framebuffer::Width, Height, MaxNumLayers > and Visual::samples to use the _mesa_geometry_ convenience functions > for those places where the geometry of the gl_framebuffer is needed > (in contrast to the ge

Re: [Mesa-dev] [v3 PATCH 10/10] mark GL_ARB_framebuffer_no_attachments as done for i965

2015-05-21 Thread Timothy Arceri
On Fri, 2015-05-22 at 00:30 +0300, kevin.rogo...@intel.com wrote: > From: Kevin Rogovin > > Mark GL_ARB_framebuffer_no_attachments as done for i965. > > v1 -> v2 > File added to patch series > > v2 -> v3 > docs/GL3.txt : add done mark under GLES3.1 > docs/relnotes/10.6.0.html : maintain alph

Re: [Mesa-dev] [v3 PATCH 02/10] mesa:Define constants and functions for ARB_framebuffer_no_attachment extension

2015-05-21 Thread Rogovin, Kevin
> I'm happy to see new documentation, so thanks for writing it up! > But let's separate this from the functional changes related to implementing > the extension. (Didn't I give this comment last time?) If you did, I missed it. Unless there are objections, I'll remove this from the series and m

Re: [Mesa-dev] [v3 PATCH 02/10] mesa:Define constants and functions for ARB_framebuffer_no_attachment extension

2015-05-21 Thread Matt Turner
Again, space after "mesa:" in the subject. On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Define the enumeration constants, function entry points and > glGet for the GL_ARB_framebuffer_no_attachments. > > v1 -> v2 > Add output="true" for GetFramebufferParameteriv parameter p

Re: [Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread Matt Turner
> Subject: mesa:Define extension ARB_framebuffer_no_attachments Space after "mesa:" On Thu, May 21, 2015 at 2:30 PM, wrote: > From: Kevin Rogovin > > Define the infrastructure for the extension GL_ARB_framebuffer_no_attachments: > - extension table > - additions to gl_framebuffer > > v1 -> v

Re: [Mesa-dev] [v3 PATCH 10/10] mark GL_ARB_framebuffer_no_attachments as done for i965

2015-05-21 Thread Ilia Mirkin
On Thu, May 21, 2015 at 5:30 PM, wrote: > From: Kevin Rogovin > > Mark GL_ARB_framebuffer_no_attachments as done for i965. > > v1 -> v2 > File added to patch series > > v2 -> v3 > docs/GL3.txt : add done mark under GLES3.1 > docs/relnotes/10.6.0.html : maintain alphabetical order > > Reviewed

Re: [Mesa-dev] [PATCH 2/2] nv50: make pipeline statistics queries use 64-bits, based on nvc0

2015-05-21 Thread Ilia Mirkin
Series is: Reviewed-by: Ilia Mirkin But please adjust the commit descriptions to explain what they fix. Like this fixes PIPELINE_STATISTICS with HUD. The previous one fixes 64-bit queries with HUD. On Thu, May 21, 2015 at 5:58 PM, Samuel Pitoiset wrote: > Tested on NVA8. No regression for ARB_p

[Mesa-dev] [PATCH 2/2] nv50: make pipeline statistics queries use 64-bits, based on nvc0

2015-05-21 Thread Samuel Pitoiset
Tested on NVA8. No regression for ARB_pipeline_statistics piglit tests. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c b/src/gallium/drivers/nouv

[Mesa-dev] [PATCH 1/2] nv50: use a fence for 64 bits queries, based on nvc0

2015-05-21 Thread Samuel Pitoiset
A sequence number is written for 32-bits queries to make sure they are ready, but not for 64-bits queries. Instead, we have to use a fence. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_query.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff

Re: [Mesa-dev] [v3 PATCH 03/10] mesa: Complete implementation for ARB_framebuffer_no_attachments in Mesa core

2015-05-21 Thread Ilia Mirkin
On Thu, May 21, 2015 at 5:30 PM, wrote: > From: Kevin Rogovin If you set your email name to that, you won't get this funny mail, and your name will appear properly in the actual email sent. This is what I have in my .gitconfig: [user] email = imir...@alum.mit.edu name = Ilia M

[Mesa-dev] [v3 PATCH 10/10] mark GL_ARB_framebuffer_no_attachments as done for i965

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Mark GL_ARB_framebuffer_no_attachments as done for i965. v1 -> v2 File added to patch series v2 -> v3 docs/GL3.txt : add done mark under GLES3.1 docs/relnotes/10.6.0.html : maintain alphabetical order Reviewed-by: Ian Romanick (v2) Signed-off-by: Kevin Rogovin --- do

[Mesa-dev] [v3 PATCH 04/10] mesa: add helper convenience functions for fetching geometry of gl_framebuffer

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Add convenience helper functions for fetching geometry of gl_framebuffer that return the geometry of the gl_framebuffer instead of the geometry of the buffers of the gl_framebuffer when then the gl_framebuffer has no attachments. v1 -> v2 Split from patch "mesa:helper-conve

[Mesa-dev] [v3 PATCH 09/10] i965: enable ARB_framebuffer_no_attachment extension for Gen7 and later

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Enable GL_ARB_framebuffer_no_attachments in i965 for Gen7 and higher. v1 -> v2 No changes. v2 -> v3 intel_extensions.c: Alphabetize insertion. Reviewed-by: Ian Romanick (v2) Signed-off-by: Kevin Rogovin --- src/mesa/drivers/dri/i965/brw_context.c | 6 ++ src/m

[Mesa-dev] [v3 PATCH 05/10] mesa: add helper convenience functions for computing box intersected against scissors of gl_framebuffer

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Add helper convenience function that intersects the scissor values against a passed bounding box. In addition, to avoid replicated code, make the function _mesa_scissor_bounding_box() use this new function. v1 -> v2 Split from patch "mesa:helper-conveniance functions for dri

[Mesa-dev] [v3 PATCH 08/10] i965: ensure execution of fragment shader when fragment shader has atomic buffer access

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Ensure that the GPU spawns the fragment shader thread for those fragment shaders with atomic buffer access. v1 -> v2 No change. v2 -> v3 Use utility function _mesa_active_fragment_shader_has_atomic_ops(). Reviewed-by: Tapani Pälli (v1) Signed-off-by: Kevin Rogovin ---

[Mesa-dev] [v3 PATCH 07/10] mesa: add helper function for testing if current fragment shader has atomics

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Add helper function that checks if current fragment shader active of gl_context has atomic buffer access. v1 -> v3 Added in v3 of patch series. Signed-off-by: Kevin Rogovin --- src/mesa/main/mtypes.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [v3 PATCH 01/10] mesa:Define extension ARB_framebuffer_no_attachments

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Define the infrastructure for the extension GL_ARB_framebuffer_no_attachments: - extension table - additions to gl_framebuffer v1 -> v2 Spacing and trailing spaces fixes. v2 -> v3 mtypes.h: Correct comment on _HasAttachments. Signed-off-by: Kevin Rogovin --- src/mesa/

[Mesa-dev] [v3 PATCH 06/10] i965: Use _mesa_geometry_ functions appropriately

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Change references to gl_framebuffer::Width, Height, MaxNumLayers and Visual::samples to use the _mesa_geometry_ convenience functions for those places where the geometry of the gl_framebuffer is needed (in contrast to the geometry of the intersection of the attachments of the

[Mesa-dev] [v3 PATCH 03/10] mesa: Complete implementation for ARB_framebuffer_no_attachments in Mesa core

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Implement GL_ARB_framebuffer_no_attachments in Mesa core - changes to conditions for framebuffer completenss - implement set/get functions for framebuffers for new functions in GL_ARB_framebuffer_no_attachments v1 -> v2 Spacing and exceed 80 characters per line fixes.

[Mesa-dev] [v3 PATCH 02/10] mesa:Define constants and functions for ARB_framebuffer_no_attachment extension

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin Define the enumeration constants, function entry points and glGet for the GL_ARB_framebuffer_no_attachments. v1 -> v2 Add output="true" for GetFramebufferParameteriv parameter params. Alphabetical insertion. v2 -> v3 Implement _mesa_GetFramebufferParameteriv and _mesa_F

[Mesa-dev] [v3 PATCH 00/10] Implement extension ARB_framebuffer_no_attachments

2015-05-21 Thread kevin . rogovin
From: Kevin Rogovin This patch series implements: - the needed functionality in Mesa-core for ARB_framebuffer_no_attachments - implements and enables the extension i965 Kevin Rogovin (10): mesa:Define extension ARB_framebuffer_no_attachments to gl_framebuffer for extension ARB_framebuf

Re: [Mesa-dev] [PATCH 14.1/15] glapi: Store exec table version info outside the XML

2015-05-21 Thread Fredrik Höglund
On Tuesday 19 May 2015, Ian Romanick wrote: > From: Ian Romanick > > Currently on the functions that are exclusive to core-profile are > implemented. The remainder continue to live in the XML. Additional > functions can be moved later. > > The functions for GL_ARB_draw_indirect and GL_ARB_mult

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: > A lot of opinion stuff is below, feel free to ignore them if you don't think > there are improvements. > > On Fri, Apr 17, 2015 at 04:51:38PM -0700, Anuj Phogat wrote: >> This patch enables using XY_FAST_COPY_BLT only for Yf/Ys tiled buffers.

Re: [Mesa-dev] [PATCH 2/2] nv50: fix pipeline statistics queries, based on nvc0

2015-05-21 Thread Samuel Pitoiset
On 05/21/2015 09:34 PM, Ilia Mirkin wrote: Do the piglits currently fail? But this does seem right, although the distinction between 64-bit and 32-bit queries is a *bit* unclear to me (wrt the diff approaches the code takes). I tested with the HUD and I compared results between NVA8 and NVD9.

Re: [Mesa-dev] [PATCH 2/2] nv50: fix pipeline statistics queries, based on nvc0

2015-05-21 Thread Ilia Mirkin
Yeah, ARB_pipeline_statistics. HUD is a different use-case, hmmm... perhaps it's forgetting to do something? On Thu, May 21, 2015 at 3:43 PM, Samuel Pitoiset wrote: > > > On 05/21/2015 09:34 PM, Ilia Mirkin wrote: >> >> Do the piglits currently fail? But this does seem right, although the >> dist

Re: [Mesa-dev] [PATCH 1/2] nv50: fix 64 bits queries, based on nvc0

2015-05-21 Thread Samuel Pitoiset
On 05/21/2015 09:33 PM, Ilia Mirkin wrote: So... this doesn't fix a known issue? Just because nvc0 does something, doesn't make it right. nvc0 has a ton of internal mp/pm stats too, which are 64-bit, and provide other differences. Sure, but in this case, it seems to fix the issue... As an

Re: [Mesa-dev] [PATCH 2/2] nv50: fix pipeline statistics queries, based on nvc0

2015-05-21 Thread Ilia Mirkin
Do the piglits currently fail? But this does seem right, although the distinction between 64-bit and 32-bit queries is a *bit* unclear to me (wrt the diff approaches the code takes). On Thu, May 21, 2015 at 3:28 PM, Samuel Pitoiset wrote: > These queries use 64 bits. Tested on NVA8. > > Signed-of

Re: [Mesa-dev] [PATCH 1/2] nv50: fix 64 bits queries, based on nvc0

2015-05-21 Thread Ilia Mirkin
So... this doesn't fix a known issue? Just because nvc0 does something, doesn't make it right. nvc0 has a ton of internal mp/pm stats too, which are 64-bit, and provide other differences. As an aside, nv50_query_end for PIPE_QUERY_TIMESTAMP_DISJOINT *is* busted... it sets q->ready = TRUE and then

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Ben Widawsky
A lot of opinion stuff is below, feel free to ignore them if you don't think there are improvements. On Fri, Apr 17, 2015 at 04:51:38PM -0700, Anuj Phogat wrote: > This patch enables using XY_FAST_COPY_BLT only for Yf/Ys tiled buffers. > Later It can be turned on for other tiling patterns (X,Y). >

[Mesa-dev] [PATCH 2/2] nv50: fix pipeline statistics queries, based on nvc0

2015-05-21 Thread Samuel Pitoiset
These queries use 64 bits. Tested on NVA8. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c b/src/gallium/drivers/nouveau/nv50/nv50_query.c index a

[Mesa-dev] [PATCH 1/2] nv50: fix 64 bits queries, based on nvc0

2015-05-21 Thread Samuel Pitoiset
According to nvc0, 64-bits queries use a fence to make sure the result is available. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nv50/nv50_query.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c

Re: [Mesa-dev] [PATCH V2] glsl: remove element_type() helper

2015-05-21 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] [PATCH 15/20] i915: Enable intel_render path for points

2015-05-21 Thread Ville Syrjälä
On Fri, May 15, 2015 at 12:18:11PM -0700, Ian Romanick wrote: > There are some really twitchy tests in ES1 (and possibly ES2) > conformance related to this. Do any of those tests change with this commit? I did run some ES1 conformnce tests, but the branches in the repo were not very clear so I'm

Re: [Mesa-dev] [PATCH 03/20] t_dd_dmatmp: Disallow flat shading when rendering quad strips via tri strips

2015-05-21 Thread Ville Syrjälä
On Fri, May 15, 2015 at 12:08:33PM -0700, Ian Romanick wrote: > On 03/23/2015 05:47 AM, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > When rendering quad strips via tri strips we can't get the provoking > > vertex right, so disallow flat shading. > > Same comments as for p

Re: [Mesa-dev] [PATCH 02/20] t_dd_dmatmp: Allow flat shaded polygons with tri fans

2015-05-21 Thread Ville Syrjälä
On Fri, May 15, 2015 at 12:07:54PM -0700, Ian Romanick wrote: > On 03/23/2015 05:47 AM, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > We can allow rendering flat shaded polygons using tri fans if we check > > the provoking vertex convention. > > This sounds reasonable sinc

Re: [Mesa-dev] [PATCH v2 00/14] NIR dead control-flow removal

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 9:40 AM, Connor Abbott wrote: > This is the second version of my dead control-flow series. In addition > to fixing up a few things pointed out by Jason and cleaning up a few > other odds and ends, I've fixed a number of bugs caught by disabling > opt_if_simplification in GL

Re: [Mesa-dev] [PATCH v2 03/14] nir: cleanup cf nodes earlier in nir_cf_node_remove()

2015-05-21 Thread Connor Abbott
On Thu, May 21, 2015 at 12:54 PM, Matt Turner wrote: > On Thu, May 21, 2015 at 9:40 AM, Connor Abbott wrote: >> Before, when we were deleting a cf node that was a block, we were first >> removing all the instructions and then calling cleanup_cf_node(), at >> which point cleanup_cf_node() couldn't

Re: [Mesa-dev] [PATCH v2 08/14] nir: add an optimization for removing dead control flow

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 9:41 AM, Connor Abbott wrote: > I'm not so sure about where to put the helper currently in nir.c... on > the one hand, it's pretty specific to this pass, but on the other hand > it needs to do some very fiddly low-level things to the control flow > which is why it needs acc

Re: [Mesa-dev] [PATCH v2 04/14] nir: properly clean up jumps when removing cf nodes

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 9:40 AM, Connor Abbott wrote: > Before, we might have left dangling predecessors from jumps that were > going to be removed. > > v2: split out from "nir: insert ssa_undef instructions when cleaning up > defs/uses" > > Signed-off-by: Connor Abbott > --- > src/glsl/nir/

Re: [Mesa-dev] [PATCH v2 03/14] nir: cleanup cf nodes earlier in nir_cf_node_remove()

2015-05-21 Thread Matt Turner
On Thu, May 21, 2015 at 9:40 AM, Connor Abbott wrote: > Before, when we were deleting a cf node that was a block, we were first > removing all the instructions and then calling cleanup_cf_node(), at > which point cleanup_cf_node() couldn't do its job. Just move it before > everything else, which s

[Mesa-dev] [PATCH v2 14/14] XXX disable opt_if_simplification

2015-05-21 Thread Connor Abbott
This helps with testing the NIR dead cf pass. Signed-off-by: Connor Abbott --- src/glsl/glsl_parser_extras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index be6713c..42e9b49 100644 --- a/src/glsl/glsl_p

[Mesa-dev] [PATCH v2 09/14] nir/dead_cf: delete code that's unreachable due to jumps

2015-05-21 Thread Connor Abbott
v2: use nir_cf_node_remove_after(). v2: use foreach_list_typed() instead of hardcoding a list walk. Signed-off-by: Connor Abbott --- src/glsl/nir/nir_opt_dead_cf.c | 123 ++--- 1 file changed, 115 insertions(+), 8 deletions(-) diff --git a/src/glsl/nir/nir_opt

[Mesa-dev] [PATCH v2 11/14] nir: add a helper for iterating over blocks in a cf node

2015-05-21 Thread Connor Abbott
We were already doing this internally for iterating over a function implementation, so just expose it directly. Signed-off-by: Connor Abbott --- src/glsl/nir/nir.c | 7 +++ src/glsl/nir/nir.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index

[Mesa-dev] [PATCH v2 13/14] i965/fs/nir: enable the dead control flow optimization

2015-05-21 Thread Connor Abbott
Doesn't do anything on the public shader-db. Signed-off-by: Connor Abbott --- src/glsl/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_nir.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/glsl/Makefile.sources b/src/glsl/Makefile.sources index d784a81..7bdd895 100644

[Mesa-dev] [PATCH v2 12/14] nir/dead_cf: add support for removing useless loops

2015-05-21 Thread Connor Abbott
v2: fix detecting if the loop has any phi nodes after it. v2: use nir_foreach_ssa_def() instead of nir_foreach_dest() when checking for values live after the loop to catch const_load instructions. v2: fix handling return instructions v2: add some documentation to loop_is_dead() Signed-off-

[Mesa-dev] [PATCH v2 10/14] nir: add nir_block_get_following_loop() helper

2015-05-21 Thread Connor Abbott
Signed-off-by: Connor Abbott --- src/glsl/nir/nir.c | 16 src/glsl/nir/nir.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 79c4a4a..cbee507 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -2242,6 +2242,22 @@ nir

[Mesa-dev] [PATCH v2 04/14] nir: properly clean up jumps when removing cf nodes

2015-05-21 Thread Connor Abbott
Before, we might have left dangling predecessors from jumps that were going to be removed. v2: split out from "nir: insert ssa_undef instructions when cleaning up defs/uses" Signed-off-by: Connor Abbott --- src/glsl/nir/nir.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-)

[Mesa-dev] [PATCH v2 08/14] nir: add an optimization for removing dead control flow

2015-05-21 Thread Connor Abbott
I'm not so sure about where to put the helper currently in nir.c... on the one hand, it's pretty specific to this pass, but on the other hand it needs to do some very fiddly low-level things to the control flow which is why it needs access to a static function in nir.c (stitch_blocks()) that I'd ra

[Mesa-dev] [PATCH v2 05/14] nir: fix up phi nodes when removing cf nodes

2015-05-21 Thread Connor Abbott
When we deleted jumps like 'break' and 'continue,' we weren't removing the phi sources that corresponded to them. Also, if we had a loop like loop { ... break; } and we deleted the break at the end because it was unreachable, we wouldn't add an undefined source to the phi nodes at the begin

[Mesa-dev] [PATCH v2 02/14] nir: insert ssa_undef instructions when cleaning up defs/uses

2015-05-21 Thread Connor Abbott
The point of cleanup_defs_uses() is to make an instruction safe to remove by removing any references that the rest of the shader may have to it. Previously, it was handling register use/def sets and removing the instruction from the use sets of any SSA sources it had, but if the instruction defined

[Mesa-dev] [PATCH v2 06/14] nir: add nir_cf_node_remove_after()

2015-05-21 Thread Connor Abbott
This will be used in deleting unreachable control flow. Signed-off-by: Connor Abbott --- src/glsl/nir/nir.c | 45 + src/glsl/nir/nir.h | 3 +++ 2 files changed, 48 insertions(+) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index bd4f6cc..0223

[Mesa-dev] [PATCH v2 01/14] nir/vars_to_ssa: don't rewrite removed instructions

2015-05-21 Thread Connor Abbott
We were rewriting the uses of the intrinsic instruction to point to something else after removing it, which only happened to work since we were lax about having dangling uses when removing instructions. Fix that up. Signed-off-by: Connor Abbott --- src/glsl/nir/nir_lower_vars_to_ssa.c | 3 ++- 1

[Mesa-dev] [PATCH v2 07/14] nir/validate: validate successors at the end of a loop

2015-05-21 Thread Connor Abbott
I found this useful while debugging some control flow bugs while working on the dead control flow pass. Signed-off-by: Connor Abbott --- src/glsl/nir/nir_validate.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.

[Mesa-dev] [PATCH v2 00/14] NIR dead control-flow removal

2015-05-21 Thread Connor Abbott
This is the second version of my dead control-flow series. In addition to fixing up a few things pointed out by Jason and cleaning up a few other odds and ends, I've fixed a number of bugs caught by disabling opt_if_simplification in GLSL IR as in the last patch. In particular, patch 5 deals with r

[Mesa-dev] [PATCH v2 03/14] nir: cleanup cf nodes earlier in nir_cf_node_remove()

2015-05-21 Thread Connor Abbott
Before, when we were deleting a cf node that was a block, we were first removing all the instructions and then calling cleanup_cf_node(), at which point cleanup_cf_node() couldn't do its job. Just move it before everything else, which should be ok for the non-block case too. v2: split out from pre

Re: [Mesa-dev] [PATCH 11/27] glapi: gl_gentable.py: Replace getopt with argparse

2015-05-21 Thread Dylan Baker
Fixed locally On Wed, May 20, 2015 at 06:28:58PM -0700, Matt Turner wrote: > On Wed, May 20, 2015 at 6:03 PM, Dylan Baker wrote: > > Signed-off-by: Dylan Baker > > --- > > src/mapi/glapi/gen/gl_gentable.py | 29 +++-- > > 1 file changed, 15 insertions(+), 14 deletions(-)

Re: [Mesa-dev] [PATCH 05/27] glapi: gl_procs.py: Fix a few long hanging style things

2015-05-21 Thread Dylan Baker
Err, yes. Fixed. On Wed, May 20, 2015 at 06:27:22PM -0700, Matt Turner wrote: > > glapi: gl_procs.py: Fix a few long hanging style things > > s/long/low/ presumably signature.asc Description: Digital signature ___ mesa-dev mailing list mesa-dev@lists.

[Mesa-dev] [PATCH] i965/skl: Add a message header for the TXF_MCS instruction in vec4vs

2015-05-21 Thread Neil Roberts
When using SIMD4x2 on Skylake, the sampler instructions need a message header to select the correct mode. This was added for most sample instructions in 0ac4c2727 but the TXF_MCS instruction is emitted separately and it was missed. This fixes a bunch of Piglit tests which test texelFetch in a geom

[Mesa-dev] [Bug 79706] [TRACKER] Mesa regression tracker

2015-05-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79706 --- Comment #2 from Emil Velikov --- Actually I was contemplating on bringing back the "per release" regression tracker idea which brought us here in the first place. It will give us a clearer picture of the regressions when planning/doing the r

Re: [Mesa-dev] [Mesa-stable] [PATCH] i915: Add XRGB8888 format to intel_screen_make_configs

2015-05-21 Thread Boyan Ding
On 05/16/2015 01:55 AM, Emil Velikov wrote: On 09/04/15 16:05, Emil Velikov wrote: Hi Boyan, On 9 April 2015 at 16:08, Boyan Ding wrote: For the same reason as the i965 one, as suggested by Chih-Wei Huang. Cc: "10.4 10.5" Signed-off-by: Boyan Ding --- Did you run this and the i965 patch t

Re: [Mesa-dev] [PATCH] u_math: uses assert, include assert.h

2015-05-21 Thread Brian Paul
On 05/20/2015 06:56 PM, Dave Airlie wrote: From: Dave Airlie this fixes a build problem found on RHEL s390. not sure what configure options caused it, I couldn't get it on x86 here. Cc: "10.6" mesa-sta...@lists.freedesktop.org Signed-off-by: Dave Airlie --- src/gallium/auxiliary/util/u_mat

[Mesa-dev] [Bug 25898] glEvalPoint causes glEnd to throw GL_INVALID_OPERATION

2015-05-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25898 --- Comment #6 from marius predut --- I confirm that this app don't generate any errors. With or without proposed defines the outputs are identical - see above comments. -- You are receiving this mail because: You are the QA Contact for the bug

[Mesa-dev] [Bug 25898] glEvalPoint causes glEnd to throw GL_INVALID_OPERATION

2015-05-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25898 --- Comment #5 from marius predut --- Created attachment 115947 --> https://bugs.freedesktop.org/attachment.cgi?id=115947&action=edit app outputs no matter if defines or not. -- You are receiving this mail because: You are the QA Contact for

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: set the binding value regardless explicit_binding

2015-05-21 Thread Timothy Arceri
On Thu, 2015-05-21 at 12:22 +0200, Alejandro Piñeiro wrote: > > On 20/05/15 23:39, Timothy Arceri wrote: > > On Thu, 2015-05-14 at 22:49 +0200, Alejandro Piñeiro wrote: > >> On 14/05/15 20:38, Ian Romanick wrote: > >>> > >>> I think I see what's happening. I don't think I understood > >>> atomic.

[Mesa-dev] New stable-branch 10.5 candidate pushed

2015-05-21 Thread Emil Velikov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list, The candidate for the Mesa 10.5.6 is now available. The current patch queue is as follows: - 30 queued - 8 nominated (outstanding) - and 1 rejected (obsolete) patches The queue covers nearly every aspect of mesa - core mesa fixes, driv

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: set the binding value regardless explicit_binding

2015-05-21 Thread Alejandro Piñeiro
On 20/05/15 23:39, Timothy Arceri wrote: > On Thu, 2015-05-14 at 22:49 +0200, Alejandro Piñeiro wrote: >> On 14/05/15 20:38, Ian Romanick wrote: >>> >>> I think I see what's happening. I don't think I understood >>> atomic.buffer_index well enough when I removed it. :( In binding=3 >>> case, wh