[Mesa-dev] [PATCH 2/2] [v3] i965/skl: PCI ID cleanup and brand strings

2015-10-23 Thread Ben Widawsky
s for GT4 parts. Signed-off-by: Ben Widawsky --- include/pci_ids/i965_pci_ids.h | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965_pci_ids.h index 626064a..2747dc5 100644 --- a/include/pc

[Mesa-dev] [PATCH] i965: Remove unused devinfo revision

2015-10-23 Thread Ben Widawsky
I left the function to obtain the revision because it is, and will continue to be useful in the future. I'd rather not have to dig it up every time we need it. Comments left at the implementation to say as much. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_device_info.c

Re: [Mesa-dev] [PATCH] i965: Remove unused devinfo revision

2015-10-23 Thread Ben Widawsky
On Fri, Oct 23, 2015 at 02:38:39PM -0700, Ben Widawsky wrote: > I left the function to obtain the revision because it is, and will continue to > be useful in the future. I'd rather not have to dig it up every time we need > it. > Comments left at the implementation to say a

Re: [Mesa-dev] [PATCH 2/2] i965: Set Y-tiling for qualified rotated scanout buffers

2015-10-23 Thread Ben Widawsky
On Fri, Oct 23, 2015 at 06:19:02PM -0700, Vivek Kasireddy wrote: > On Thu, 22 Oct 2015 21:12:02 -0700 > Ben Widawsky wrote: > > > On Thu, Oct 22, 2015 at 06:44:53PM -0700, Vivek Kasireddy wrote: > > > On newer hardware platforms that support rotation, if the gbm >

Re: [Mesa-dev] [PATCH 2/2] i965/vec4: Drop brw_set_default_* before popping insn state.

2015-10-25 Thread Ben Widawsky
(p, BRW_ALIGN_16); > } > brw_pop_insn_state(p); > } I'm assuming this is because the correct access mode is always set up before generating the assembly (probably wouldn't hurt to have added that to the commit message for naive people like myself)? If so: Reviewed-by

[Mesa-dev] [PATCH 1/2] [v3] i965/skl: Add GT4 PCI IDs

2015-10-29 Thread Ben Widawsky
the wm thread count to support GT4. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Ben Widawsky --- include/pci_ids/i965_pci_ids.h | 4 src/mesa/drivers/dri/i965/brw_device_info.c | 6 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/pci_ids

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/2] [v3] i965/skl: Add GT4 PCI IDs

2015-10-30 Thread Ben Widawsky
On Fri, Oct 30, 2015 at 01:38:47PM -0700, Ian Romanick wrote: > On 10/29/2015 05:30 PM, Ben Widawsky wrote: > > Like other gen8+ hardware, the hardware automatically scales up thread > > counts > > and URB sizes, so there is no need to do anything but add the PCI IDs. >

[Mesa-dev] [PATCH] i965: Fix texture views of 2d array surfaces

2015-11-02 Thread Ben Widawsky
nkins) References: https://www.opengl.org/registry/specs/ARB/texture_view.txt Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92609 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src

Re: [Mesa-dev] [PATCH] i965: Fix texture views of 2d array surfaces

2015-11-02 Thread Ben Widawsky
On Mon, Nov 02, 2015 at 12:05:32PM -0800, Ben Widawsky wrote: > It is legal to have a texture view of a single layer from a 2D array texture; > you can sample from it, or render to it. Intel hardware needs to be made aware > when it is using a 2d array surface in the surface state. Th

[Mesa-dev] [PATCH] [v2] i965: Fix texture views of 2d array surfaces

2015-11-02 Thread Ben Widawsky
lla: https://bugs.freedesktop.org/show_bug.cgi?id=92609 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surfa

Re: [Mesa-dev] [PATCH 03/10] i965/skl: Enable fast color clears on SKL

2015-11-03 Thread Ben Widawsky
iven that I usually opt for fewer patches. I've modified this locally to summarize the above. I haven't read your review comments for the patches after this yet. It's likely that you noticed this, and we can continue the discussion there. > On Tue 13 Oct 2015, Ben Widawsky wrote:

Re: [Mesa-dev] [PATCH 04/10] i965/skl: skip fast clears for certain surface formats

2015-11-03 Thread Ben Widawsky
On Fri, Oct 16, 2015 at 04:05:22PM -0700, Chad Versace wrote: > On Tue 13 Oct 2015, Ben Widawsky wrote: > > Initially I had this planned as a patch to be squashed in to the enabling > > patch > > because there is no point enabling fast clears without this. However, Chad >

Re: [Mesa-dev] [PATCH 05/10] i965/meta/gen9: Individually fast clear color attachments

2015-11-03 Thread Ben Widawsky
On Tue, Oct 13, 2015 at 09:14:29PM -0700, Matt Turner wrote: > On Tue, Oct 13, 2015 at 9:12 PM, Matt Turner wrote: > > On Tue, Oct 13, 2015 at 8:50 PM, Ben Widawsky > > wrote: > >> The impetus for this patch comes from a seemingly benign statement within > >>

Re: [Mesa-dev] [PATCH 1/2] i965: Don't include missing components in the fast clear color

2015-11-04 Thread Ben Widawsky
On Wed, Nov 04, 2015 at 06:11:09PM +0100, Neil Roberts wrote: > Neil Roberts writes: > > > Normally this doesn't matter because fast color clears are only > > available on Gen7+ and for that hardware we also always set the > > texture swizzle to force the missing components to zero or one. > > L

[Mesa-dev] [PATCH] i965/skl/gt4: Fix URB programming restriction.

2015-11-06 Thread Ben Widawsky
The comment in the code details the restriction. Thanks to Ken for having a very helpful conversation with me, and spotting the blurb in the link I sent him :P. There are still stability problems for me on GT4, but this definitely helps with some of the failures. Cc: Kenneth Graunke Cc: Jordan J

Re: [Mesa-dev] [PATCH] i965/skl/gt4: Fix URB programming restriction.

2015-11-07 Thread Ben Widawsky
On Fri, Nov 06, 2015 at 07:29:18PM -0800, Kenneth Graunke wrote: > On Friday, November 06, 2015 06:12:27 PM Ben Widawsky wrote: > > The comment in the code details the restriction. Thanks to Ken for having a > > very > > helpful conversation with me, and spotting the blurb i

Re: [Mesa-dev] [PATCH] i965/skl/gt4: Fix URB programming restriction.

2015-11-09 Thread Ben Widawsky
On Mon, Nov 09, 2015 at 11:50:25AM -0800, Kenneth Graunke wrote: > On Saturday, November 07, 2015 08:40:51 AM Ben Widawsky wrote: > > On Fri, Nov 06, 2015 at 07:29:18PM -0800, Kenneth Graunke wrote: > > > On Friday, November 06, 2015 06:12:27 PM Ben Widawsky wrote: > > >

Re: [Mesa-dev] [PATCH] i965: Implement ARB_pipeline_statistics_query tessellation counters.

2015-11-10 Thread Ben Widawsky
On Mon, Nov 09, 2015 at 11:59:43PM -0800, Kenneth Graunke wrote: > We basically just need to uncomment Ben's code. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/gen6_queryobj.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/drive

Re: [Mesa-dev] [PATCH 04/10] i965/skl: skip fast clears for certain surface formats

2015-11-10 Thread Ben Widawsky
There is one thing I need a response on at the very bottom, the rest will be addressed in v2. Thanks. On Mon, Nov 09, 2015 at 11:33:17AM -0800, Chad Versace wrote: > On Tue 03 Nov 2015, Ben Widawsky wrote: > > On Fri, Oct 16, 2015 at 04:05:22PM -0700, Chad Versace wrote: > > >

Re: [Mesa-dev] [PATCH 09/10] i965/meta: Remove fast_clear_color variable

2015-11-10 Thread Ben Widawsky
On Wed, Oct 14, 2015 at 08:16:54AM -0700, Ben Widawsky wrote: > On Wed, Oct 14, 2015 at 11:52:03AM +0200, Neil Roberts wrote: > > This patch doesn't look right. See this sentence in “Render Target Fast > > Clear”: > > > > “The pixel shader kernel requires no att

[Mesa-dev] [PATCH 0/7] [v2] Gen9 MCS buffers

2015-11-11 Thread Ben Widawsky
branch may be found here: http://cgit.freedesktop.org/~bwidawsk/mesa/log/?h=skl-fast-clear NOTE: These patches "regress" piglit.spec.arb_shader_image_load_store.execution.load-from-cleared-image because of this bug: https://bugs.freedesktop.org/show_bug.cgi?id=92849 Cc: Chad Versace Be

[Mesa-dev] [PATCH 3/7] [v2] i965/skl: skip fast clears for certain surface formats

2015-11-11 Thread Ben Widawsky
) Use the helper function and don't increase the context size - this is mostly implemented in the patch just before this (Chad, Neil) Remove an "invalid" assert (Chad) Fix assertion to check num_samples > 1, instead of num_samples (Chad) Cc: Chad Versace Cc: Neil Roberts Signed-

[Mesa-dev] [PATCH 5/7] Revert "i965/gen9: Disable MCS for 1x color surfaces"

2015-11-11 Thread Ben Widawsky
This reverts commit dcd59a9e322edeea74187bcad65a8e56c0bfaaa2. Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 1 file changed, 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c inde

[Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
nrelated to enabling this on GEN9, it becomes somewhat tricky to implement because of the fact that surface format support diminishes. You'd probably want another column to cleanly implement it. Requested-by: Chad Versace Requested-by: Neil Roberts Signed-off-by: Ben Widawsky ---

[Mesa-dev] [PATCH 1/7] [v2] i965/skl: Add fast color clear infrastructure

2015-11-11 Thread Ben Widawsky
ight = 4; + if (brw->gen >= 9) + *height = 2; + else + *height = 4; v2: Add braces for the multiline (Matt + Chad) Comment updates (requested by Chad) Modified commit message Commit message from Chad explaining the MCS height change (Chad) Cc: Chad Versace Sign

[Mesa-dev] [PATCH 6/7] Revert "i965/gen9: Enable rep clears on gen9"

2015-11-11 Thread Ben Widawsky
This reverts commit 8a0c85b25853decb4a110b6d36d79c4f095d437b. It's not a strict revert because I don't want to bring back the gen < 9 check at this point in time. Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 5 - 1 file changed, 5 deletions(-) diff --git

[Mesa-dev] [PATCH 7/7] [v2] i965/gen9: Support fast clears for 32b float

2015-11-11 Thread Ben Widawsky
SKL supports the ability to do fast clears and resolves of 32b RGBA as both integer and floats. This patch only enables float color clears because we haven't yet enabled integer color clears, (HW support for that was added in BDW). Two formats are explicitly disabled because they fail piglit tests

[Mesa-dev] [PATCH 4/7] [v2] i965/meta/gen9: Individually fast clear color attachments

2015-11-11 Thread Ben Widawsky
mt (Chad) Cc: Chad Versace Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 94 + 1 file changed, 81 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
This subject used to say Add lossless compression to surface format TO table somehow, "to" got dropped. It's fixed locally. On Wed, Nov 11, 2015 at 02:06:16PM -0800, Ben Widawsky wrote: > Background: Prior to Skylake and since Ivybridge Intel hardware has had the >

Re: [Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
On Wed, Nov 11, 2015 at 02:10:57PM -0800, Ben Widawsky wrote: > This subject used to say Add lossless compression to surface format TO table > > somehow, "to" got dropped. It's fixed locally. > Ignore this, subject looks fine to

Re: [Mesa-dev] [PATCH 7/7] [v2] i965/gen9: Support fast clears for 32b float

2015-11-12 Thread Ben Widawsky
On Thu, Nov 12, 2015 at 11:39:25AM +0100, Neil Roberts wrote: > Ben Widawsky writes: > > > Two formats are explicitly disabled because they fail piglit tests, > > LUMINANCE16F and INTENSITY16F. There is some question about the > > validity of sampling from these surfac

[Mesa-dev] [PATCH] i965/skl: Disable fast clear for formats without alpha

2015-11-12 Thread Ben Widawsky
--- Here is one proposal to fix the issue. I noticed that only formats without alpha were failing. This sucks for RGBX formats (which technically aren't fast clearable based on the surface format). The hunk for moving the format should happen regardless of this patch. Neil has another patch which

Re: [Mesa-dev] [PATCH 4/7] [v2] i965/meta/gen9: Individually fast clear color attachments

2015-11-13 Thread Ben Widawsky
patch if you want, or of course if you prefer to keep your patch as > it is it's up to you. Thanks a lot, I will squash it in - and sorry again about ignoring your feedback. > > Regards, > - Neil > > Ben Widawsky writes: [snip] ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2] i965: Handle lum, intensity and missing components in the fast clear

2015-11-13 Thread Ben Widawsky
T_CLEAR_STATE_CLEAR, the Seems like a good patch to me. It would probably be nice to track down a good spec reference if you manage to find one. I know I've seen such reference in SKL docs (which aren't SKL specific) - but I am having trouble finding it in PRMs. My VPN is broken, so I can't look at SKL docs right now. With the explanation of why the luminance alpha channel isn't 1 (I also claim incompotence on the GL_LUMINANCE_ALPHA format): Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] i965: Disable fast clears for MSRTs on SKL

2015-11-13 Thread Ben Widawsky
> + >if (irb->mt->fast_clear_state == INTEL_FAST_CLEAR_STATE_NO_MCS) > clear_type = REP_CLEAR; > (Perhaps "Disable fast clears..." is a misleading title because it doesn't really disable them. A note that thi

Re: [Mesa-dev] [PATCH] [v2] i965: implement ARB_pipeline_statistics_query

2015-02-04 Thread Ben Widawsky
On Mon, Feb 02, 2015 at 11:37:26PM -0500, Ilia Mirkin wrote: > On Mon, Dec 8, 2014 at 9:50 PM, Ben Widawsky wrote: > > Thanks. All the requests look good, and I'll post it in v3. > > What happened to this patch? It was pretty close... should be easy to > add gallium suppo

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Use inst->eot rather than opcodes in register allocation.

2015-02-05 Thread Ben Widawsky
s in the future. > > Signed-off-by: Kenneth Graunke Both are: Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/4] i965: Attempt to blit for larger textures

2015-02-05 Thread Ben Widawsky
On Wed, Jan 14, 2015 at 10:42:01AM -0800, Jason Ekstrand wrote: > On Tue, Jan 13, 2015 at 11:37 PM, Ben Widawsky > wrote: > > > The blit engine is limited to 32Kx32K transfer. In cases where we have to > > fall > > back to the blitter, and when trying to blit a slic

Re: [Mesa-dev] [PATCH 4/4] i965: Allow Y-tiled allocations for large surfaces

2015-02-05 Thread Ben Widawsky
On Wed, Jan 14, 2015 at 10:34:52AM -0800, Jason Ekstrand wrote: > On Tue, Jan 13, 2015 at 11:37 PM, Ben Widawsky > wrote: > > > This patch will use a new calculation to determine if a surface can be > > blitted > > from or to. Previously, the "total_height"

[Mesa-dev] [PATCH] i965/fs: Combine tex/fb_write operations (opt)

2015-02-08 Thread Ben Widawsky
Instead of iterating in reverse through blocks and insts, since the last block/inst is the only thing which can benefit. Rebased on top of Ken's patching modifying is_last_send Cc: Kenneth Graunke Cc: Jason Ekstrand Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH] i965/vs/skl: Use vec4 datatypes for message header

2015-02-10 Thread Ben Widawsky
ray.vert glslparsertest/glsl2/condition-07.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-field-clashes-with-variable.vert Cc: Neil Roberts Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [Mesa-dev] [PATCH] i965/vs/skl: Use vec4 datatypes for message header

2015-02-11 Thread Ben Widawsky
On Wed, Feb 11, 2015 at 05:08:33AM -0800, Kenneth Graunke wrote: > On Tuesday, February 10, 2015 05:22:45 PM Ben Widawsky wrote: > > Since we can be in this code with SIMD4x2, the execsize will be 4, and so > > the > > register width must be <= 4. If you use a vec8, t

[Mesa-dev] [PATCH 1/3] mesa: Add _mesa_has_compute_shaders

2015-02-13 Thread Ben Widawsky
From: Jordan Justen Signed-off-by: Jordan Justen Reviewed-by: Ben Widawsky --- src/mesa/main/context.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index d902ea7..69389ae 100644 --- a/src/mesa/main/context.h +++ b/src/mesa

[Mesa-dev] [PATCH 3/3] i965: implement ARB_pipeline_statistics_query

2015-02-13 Thread Ben Widawsky
since we missed 10.5 window - Moved compute shader stuff into the switch statement (Jordan) Cc: Ian Romanick Cc: Ilia Mirkin Signed-off-by: Ben Widawsky i965/cs: Add CS pipeline_stats support (squash) Signed-off-by: Jordan Justen --- docs/relnotes/10.6.0.html| 2 +-

[Mesa-dev] [PATCH 2/3] mesa: Add support for the ARB_pipeline_statistics_query extension

2015-02-13 Thread Ben Widawsky
Brian Paul) Add checks for desktop gl (Ilia) Fail for any callers for now (Ilia) Update QueryCounterBits for new tokens (Ilia) Jordan: Use _mesa_has_compute_shaders Cc: Jordan Justen Cc: Ilia Mirkin Signed-off-by: Ben Widawsky --- .../glapi/gen/ARB_pipeline_statistics_query.xml| 24 ++

Re: [Mesa-dev] [PATCH 2/2] i965: Let dump_instructions() work before calculate_cfg().

2015-02-14 Thread Ben Widawsky
t;, ip++); > - dump_instruction(inst, file); > + if (cfg) { > + int ip = 0; > + foreach_block_and_inst(block, backend_instruction, inst, cfg) { > + fprintf(file, "%4d: ", ip++); > + dump_instruction(inst

[Mesa-dev] [PATCH] i965/simd8vs: Fix SIMD8 atomics

2015-02-15 Thread Ben Widawsky
derived simple as all 1's. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87258 Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cp

Re: [Mesa-dev] [PATCH] i965/simd8vs: Fix SIMD8 atomics

2015-02-16 Thread Ben Widawsky
On Mon, Feb 16, 2015 at 09:24:34AM -0800, Jason Ekstrand wrote: > On Feb 16, 2015 7:46 AM, "Francisco Jerez" wrote: > > > > Jason Ekstrand writes: > > > > > On Feb 15, 2015 11:55 PM, "Ben Widawsky" > > > wrote: > > >> > &

Re: [Mesa-dev] [PATCH 1/3] mesa: Add _mesa_has_compute_shaders

2015-02-17 Thread Ben Widawsky
On Tue, Feb 17, 2015 at 11:37:44AM -0800, Ian Romanick wrote: > On 02/13/2015 11:02 PM, Ben Widawsky wrote: > > From: Jordan Justen > > > > Signed-off-by: Jordan Justen > > Reviewed-by: Ben Widawsky > > --- > > src/mesa/main/context.h | 11 +++

Re: [Mesa-dev] [PATCH 2/3] mesa: Add support for the ARB_pipeline_statistics_query extension

2015-02-17 Thread Ben Widawsky
On Tue, Feb 17, 2015 at 11:41:01AM -0800, Ian Romanick wrote: > On 02/13/2015 11:02 PM, Ben Widawsky wrote: > > This was originally part of a single patch which added the extension, and > > implemented it for i965 classic. For information about the evolution of the > >

[Mesa-dev] [PATCH] i965: implement ARB_pipeline_statistics_query

2015-02-17 Thread Ben Widawsky
since we missed 10.5 window - Moved compute shader stuff into the switch statement (Jordan) - Jordan: Add compute shader support v5: - Fixed relnote styles (Ilia) Cc: Ian Romanick Cc: Ilia Mirkin Signed-off-by: Ben Widawsky --- docs/relnotes/10.6.0.html| 4 +

[Mesa-dev] [PATCH] i965/vec4: Opportunistically coalesce SIMD8 instructions

2015-02-17 Thread Ben Widawsky
dn't hurt to throw this same optimization at the FS for cases where we have to fall back though. Cc: Kenneth Graunke Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- I have no had time to benchmark this very much, nor run piglit on it. I am just sending it out before it bitrots too m

Re: [Mesa-dev] [PATCH] i965/vec4: Opportunistically coalesce SIMD8 instructions

2015-02-17 Thread Ben Widawsky
On Tue, Feb 17, 2015 at 04:59:37PM -0800, Matt Turner wrote: > On Tue, Feb 17, 2015 at 4:44 PM, Ben Widawsky > wrote: > > With scalar VS, it so happens that many vertex shaders will line up in a > > such a > > way that two SIMD8 instructions can be collapsed into 1 SIMD

Re: [Mesa-dev] [PATCH] i965/simd8vs: Fix SIMD8 atomics (read-only)

2015-02-17 Thread Ben Widawsky
s. > > I think the previous change will fix cases that write atomics, such as > atomicCounterIncrement, and this change will fix cases than only read > atomics, such as atomicCounter. > > Signed-off-by: Jordan Justen > Cc: Ben Widawsky > Cc: Francisco J

Re: [Mesa-dev] [PATCH 2/3] mesa: Add support for the ARB_pipeline_statistics_query extension

2015-02-17 Thread Ben Widawsky
On Tue, Feb 17, 2015 at 06:14:14PM -0800, Ian Romanick wrote: > On 02/17/2015 04:21 PM, Ben Widawsky wrote: > > On Tue, Feb 17, 2015 at 11:41:01AM -0800, Ian Romanick wrote: > >> On 02/13/2015 11:02 PM, Ben Widawsky wrote: > >>> This was originally part of a single p

Re: [Mesa-dev] [PATCH] i965: Prefer Meta over the BLT for BlitFramebuffer.

2015-02-17 Thread Ben Widawsky
about the Cc 10.5 only because I couldn't find wins on BSW, and that makes me worry that we missed something - since I was really expecting to see something. I'll defer to you on that however. The idea makes sense to me. Acked-by: Ben Widawsky [snip] __

Re: [Mesa-dev] [PATCH 1/2] i965/skl: Upload qpitch in pixels for 1D textures

2015-02-17 Thread Ben Widawsky
On Tue, Feb 17, 2015 at 02:03:36PM +, Neil Roberts wrote: > According to the bspec since Skylake the qpitch value in the surface > formats should be measured in pixels rather than rows for 1D textures. > --- > src/mesa/drivers/dri/i965/gen8_surface_state.c | 30 > +++--- >

Re: [Mesa-dev] [PATCH 1/2] i965/skl: Upload qpitch in pixels for 1D textures

2015-02-18 Thread Ben Widawsky
On Wed, Feb 18, 2015 at 07:13:54PM +, Neil Roberts wrote: > Ben Widawsky writes: > > > I promise to look at this again in more detail tomorrow when I am more > > awake, but meanwhile, I'd be very much in favor of just setting > > mt->qpith for all miptree layo

Re: [Mesa-dev] [PATCH] i965/fs: Set pixel/sample mask for compute shaders atomic ops

2015-02-19 Thread Ben Widawsky
nnels may not end > up issuing the atomic operation. > > Signed-off-by: Jordan Justen > Cc: Ben Widawsky > Cc: Francisco Jerez Just add to the commit message that this is needed specifically because compute is invoked as SIMD16 (and perhaps reference the other commits?) and it'

[Mesa-dev] [PATCH] i965/skl: Use 1 register for uniform pull constant payload

2015-02-19 Thread Ben Widawsky
zilla: https://bugs.freedesktop.org/show_bug.cgi?id=89118 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88999 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp

Re: [Mesa-dev] [PATCH] i965/gen6: Fix GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB

2015-02-19 Thread Ben Widawsky
or us. This patch implements the latter approach. > > Fixes the following piglit test: > bin/arb_pipeline_statistics_query-geom -auto > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89210 > Tested-by: Mark Janes Reviewed-by: Ben Widawsky

Re: [Mesa-dev] [PATCH] i965/fs: Set pixel/sample mask for compute shaders atomic ops

2015-02-19 Thread Ben Widawsky
On Thu, Feb 19, 2015 at 11:25:56PM -0800, Jordan Justen wrote: > On 2015-02-19 21:40:37, Ben Widawsky wrote: > > On Thu, Feb 19, 2015 at 03:42:05PM -0800, Jordan Justen wrote: > > > For fragment programs, we pull this mask from the payload header. The same > > > mas

Re: [Mesa-dev] [PATCH] i965/skl: Use 1 register for uniform pull constant payload

2015-02-20 Thread Ben Widawsky
On Fri, Feb 20, 2015 at 03:34:21AM -0800, Kenneth Graunke wrote: > On Thursday, February 19, 2015 10:48:08 PM Ben Widawsky wrote: > > When under dispatch_width=16 the previous code would allocate 2 registers > > for > > the payload when only one is needed. This manifested i

Re: [Mesa-dev] [PATCH 1/3] glsl: Propagate negates through multiplication chains.

2015-02-22 Thread Ben Widawsky
x27;s > still really difficult to see what's going on. Have you already considered that this shortcircuits the next block which according to the comment improves the ability to fold constants, or do we end up through here again later? (I'm sure you're aware I know little about t

Re: [Mesa-dev] [PATCH 3/3] i965: Emit MUL with a negated src for neg(mul(...)).

2015-02-22 Thread Ben Widawsky
On Wed, Feb 11, 2015 at 02:54:51PM -0800, Matt Turner wrote: > total instructions in shared programs: 5932832 -> 5932736 (-0.00%) > instructions in affected programs: 8184 -> 8088 (-1.17%) > helped:52 > HURT: 14 > GAINED:

Re: [Mesa-dev] [PATCH] i965/fs: Combine tex/fb_write operations (opt)

2015-02-22 Thread Ben Widawsky
On Sun, Feb 08, 2015 at 02:48:02PM -0800, Matt Turner wrote: > On Sun, Feb 8, 2015 at 1:59 PM, Ben Widawsky > wrote: > > Certain platforms support the ability to sample from a texture, and write > > it out > > to the file RT - thus saving a costly send instructions (and

Re: [Mesa-dev] [PATCH 1/6] i965/skl: Layout 3D textures the same as array textures

2015-02-24 Thread Ben Widawsky
n >= 9) > + brw_miptree_layout_texture_array(brw, mt); > + else > + brw_miptree_layout_texture_3d(brw, mt); >break; > > case GL_TEXTURE_1D_ARRAY: Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/3] i965: Emit MUL with a negated src for neg(mul(...)).

2015-02-26 Thread Ben Widawsky
On Mon, Feb 23, 2015 at 09:38:42AM -0800, Matt Turner wrote: > On Sun, Feb 22, 2015 at 2:23 PM, Ben Widawsky wrote: > > On Wed, Feb 11, 2015 at 02:54:51PM -0800, Matt Turner wrote: > >> total instructions in shared programs: 5932832 -> 5932736 (-0.00%) > >> ins

[Mesa-dev] [PATCH 1/2] i965/skl: Enable fast clears for SKL

2015-02-26 Thread Ben Widawsky
From: Kristian Høgsberg v2 by Ben: Rebase with conflict resolution Add the SKL scaling factors Squashed in i965/skl: Dont zero surf[12]. The patch can't work properly without that, so there's no point in a separate patch. Signed-off-by: Kristian Høgsberg Reviewed-by: Ben Widawsky

[Mesa-dev] [PATCH 2/2] i965/skl: [SQUASH] Update the MCS buffer scale sizes

2015-02-26 Thread Ben Widawsky
ests at it: tests/fast_color_clear/all-colors.shader_test tests/fast_color_clear/non-redundant-clear.shader_test tests/fast_color_clear/redundant-clear.shader_test tests/fast_color_clear/fast-slow-clear-interaction.shader_test Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- src/gallium/d

Re: [Mesa-dev] [PATCH 2/2] i965/skl: [SQUASH] Update the MCS buffer scale sizes

2015-02-26 Thread Ben Widawsky
On Thu, Feb 26, 2015 at 03:42:53PM -0800, Ben Widawsky wrote: > Keep this as a separate patch for review, but I will squash it with the > previous > patch before pushing. > > We don't support 16x MSAA yet, but I entered it in here while I was at the > table. > &g

[Mesa-dev] [PATCH] i965/skl: Disable partial resolve in VC

2015-02-26 Thread Ben Widawsky
Recomendation [sic] is to set this field to 1 always. Programming it to default value of 0, may have -ve impact on performance for MSAA WLs. Another don't suck bit which needs to get set. Totally untested. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_misc_state.c

[Mesa-dev] [PATCH] [v2] i965/skl: Disable partial resolve in VC

2015-02-26 Thread Ben Widawsky
ce at initialization and make sure the pma workaround doesn't set the mask bit (which it doesn't). Move LRI to init gpu state (Ken) Add a comment. ... still untested. Cc: Kenneth Graunke Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_state_upload.c | 10 ++ src/m

[Mesa-dev] [PATCH 1/4] i965: Rename some PIPE_CONTROL flags

2015-02-27 Thread Ben Widawsky
while I was trying to implement workarounds and spotted some things called, "flush" which should have been called "invalidate." Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_program.c | 10 +- src/mesa/drivers/dri/i965/gen6_vs_state.c | 2

[Mesa-dev] [PATCH 3/4] i965: Prevent infinite finish_batch recursion

2015-02-27 Thread Ben Widawsky
may exist in the i915 driver as well. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index db2f345..

[Mesa-dev] [PATCH 2/4] i965/hsw: Properly handle RO state invalidation

2015-02-27 Thread Ben Widawsky
nce back to back CS stalls probably have little measurable impact anyway - but it would be less commands. v2: Rebased on master Updated commit message Filled picked a different PIPE_CONTROL flag Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 12 +++

[Mesa-dev] [PATCH 4/4] i965/hsw: Implement end of batch workaround

2015-02-27 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index b0ebec7..e405918 100644 --- a/src/mesa/drivers

Re: [Mesa-dev] [PATCH 3/4] i965: Prevent infinite finish_batch recursion

2015-02-27 Thread Ben Widawsky
On Fri, Feb 27, 2015 at 10:22:10AM -0800, Ben Widawsky wrote: > From the comments in the code: > >Called from intel_batchbuffer_flush before emitting MI_BATCHBUFFER_END and >sending it off. > > This fixes a possible, unlikely infinite recursion in our batch f

[Mesa-dev] [PATCH 4/4] [v2] i965/hsw: Implement end of batch workaround

2015-02-27 Thread Ben Widawsky
v2: Sent out the wrong patch original. This patches switches the order of flushes, doing the generic flush before the CC_STATE, and the required workaround flush afterwards Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 17 + 1 file changed, 17

Re: [Mesa-dev] [PATCH 3/4] i965: Prevent infinite finish_batch recursion

2015-02-27 Thread Ben Widawsky
On Fri, Feb 27, 2015 at 10:22:10AM -0800, Ben Widawsky wrote: > From the comments in the code: > >Called from intel_batchbuffer_flush before emitting MI_BATCHBUFFER_END and >sending it off. > > This fixes a possible, unlikely infinite recursion in our batch f

Re: [Mesa-dev] [PATCH] i965/skl: Ignore the vertical alignment for the qpitch of 1D textures

2015-02-27 Thread Ben Widawsky
uot;This field must be set to an integer multiple of the Surface Horizontal Alignment." Note, I don't know anything about compressed textures and what the block widths can be, but just doing the math, if block size > 16 and not a multiple of 16, this constraint will not hold. maybe: assert

Re: [Mesa-dev] [PATCH 3/4] i965: Prevent infinite finish_batch recursion

2015-02-28 Thread Ben Widawsky
On Sat, Feb 28, 2015 at 12:31:59AM -0800, Kenneth Graunke wrote: > On Friday, February 27, 2015 10:22:10 AM Ben Widawsky wrote: > > From the comments in the code: > > > >Called from intel_batchbuffer_flush before emitting MI_BATCHBUFFER_END > > and > >se

Re: [Mesa-dev] [PATCH 4/4] i965/hsw: Implement end of batch workaround

2015-02-28 Thread Ben Widawsky
On Sat, Feb 28, 2015 at 12:27:05AM -0800, Kenneth Graunke wrote: > On Friday, February 27, 2015 10:22:11 AM Ben Widawsky wrote: > > Signed-off-by: Ben Widawsky > > --- > > src/mesa/drivers/dri/i965/intel_batchbuffer.c | 16 > > 1 file changed, 16

[Mesa-dev] [PATCH] i965/hsw: Implement end of batch workaround

2015-03-04 Thread Ben Widawsky
nd the required workaround flush afterwards v3: Only perform workaround for render ring Add text to the BATCH_RESERVE comments Cc: Kenneth Graunke Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 17 + src/mesa/drivers/dri/i965/intel_batchbuffer

Re: [Mesa-dev] [PATCH] i965: Reserve more batch space to accomodate Gen6 perfmonitors.

2015-03-05 Thread Ben Widawsky
> break if you used that functionality. (Thankfully, no one does...) > > Signed-off-by: Kenneth Graunke I have my IRC reviewed-by in case you forgot: Reviewed-by: Ben Widawsky Maybe a comment about how the existing 146 seems wrong? > --- > src/mesa/drivers/dri/i965/intel_batchb

[Mesa-dev] [PATCH] meta: Plug memory leak in blit shader creation

2015-03-06 Thread Ben Widawsky
GL_ARB_texture_float -auto -fbo Cc: Ian Romanick Cc: Brian Paul Cc: Eric Anholt Reported-by: Mark Janes (Jenkins) Signed-off-by: Ben Widawsky --- src/mesa/drivers/common/meta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index

[Mesa-dev] [PATCH] [v2] meta: Plug memory leak

2015-03-09 Thread Ben Widawsky
allocation after the early return block (v2) Cc: Ian Romanick Cc: Brian Paul Cc: Eric Anholt Cc: Kenneth Graunke Signed-off-by: Ben Widawsky --- Thanks Ken. I wasn't sure if this path was common or not, and I had opted for the standard, define variables at the top, style. If it occurs more

Re: [Mesa-dev] [PATCH 5/6] i965/skl: Align compressed textures to four times the block size

2015-03-09 Thread Ben Widawsky
>total_width, mt->total_height, mt->cpp); > + > + /* On Gen9+ the alignment values are expressed in multiples of the block > +* size > +*/ > + if (brw->gen >= 9) { > + unsigned int i, j; > + _mesa_get_format_block_size(mt->format, &i, &a

Re: [Mesa-dev] [PATCH 6/6] i965/skl: Don't use ALL_SLICES_AT_EACH_LOD

2015-03-09 Thread Ben Widawsky
{ > + switch (mt->msaa_layout) { > + case INTEL_MSAA_LAYOUT_NONE: > + case INTEL_MSAA_LAYOUT_IMS: > + mt->array_layout = ALL_LOD_IN_EACH_SLICE; > + break; > + case INTEL_MSAA_LAYOUT_UMS: > + case INTEL

Re: [Mesa-dev] [PATCH] i965: Issue perf_debug messages for unsynchronized maps on !LLC systems.

2015-03-09 Thread Ben Widawsky
e busy. > > Signed-off-by: Kenneth Graunke Sorry I let this slip. I actually thought it was merged, and screwed up the patchwork state. This is both: Tested-by: Ben Widawsky && Reviewed-by: Ben Widawsky My only nit is that I do already have the fix for this. Not sure if we want to

[Mesa-dev] [PATCH 0/6] blitter improvement patches

2015-03-09 Thread Ben Widawsky
ng intermittent GL_OUT_OF_MEMORY errors which I was too lazy to track down since I assumed it wasn't my fault. Well, I finally tracked it down and fixed it: commit 7aba4ab1f355ea1a5870b3deb4b295565132dfc5 Author: Ben Widawsky Date: Fri Mar 6 17:31:00 2015 -0800 meta: Plug memory leak Ben Widaws

[Mesa-dev] [PATCH 3/6] i965: Create and use #defines for blitter constraints

2015-03-09 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_blit.c| 11 ++- src/mesa/drivers/dri/i965/intel_blit.h| 3 +++ src/mesa/drivers/dri/i965/intel_copy_image.c | 7 --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 9 + 4 files changed, 18

[Mesa-dev] [PATCH 4/6] i965: Extract blit height max

2015-03-09 Thread Ben Widawsky
esn't change all places which check blitter requirements. I will be adding those as a separate patch(es) since the original series, which was well tested, did not include those. This was requested by Jordan and Jason. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_b

[Mesa-dev] [PATCH 6/6] i965: Allow Y-tiled allocations for large surfaces

2015-03-09 Thread Ben Widawsky
work.freedesktop.org/patch/38909/ Cc: Jordan Justen Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 55 +++ src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 21 ++ 2 files changed, 52 insertions(+), 24 deletions(-) diff --git a/src/m

[Mesa-dev] [PATCH 2/6] i965: Fix comments about blit constraints

2015-03-09 Thread Ben Widawsky
: > Destination Y2 Coordinate (Bottom) > 16 bit signed number. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_blit.c | 8 ++-- src/mesa/drivers/dri/i965/intel_copy_image.c | 8 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dr

[Mesa-dev] [PATCH 5/6] i965: Attempt to blit for larger textures

2015-03-09 Thread Ben Widawsky
parameter from the y adjusting function (~Jason) Add assert that adjusted y offset is within bounds Renamed and moved the helper functions "public" in intel_blit.h v3.1: Fixed assertion fail from v3 (Jordan) Remove conditional y adjusted calculation, replace with comment (Jordan + Jason)

[Mesa-dev] [PATCH 1/6] i965: Kill y_or_x variable in miptree tiling selection

2015-03-09 Thread Ben Widawsky
i965: Fix condition to use Y tiling in blitter in intel_miptree_create() Cc: Kenneth Graunke Cc: Chad Versace Cc: Anuj Phogat Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/dr

Re: [Mesa-dev] [PATCH 17/34] i965: Support images with offset aux buffers

2017-01-28 Thread Ben Widawsky
On 17-01-25 21:05:15, Topi Pohjolainen Topi Pohjolainen wrote: On Wed, Jan 25, 2017 at 09:01:56PM +0200, Pohjolainen, Topi wrote: On Mon, Jan 23, 2017 at 10:21:40PM -0800, Ben Widawsky wrote: > Previously our aux buffers (MCS, and HiZ) never had an offset because > they were in their own

Re: [Mesa-dev] [PATCH v2 2/2] anv: Implement the Sky Lake stencil PMA optimization

2017-02-02 Thread Ben Widawsky
On 17-02-02 13:27:05, Jason Ekstrand wrote: This improves the performance of Dota 2 on my Sky Lake Skull Canyon machine by about 2-3%. Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_private.h | 1 + src/intel/vulkan/gen8_cmd_buffer.c | 157 - src

Re: [Mesa-dev] [PATCH 06/34] gbm: Export a per plane getter for stride

2017-02-03 Thread Ben Widawsky
On 17-01-31 11:33:39, Jason Ekstrand wrote: On Mon, Jan 23, 2017 at 10:19 PM, Ben Widawsky wrote: v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) EINVAL when input plane is greater than total planes (Jason Ekstrand) Don't leak the image after fromPlanar (Daniel) Move bo-&

<    1   2   3   4   5   6   7   8   9   10   >