Re: [Mesa-dev] [PATCH 01/23] i965: Let caller of intel_miptree_create_layout() decide msaa layout

2016-02-10 Thread Ben Widawsky
On Wed, Feb 10, 2016 at 10:27:46AM +0200, Pohjolainen, Topi wrote: > On Tue, Feb 09, 2016 at 12:05:52PM -0800, Ben Widawsky wrote: > > On Mon, Feb 08, 2016 at 06:51:21PM +0200, Topi Pohjolainen wrote: > > > Signed-off-by: Topi Pohjolainen > > > --- >

Re: [Mesa-dev] i965/gen9: Compression support for single-sampled

2016-02-10 Thread Ben Widawsky
On Wed, Feb 10, 2016 at 02:13:27PM +0200, Pohjolainen, Topi wrote: > On Tue, Feb 09, 2016 at 05:34:53PM -0800, Ben Widawsky wrote: > > On Mon, Feb 08, 2016 at 06:51:20PM +0200, Topi Pohjolainen wrote: > > > This series enables compression for single sampled color surfaces, >

Re: [Mesa-dev] [PATCH] i965: ir: dump floats as %-g rather than %f, so we can see denormals

2016-02-10 Thread Ben Widawsky
On Thu, Feb 11, 2016 at 07:03:56PM +1300, Chris Forbes wrote: > Signed-off-by: Chris Forbes After offline discussion with Chris: Reviewed-by: Ben Widawsky Though in fairness, I don't use this as much as others, so it might be nice to have someone chime in who is absolutely depe

[Mesa-dev] [PATCH] i965: Rename optimizer debug 00 filename

2016-02-11 Thread Ben Widawsky
This allows ls, and scripts to get the file names in the correct order of optimization. Cc: Chris Forbes Cc: Matt Turner Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_vec4.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions

Re: [Mesa-dev] [v2 01/19] i965: Isolate aligned dimensions for stencil only

2016-02-11 Thread Ben Widawsky
On Thu, Feb 11, 2016 at 08:33:54PM +0200, Topi Pohjolainen wrote: > This makes the logic a little more explicit and helps to keep > subsequent patches easier to read. > > Suggested-by: Ben Widawsky > Signed-off-by: Topi Pohjolainen Reviewed-by: Ben W

Re: [Mesa-dev] [v2 02/19] i965: Separate miptree creation from auxiliary buffer setup

2016-02-11 Thread Ben Widawsky
BO_ALLOC_FOR_RENDER : 0; >perf_debug("%dx%d miptree larger than aperture; falling back to > X-tiled\n", > mt->total_width, mt->total_height); I still dislike this code, but it's a big improvement. I primarily

Re: [Mesa-dev] [v2 03/19] i965: Don't try to create aux buffer for non-msrt aux-buffer

2016-02-11 Thread Ben Widawsky
On Thu, Feb 11, 2016 at 08:33:56PM +0200, Topi Pohjolainen wrote: > In addition to simply calling miptree_create() the higher level > call intel_miptree_create() also considers if the buffer should > be associated with an auxiliary buffer based on the given format. > > Here we are allocating an au

Re: [Mesa-dev] [v2 04/19] i965: Stop considering if msrt aux buffers need aux buffer

2016-02-11 Thread Ben Widawsky
is more direct path available lets start using it > instead and stop even checking for such (im)possibility. > > v2 (Ben): Do not signal msaa layout with explicit argument but > using layout_flags instead. > > Signed-off-by: Topi Pohjolainen > Reviewed-by: Ben Widawsky

Re: [Mesa-dev] [v2 05/19] i965: Add helper for detecting lossless compression

2016-02-11 Thread Ben Widawsky
On Thu, Feb 11, 2016 at 08:33:58PM +0200, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 26 ++ > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 > 2 files changed, 30 insertions(+) > > diff --git

Re: [Mesa-dev] [v2 08/19] i965: Refactor resolving of auxiliary mode

2016-02-11 Thread Ben Widawsky
ry Surface Mode is set to AUX_CCS_D or AUX_CCS_E, > HALIGN > - * 16 must be used." > - */ > - if (brw->gen >= 9 || mt->num_samples == 1) > - assert(mt->halign == 16); > - } > + struct intel_mipmap_tree *aux_mt = mt->mcs_mt; pretty sure you could const this too if you wanted. It shouldn't be changing after this point. > + const uint32_t aux_mode = gen8_get_aux_mode(brw, mt, surf_type); > > uint32_t *surf = allocate_surface_state(brw, &offset, surf_index); > I'd like to see surf_type removed unless you have plans for it. Otherwise: Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [v2] Compression support for single-sampled

2016-02-11 Thread Ben Widawsky
> fixing state restore mechanism in i965-meta operations. > > v2 (Ben): Use combination of msaa_layout and number of samples >instead of introducing explicit type for lossless >compression. > Other than the comments I left, patch 6, 7, 9, 10 are: Revie

Re: [Mesa-dev] [v2 03/19] i965: Don't try to create aux buffer for non-msrt aux-buffer

2016-02-12 Thread Ben Widawsky
On Fri, Feb 12, 2016 at 09:24:42AM +0200, Pohjolainen, Topi wrote: > On Thu, Feb 11, 2016 at 01:41:47PM -0800, Ben Widawsky wrote: > > On Thu, Feb 11, 2016 at 08:33:56PM +0200, Topi Pohjolainen wrote: > > > In addition to simply calling miptree_create() the highe

Re: [Mesa-dev] [PATCH] i965: Allow 8x MSAA on >= 64bpp formats on Gen8+.

2016-04-04 Thread Ben Widawsky
no longer applies on Gen8+. > > Signed-off-by: Kenneth Graunke Reviewed-by: Ben Widawsky [snip] -- Ben Widawsky, Intel Open Source Technology Center ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 2/3] i965: Fix eu/subslice warning

2016-04-07 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 8c687b3..1efcca2 100644 --- a/src

[Mesa-dev] [PATCH 3/3] i965: Check eu/subslices are > 0

2016-04-07 Thread Ben Widawsky
Now that the check is restricted to gen8+, we should always get back a non-zero positive value for the EU and subslice counts. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 1/3] i965: Extract SSEU configuration info

2016-04-07 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 35 +++- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index c6eb50a..8c687b3 100644 --- a

Re: [Mesa-dev] [PATCH 3/3] i965/disasm: Decode per-slot offsets.

2016-04-09 Thread Ben Widawsky
On Fri, Apr 08, 2016 at 01:57:44PM -0700, Kenneth Graunke wrote: > We just never bothered to decode this. > > Signed-off-by: Kenneth Graunke Series is: Reviewed-by: Ben Widawsky > --- > src/mesa/drivers/dri/i965/brw_disasm.c | 5 + > 1 file changed, 5 insertions(+) >

[Mesa-dev] [PATCH] i965: Make intel_get_param return an int

2016-04-11 Thread Ben Widawsky
the kernel returns ENODEV when it shouldn't be. I will investigate this separately. Reported-by: Chris Forbes Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_

Re: [Mesa-dev] [PATCH] i965: Make intel_get_param return an int

2016-04-12 Thread Ben Widawsky
On Tue, Apr 12, 2016 at 10:10:35AM +0200, Alejandro Piñeiro wrote: > > > On 11/04/16 18:49, Ben Widawsky wrote: > > This will fix the spurious error message: "Failed to query GPU properties." > > that was unintentionally added in cc01b63d730. > > > > T

Re: [Mesa-dev] [PATCH] i965: Fix clear code for ignoring colormask for XRGB formats on Gen9+.

2016-04-20 Thread Ben Widawsky
rmance on Skylake GT3e by about 50% > by letting it use repclears instead of slow clears. > > Cc: Ben Widawsky > Cc: Topi Pohjolainen > Cc: mesa-sta...@lists.freedesktop.org > Signed-off-by: Kenneth Graunke Reviewed-by: Ben Widawsky _

[Mesa-dev] [PATCH] i965: Always use Y-tiled buffers on SKL+

2016-04-20 Thread Ben Widawsky
From: Ben Widawsky Starting with Skylake, the display engine is capable of scanning out from Y-tiled buffers. As such, we can and should use Y-tiling for better efficiency. This also has the added benefit of being able to fast clear the winsys buffer. Note that the buffer allocation done for

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

2015-05-01 Thread Ben Widawsky
On Fri, May 01, 2015 at 04:54:36PM +0100, Neil Roberts wrote: > Sorry for the really long delay in replying! This patch is still needed > in order to fix a number of Piglit tests so it would be good to get it > landed. > > Ben Widawsky writes: > > > Sorry for the d

Re: [Mesa-dev] [PATCH 4/7] i965: Add gen8 surface state debug info

2015-05-14 Thread Ben Widawsky
On Fri, Apr 24, 2015 at 08:47:41PM +0300, Pohjolainen, Topi wrote: > On Thu, Apr 23, 2015 at 04:50:00PM -0700, Ben Widawsky wrote: > > AFAICT, none of the old data was wrong (the gen7 decoder), but it wa > > smissing a > > bunch of stuff. > > > > Adds a tick (

Re: [Mesa-dev] [PATCH 4/7] i965: Add gen8 surface state debug info

2015-05-15 Thread Ben Widawsky
On Thu, Apr 23, 2015 at 09:35:23PM -0700, Matt Turner wrote: > On Thu, Apr 23, 2015 at 4:50 PM, Ben Widawsky > wrote: > > AFAICT, none of the old data was wrong (the gen7 decoder), but it wa > > smissing a > > bunch of stuff. > > > > Adds a tick (') to

Re: [Mesa-dev] [PATCH 4/7] i965: Add gen8 surface state debug info

2015-05-15 Thread Ben Widawsky
On Fri, May 15, 2015 at 07:49:44PM -0700, Ben Widawsky wrote: > On Thu, Apr 23, 2015 at 09:35:23PM -0700, Matt Turner wrote: > > On Thu, Apr 23, 2015 at 4:50 PM, Ben Widawsky > > wrote: > > > AFAICT, none of the old data was wrong (the gen7 decoder), but it wa > &g

Re: [Mesa-dev] [PATCH 5/7] i965: Add Gen9 surface state decoding

2015-05-15 Thread Ben Widawsky
On Fri, Apr 24, 2015 at 09:05:44PM +0300, Pohjolainen, Topi wrote: > On Thu, Apr 23, 2015 at 04:50:02PM -0700, Ben Widawsky wrote: > > Gen9 surface state is very similar to the previous generation. The important > > changes here are aux mode, and the way clear colors work. > >

Re: [Mesa-dev] [PATCH 5/7] i965: Add Gen9 surface state decoding

2015-05-15 Thread Ben Widawsky
On Fri, May 15, 2015 at 08:22:29PM -0700, Ben Widawsky wrote: > On Fri, Apr 24, 2015 at 09:05:44PM +0300, Pohjolainen, Topi wrote: > > On Thu, Apr 23, 2015 at 04:50:02PM -0700, Ben Widawsky wrote: > > > Gen9 surface state is very similar to the previous generation. Th

[Mesa-dev] [PATCH 1/8] i965: Add string for surface format to table

2015-05-15 Thread Ben Widawsky
Recommended-by: Kenneth Graunke Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_surface_formats.c | 436 1 file changed, 219 insertions(+), 217 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 8/8] [v2] i965: Add gen8 blend state

2015-05-15 Thread Ben Widawsky
factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha) function ADD,ADD (color, alpha), Disables: v2: Line length fixes, and const usage (Topi) Safer initialization of name string (Topi) Signed-off-by: Ben Widawsky Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri

[Mesa-dev] [PATCH 6/8] [v2] i965: Add Gen9 surface state decoding

2015-05-15 Thread Ben Widawsky
: Ben Widawsky Cc: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_defines.h| 2 ++ src/mesa/drivers/dri/i965/brw_state_dump.c | 44 -- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers

[Mesa-dev] [PATCH 7/8] [v3] i965: Add renderbuffer surface indexes to debug

2015-05-15 Thread Ben Widawsky
round some of the gen8 surface setup code. v3: Use ralloc_asprintf instead of asprintf to be more friendly to non-GNU platforms. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_context.h| 1 + src/mesa/drivers/dri/i965/brw_state.h | 13 - src/mesa/dr

[Mesa-dev] [PATCH 2/8] [v3] i965: Add all surface types to the batch decode

2015-05-15 Thread Ben Widawsky
is makes some of the sample output in subsequent commits slightly incorrect. v3: Use the name from the table (Ken). This requires declaring the surface format array as extern, and declaring the struct in the .h file. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_context.h

[Mesa-dev] [PATCH 3/8] [v2] i965: Add viewport extents (gen8) to batch decode

2015-05-15 Thread Ben Widawsky
ff-by: Ben Widawsky Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_state_dump.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index aa63c15..ca5a622 100644

[Mesa-dev] [PATCH 5/8] [v2] i965: Add gen8 surface state debug info

2015-05-15 Thread Ben Widawsky
07980:BIND0: surface state address 0x7924: 0x7940:BIND1: surface state address v2: Style cleanups (Matt) Fix aux mode dword 7->6 (Topi) Use exp2 instead of pow (Matt) Add dwords 8-12 to the dump Signed-off-by: Ben Widawsky Cc: Matt Turner Reviewed-by: Topi Pohjolainen --- sr

[Mesa-dev] [PATCH 4/8] [v2] i965: Add gen7+ sampler state to batch debug

2015-05-15 Thread Ben Widawsky
|CLAMP|WRAP v2: Move GET_BITS macro to here (with paren protection) Ben/Topi Add const to the sampler pointer (Topi) Signed-off-by: Ben Widawsky Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_defines.h| 1 + src/mesa/drivers/dri/i965/brw_state_dump.c | 71

Re: [Mesa-dev] [PATCH 6/8] [v2] i965: Add Gen9 surface state decoding

2015-05-18 Thread Ben Widawsky
On Mon, May 18, 2015 at 11:02:32AM +0300, Pohjolainen, Topi wrote: > On Fri, May 15, 2015 at 10:06:22PM -0700, Ben Widawsky wrote: > > Gen9 surface state is very similar to the previous generation. The important > > changes here are aux mode, and the way clear colors work. > >

Re: [Mesa-dev] [PATCH 7/8] [v3] i965: Add renderbuffer surface indexes to debug

2015-05-18 Thread Ben Widawsky
On Mon, May 18, 2015 at 11:26:47AM +0300, Pohjolainen, Topi wrote: > On Fri, May 15, 2015 at 10:06:23PM -0700, Ben Widawsky wrote: > > This patch is optional in the series. It does make the output much cleaner, > > but > > there is some risk. > > What is the risk, I co

[Mesa-dev] [PATCH 2/8] [v4] i965: Add all surface types to the batch decode

2015-05-18 Thread Ben Widawsky
d of the now useless helper in the state_dump.c Cc: Kenneth Graunke Signed-off-by: Ben Widawsky Reviewed-by: Topi Pohjolainen (v3) --- src/mesa/drivers/dri/i965/brw_state.h | 1 + src/mesa/drivers/dri/i965/brw_state_dump.c | 18 +++--- src/mesa/drivers/

[Mesa-dev] [PATCH] i965: Use padding requirement cube map array type

2015-05-18 Thread Ben Widawsky
rray applies as a cube surface. It's not well understood why this is needed, but it seems like it is. No changes in piglit (the g45 results are invalid). http://otc-gfxtest-01.jf.intel.com/view/dev/job/bwidawsk/118/ Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_tex_layo

[Mesa-dev] [PATCH] i965: Emit 3DSTATE_MULTISAMPLE before WM_HZ_OP (gen8+)

2015-05-20 Thread Ben Widawsky
somewhat surprised that it seems to have no impact on BDW as the restriction is needed there as well. Cc: mesa-sta...@lists.freedesktop.org Cc: Anuj Phogat Cc: Kenneth Graunke Signed-off-by: Ben Widawsky Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/gen8_depth_state.c | 12

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

2015-05-21 Thread Ben Widawsky
TEXT_BYTE_PACKED (1 << 16) > > @@ -95,11 +97,42 @@ > #define XY_BLT_WRITE_RGB (1 << 20) > #define XY_SRC_TILED (1 << 15) > #define XY_DST_TILED (1 << 11) > +#define XY_SRC_TILED_X (1 << 20) > +#define

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
mination of the TILING would be better off in choose (and making the verb choose correct in the process). if ((brw->gen >= 9 && !for_bo && false /* disable Yf/Ys */) { if (intel_miptree_choose_tr_mode(brw, format...)) return; } > + > + if (!mt) > + r

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

2015-05-21 Thread Ben Widawsky
the right thing to do. But, It helps > move things forward at the moment. I don't understand them either, but I think your code is fine. Maybe add an assert that max level is < 15? So with some explanation in the commit message that this disables mip tails, this is: Reviewed-by: Ben Wida

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

2015-05-27 Thread Ben Widawsky
On Thu, May 21, 2015 at 05:46:48PM -0700, Anuj Phogat wrote: > On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: SNIP > > As I mentioned above wrt the CL alignment, I think it's safe to do for both > > modes. Something like: > > > > /* Check both are at l

Re: [Mesa-dev] [PATCH V2 07/22] i965/gen9: Set horizontal alignment for the miptree

2015-05-27 Thread Ben Widawsky
== MESA_FORMAT_S_UINT8) >return 8; > > + if (brw->gen >= 9 && mt->tr_mode != INTEL_MIPTREE_TRMODE_NONE) { > + uint32_t align = tr_mode_horizontal_texture_alignment(brw, mt); > + /* XY_FAST_COPY_BLT doesn't support horizontal alignment < 32. */ > + return align < 32 ? 32 : align; > + } > + > if (brw->gen >= 7 && mt->format == MESA_FORMAT_Z_UNORM16) >return 8; > Seems a bit weird to me to split up HALIGN/VALIGN into separate patches, but it's up to you. 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 V2 08/22] i965/gen9: Use HALIGN_16 if MCS is enabled

2015-05-27 Thread Ben Widawsky
On Fri, Apr 17, 2015 at 04:51:29PM -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_tex_layout.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c > b/src/mesa/drivers/dri/i965/brw_te

Re: [Mesa-dev] [PATCH V2 07/22] i965/gen9: Set horizontal alignment for the miptree

2015-05-27 Thread Ben Widawsky
On Wed, May 27, 2015 at 11:56:24AM -0700, Ben Widawsky wrote: > On Fri, Apr 17, 2015 at 04:51:28PM -0700, Anuj Phogat wrote: > > Signed-off-by: Anuj Phogat > > --- > > src/mesa/drivers/dri/i965/brw_tex_layout.c | 80 > > ++ > &g

Re: [Mesa-dev] [PATCH V2 09/22] i965/gen9: Set vertical alignment for the miptree

2015-05-27 Thread Ben Widawsky
t; + if (brw->gen >= 9 && (mt->target == GL_TEXTURE_1D || > + mt->target == GL_TEXTURE_1D_ARRAY)) > + return 1; I think this hunk can go away with Neil's patches since then. > + > + if (mt->tr_mode != INTEL_MIPTREE_TRMODE_NONE) { > + uint32_t align =

[Mesa-dev] [PATCH] i965: Disable compaction for EOT send messages

2015-05-27 Thread Ben Widawsky
to it and I will review it). Cc: Matt Turner Cc: Neil Roberts Cc: Mark Janes Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_eu_compact.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compac

Re: [Mesa-dev] [PATCH] i965: Disable compaction for EOT send messages

2015-05-27 Thread Ben Widawsky
I forgot to mention that the predecessor to this patch fixed around 70 BSW failures on Jenkins. Note that our current Jenkins baseline for BSW is probably not fully baked atm. On Wed, May 27, 2015 at 10:16:04PM -0700, Ben Widawsky wrote: > AFAICT, there is no real way to make sure a send mess

Re: [Mesa-dev] [PATCH] i965: Disable compaction for EOT send messages

2015-05-28 Thread Ben Widawsky
On Thu, May 28, 2015 at 07:00:38AM -0700, Matt Turner wrote: > On Thu, May 28, 2015 at 3:31 AM, Neil Roberts wrote: > > Ben Widawsky writes: > > > >> AFAICT, there is no real way to make sure a send message with EOT is > >> properly ignored from compact, nor c

Re: [Mesa-dev] [PATCH] i965: Disable compaction for EOT send messages

2015-05-28 Thread Ben Widawsky
On Thu, May 28, 2015 at 11:31:40AM +0100, Neil Roberts wrote: > Ben Widawsky writes: > > > AFAICT, there is no real way to make sure a send message with EOT is > > properly ignored from compact, nor can I see a way to actually encode > > EOT while compacting. Before the

[Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers

2015-05-28 Thread Ben Widawsky
Just like the previous patch, but for the GEN9 constraints. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index

[Mesa-dev] [PATCH 6/6] i965/gen8+: Add aux buffer alignment assertions

2015-05-28 Thread Ben Widawsky
This helped find the incorrect HALIGN values from the previous patches. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 4/6] i965/gen8: Correct HALIGN for AUX surfaces

2015-05-28 Thread Ben Widawsky
rface. When Auxiliary Surface Mode is set to AUX_CCS_D or AUX_CCS_E, HALIGN 16 must be used. With the code before the miptree layout flag rework (patches preceding this), accomplishing this workaround is very difficult. Cc: Anuj Phogat Cc: Neil Roberts Signed-off-by: Ben Widawsky --- s

[Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-05-28 Thread Ben Widawsky
to be known all the way at the lowest levels of the create/allocation, disable_aux_buffers is currently one such example. There will be another example coming up in a few patches. Cc: Chad Versace Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_fbo.c | 5 +- src/mesa/dr

[Mesa-dev] [PATCH 0/6] Begin reworking mipmap tree layout + HALIGN fixes gen8+

2015-05-28 Thread Ben Widawsky
SKL (https://bugs.freedesktop.org/show_bug.cgi?id=90561). I don't remember seeing any fixes on BDW, but I do know reverting Anuj's original implementation does nothing to piglit either. Cc: Anuj Phogat Cc: Jordan Justen Ben Widawsky (6): i965: Consolidate certain miptree params to flags i

[Mesa-dev] [PATCH 2/6] i965/gen9: Only allow Y-Tiled MCS buffers

2015-05-28 Thread Ben Widawsky
#x27;t actually do anything since SKL doesn't yet use fast clears, and that's the only case we can get to this function (by way of intel_update_winsys_renderbuffer_miptree) Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 ++ 1 file changed, 2 insertions(

[Mesa-dev] [PATCH 3/6] i965: Extract tiling from fast clear decision

2015-05-28 Thread Ben Widawsky
the miptree. I am torn as to whether or not it was a good idea to remove "non_msrt" since it's a really nice thing for grep. Cc: Chad Versace Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 37 +++ src/mesa/drivers/dri/i965/in

Re: [Mesa-dev] [PATCH] i965: Disable compaction for EOT send messages

2015-05-28 Thread Ben Widawsky
On Thu, May 28, 2015 at 04:58:23PM -0700, Matt Turner wrote: > On Wed, May 27, 2015 at 10:16 PM, Ben Widawsky > wrote: > > AFAICT, there is no real way to make sure a send message with EOT is > > properly > > ignored from compact, nor can I see a way to actually encode

Re: [Mesa-dev] [PATCH 2/2] i965: Don't add base_binding_table_index if it's zero

2015-05-29 Thread Ben Widawsky
addr, brw_imm_ud(base_binding_table_index)); > + if (base_binding_table_index) > + brw_ADD(p, addr, addr, brw_imm_ud(base_binding_table_index)); >brw_AND(p, addr, addr, brw_imm_ud(0xfff)); > >brw_pop_insn_state(p); Both are: Acked-by: Ben Widawsky

Re: [Mesa-dev] [PATCH 1/3] i965: Drop "Vector Mask Enable" bit from 3DSTATE_GS on Gen8+.

2015-05-29 Thread Ben Widawsky
While here, you've probably seen this before, but I just noticed for SIMD8 GS on BDW: "Not valid for objects with more than 6 vertices per object." Probably we don't care, but SPF might be effected by this patch, broken, or fixed by this - I can't quite tell which. This s

Re: [Mesa-dev] [PATCH 2/3] i965: Create a shader_dispatch_mode enum to replace VS/GS fields.

2015-05-29 Thread Ben Widawsky
GEN7_GS_DISPATCH_MODE) | > ((brw->gs.prog_data->invocations - 1) << >GEN7_GS_INSTANCE_CONTROL_SHIFT) | >GEN6_GS_STATISTICS_ENABLE | > diff --git a/src/mesa/drivers/dri/i965/gen8_vs_

Re: [Mesa-dev] [PATCH 3/3] i965: Use proper pitch for scalar GS pull constants and UBOs.

2015-05-29 Thread Ben Widawsky
rw->gs.base, &brw->gs.prog_data->base.base, false); > + &brw->gs.base, &prog_data->base, dword_pitch); > } > > const struct brw_tracked_state brw_gs_ubo_surfaces = { See comment in the previous patch... but as you like: Reviewed-by: Ben Wida

[Mesa-dev] [PATCH] i965: Correct constant buffer MOCS

2015-06-02 Thread Ben Widawsky
lly do anything behaviorally. NOTE: gen8+ should have no change at all since MOCS was always 0 anyway. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen7_vs_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_vs_state.c b/src/m

Re: [Mesa-dev] [PATCH] i965: Correct constant buffer MOCS

2015-06-02 Thread Ben Widawsky
On Tue, 02 Jun 2015 20:32:13 -0700 Kenneth Graunke wrote: > On Tuesday, June 02, 2015 08:07:50 PM Ben Widawsky wrote: > > I'm very confused here. It seems pretty clear that since the > > command has been introduced with support for MOCS, MOCS lives at > > bit 8 o

Re: [Mesa-dev] [PATCH] i965: Correct constant buffer MOCS

2015-06-03 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 12:20:09AM -0700, Kenneth Graunke wrote: > On Tuesday, June 02, 2015 11:41:56 PM Ben Widawsky wrote: > > On Tue, 02 Jun 2015 20:32:13 -0700 > > Kenneth Graunke wrote: > > > > > On Tuesday, June 02, 2015 08:07:50 PM Ben Widawsky wrote: >

Re: [Mesa-dev] [PATCH] i965/fs: Use UW-typed immediate in multiply inst.

2015-06-03 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 01:09:50PM +0100, Neil Roberts wrote: > Looks good to me. Thanks for fixing this. I guess I still have more to > learn about the ISA. > > However, should we not also fix the vec4 version? With that, > > Reviewed-by: Neil Roberts > > If we wanted to play safe and avoid th

Re: [Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-03 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 12:45:12PM +0300, Ville Syrjälä wrote: > On Wed, Jun 03, 2015 at 10:05:25AM +0300, Abdiel Janulgue wrote: > > > > On 06/02/2015 08:28 PM, Kenneth Graunke wrote: > > > On Tuesday, June 02, 2015 03:23:35 PM Abdiel Janulgue wrote: > > >> > > >> On 06/02/2015 09:31 AM, Kenneth

Re: [Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-03 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 12:05:34PM -0700, Kenneth Graunke wrote: > On Wednesday, June 03, 2015 09:44:21 AM Ben Widawsky wrote: > > On Wed, Jun 03, 2015 at 12:45:12PM +0300, Ville Syrjälä wrote: > > > On Wed, Jun 03, 2015 at 10:05:25AM +0300, Abdiel Janulgue wrote: > > >

Re: [Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-03 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 12:34:56PM -0700, Ben Widawsky wrote: > On Wed, Jun 03, 2015 at 12:05:34PM -0700, Kenneth Graunke wrote: > > On Wednesday, June 03, 2015 09:44:21 AM Ben Widawsky wrote: > > > On Wed, Jun 03, 2015 at 12:45:12PM +0300, Ville Syrjälä wrote: > > > &

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

2015-06-03 Thread Ben Widawsky
nt requirements. > Make can_fast_copy_blit() helper. > Use ffs(), is_power_of_two() > Move overlap computation inside intel_miptree_blit(). > Use XY_FAST prefix for the macros. > > Signed-off-by: Anuj Phogat > Cc: Ben Widawsky > --- > src/mesa

Re: [Mesa-dev] [PATCH 17.5/22] i965/skl: Extract the blit command setup in to a helper

2015-06-03 Thread Ben Widawsky
On Tue, Jun 02, 2015 at 04:04:08PM -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > Cc: Ben Widawsky > --- > Patch can be squashed with 17/22. I kept it separate for easy review. This part is: Reviewed-by: Ben Widawsky I don't mind keeping i

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

2015-06-03 Thread Ben Widawsky
hoose_tr_mode() actually choose TRMODE. (Ben) > Few cosmetic changes. > > Signed-off-by: Anuj Phogat > Cc: Ben Widawsky > > --- > I think we need some benchmarking to come up with conditions to > choose Ys (64 KB) over Yf (4 KB). Any thoughts on minimum texture > size

[Mesa-dev] [PATCH 2/2] i965: Split out gen8 push constant state upload

2015-06-03 Thread Ben Widawsky
totally optional. I'd be willing to just always use buffer #2 on gen8+. Pre-HSW this wasn't allowed, but it looks like it's okay for GEN8 too. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_state.h | 6 +-- src/mesa/drivers/dri/i965/gen6_gs_state.c | 2 +- s

[Mesa-dev] [PATCH 1/2] i965/gen9: Implement Push Constant Buffer workaround

2015-06-03 Thread Ben Widawsky
n I can revisit this. Anuj ran this on his SKL and said there were no fixes on regressions. There is some hope it fixes BXT issues. Cc: Imre Deak Cc: Neil Roberts Cc: Anuj Phogat Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen7_vs_state.c | 48 ++- 1 f

[Mesa-dev] [PATCH] squash! i965: Consolidate certain miptree params to flags

2015-06-04 Thread Ben Widawsky
Here is the diff compared to v1, with the r-b tags I got. I've only compile tested this, but I'll send it through jenkins before push. Thanks for the comments. Cc: "Pohjolainen, Topi" Reviewed-by: Chad Versace Reviewed-by: Anuj Phogat Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 12:07:36PM -0700, Chad Versace wrote: > On Fri 29 May 2015, Pohjolainen, Topi wrote: > > On Fri, May 29, 2015 at 09:32:53AM +0300, Pohjolainen, Topi wrote: > > > On Thu, May 28, 2015 at 10:21:29AM -0700, Ben Widawsky wrote: > > > > I think pr

Re: [Mesa-dev] [PATCH 3/6] i965: Extract tiling from fast clear decision

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 12:27:17PM -0700, Chad Versace wrote: > On Thu 28 May 2015, Ben Widawsky wrote: > > There are several constraints when determining if one can fast clear a > > surface. > > Some of these are alignment, pixel density, tiling formats, and others

Re: [Mesa-dev] [PATCH 4/6] i965/gen8: Correct HALIGN for AUX surfaces

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 05:21:14PM -0700, Chad Versace wrote: > On Fri 29 May 2015, Chad Versace wrote: > > On Thu 28 May 2015, Ben Widawsky wrote: > > > This restriction was attempted in this commit: > > > commit 47053464630888f819ef8cc44278f1a1220159b9 > >

Re: [Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers

2015-06-04 Thread Ben Widawsky
On Fri, May 29, 2015 at 05:06:09PM -0700, Chad Versace wrote: > On Thu 28 May 2015, Ben Widawsky wrote: > > Just like the previous patch, but for the GEN9 constraints. > > > > Signed-off-by: Ben Widawsky > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c

Re: [Mesa-dev] [PATCH] i965: Use vec4 vs shader path in spill cases.

2015-06-04 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 05:42:10PM -0700, Matt Turner wrote: > On Wed, Jun 3, 2015 at 5:29 PM, Kenneth Graunke wrote: > > On Wednesday, June 03, 2015 11:35:43 PM Bish, Jim wrote: > >> For BDW and newer hardware, vertex shaders can be dispatched > >> using simd8 scalars, but when spills occur perfo

Re: [Mesa-dev] [RFC] i965: Don't consider uniform value locations in program uploads

2015-06-04 Thread Ben Widawsky
On Wed, Jun 03, 2015 at 09:32:55PM +0300, Pohjolainen, Topi wrote: > On Wed, Jun 03, 2015 at 09:21:11PM +0300, Topi Pohjolainen wrote: > > Shader programs are cached per stage (FS, VS, GS) using the > > corresponding shader source identifier and compile time choices > > as key. However, one not onl

Re: [Mesa-dev] [PATCH 1/5] mesa: Fix errors values returned by glShaderBinary()

2015-06-04 Thread Ben Widawsky
On Wed, Mar 11, 2015 at 10:01:24AM +0100, Eduardo Lima Mitev wrote: > Page 68, section 7.2 'Shader Binaries" of the of the OpenGL ES 3.1, > and page 88 of the OpenGL 4.5 specs state: > > "An INVALID_VALUE error is generated if count or length is negative. > An INVALID_ENUM error is genera

Re: [Mesa-dev] [PATCH 2/5] mesa: Fix error returned by glCopyTexImage2D() upon an invalid internal format

2015-06-04 Thread Ben Widawsky
On Wed, Mar 11, 2015 at 10:01:25AM +0100, Eduardo Lima Mitev wrote: > Section '8.6 Alternate Texture Image Specification Commands', page 161 of the > OpenGL ES 3.1 spec, and page 207 of the same section in the OpenGL 4.5 spec > state in relation to CopyTexImage2D method: > > "An INVALID_ENUM e

[Mesa-dev] [PATCH 1/2] i965: Add buffer sizes to perf debug of fast clears

2015-06-05 Thread Ben Widawsky
sible 5% performance win if avoided. Recommended-by: Kenneth Graunke Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_clear.c | 5 +++-- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 6 -- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mesa/dr

[Mesa-dev] [PATCH 2/2] i965: Add gen8 fast clear perf debug

2015-06-05 Thread Ben Widawsky
gnore it. Example: Multi-LOD fast clear - giving up (256x128x8). Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 4 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 15 +-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src

Re: [Mesa-dev] [PATCH 1/3] i965: Fix HW blitter pitch limits

2015-06-05 Thread Ben Widawsky
patch series I never landed which touches some of the same code for similar purposes. http://lists.freedesktop.org/archives/mesa-dev/2015-March/079001.html [snip] -- Ben Widawsky, Intel Open Source Technology Center ___ mesa-dev mailing l

[Mesa-dev] [PATCH 6/6] i965/gen8+: Add aux buffer alignment assertions

2015-06-08 Thread Ben Widawsky
igned-off-by: Ben Widawsky Reviewed-by: Chad Versace Reviewed-by: Anuj Phogat Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/dr

[Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers

2015-06-08 Thread Ben Widawsky
Just like the previous patch, but for the GEN9 constraints. v2: bugfix: Gen9 HALIGN was being set for all miptree buffers (Chad). To address this, move the check to where the gen8 check is, and do the appropriate conditional there. Signed-off-by: Ben Widawsky Cc: Chad Versace Reviewed-by: Anuj

[Mesa-dev] [PATCH 3/6] i965: Extract tiling from fast clear decision

2015-06-08 Thread Ben Widawsky
or grep. v2: Reword some comments (Chad) intel_is_non_msrt_mcs_tile_supported->intel_tiling_supports_non_msrt_mcs (Chad) Make full if ladder for for gens in above function (Chad) Signed-off-by: Ben Widawsky Cc: Chad Versace Cc: Topi Pohjolainen Reviewed-by: Jordan Justen Reviewed-by: Anuj Phogat --- src/mes

[Mesa-dev] [PATCH 4/6] i965/gen8: Correct HALIGN for AUX surfaces

2015-06-08 Thread Ben Widawsky
rface. When Auxiliary Surface Mode is set to AUX_CCS_D or AUX_CCS_E, HALIGN 16 must be used. With the code before the miptree layout flag rework (patches preceding this), accomplishing this workaround is very difficult. v2: bugfix: Don't set HALIGN16 for gens before 8 (Chad) Signed-off-

[Mesa-dev] [PATCH 2/6] i965/gen9: Only allow Y-Tiled MCS buffers

2015-06-08 Thread Ben Widawsky
#x27;t actually do anything since SKL doesn't yet use fast clears, and that's the only case we can get to this function (by way of intel_update_winsys_renderbuffer_miptree) Signed-off-by: Ben Widawsky Reviewed-by: Chad Versace Reviewed-by: Jordan Justen Reviewed-by: Anuj Phogat ---

[Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-06-08 Thread Ben Widawsky
x27; instead of !!X (everyone except Chad) Signed-off-by: Ben Widawsky Cc: "Pohjolainen, Topi" Reviewed-by: Chad Versace Reviewed-by: Anuj Phogat Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/intel_fbo.c | 5 +- src/mesa/drivers/dri/i965/

[Mesa-dev] [PATCH] i965/gen9: Use raw PS invocation count for queries

2015-06-08 Thread Ben Widawsky
Previously the number needed to be divided by 4 to get the proper results. Now the hardware does the right thing. Through experimentation it seems Braswell (CHV) does also need this. Fixes piglit test: arb_pipeline_statistics_query-frag Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH] i965/gen9: Use raw PS invocation count for queries

2015-06-08 Thread Ben Widawsky
On Mon, Jun 08, 2015 at 03:50:19PM -0700, Ben Widawsky wrote: > Previously the number needed to be divided by 4 to get the proper results. Now > the hardware does the right thing. Through experimentation it seems Braswell > (CHV) does also need this. I need to reword this, which I'v

[Mesa-dev] [PATCH] i965/chv: Increase VS and GS thread counts

2014-11-02 Thread Ben Widawsky
AFAICT the number of threads is 80, not 70. I am not sure if Ken knows something I do not. Signed-off-by: Ben Widawsky Cc: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_device_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH v2 01/14] i965/hiz: Start to separate miptree out from hiz buffers

2014-11-10 Thread Ben Widawsky
in rows between array slices. */ > + > + struct intel_mipmap_tree *mt; /**< hiz miptree used with Gen6 */ > +}; > + Doesn't the needs resolve flag belong here too? > struct intel_mipmap_tree > { > /** Buffer object containing the pixel data. */ > @@ -362,15 +3

Re: [Mesa-dev] [PATCH v2 02/14] i965/gen7: Don't rely directly on the hiz miptree structure

2014-11-10 Thread Ben Widawsky
just for the pedant: brw_emit_depth_stencil_hiz() gen6_blorp_emit_depth_stencil_config() gen6_emit_depth_stencil_hiz() If it was intentional, maybe adjust the commit message? I see nothing that would break as a result here though. Reviewed-by: Ben Widawsky -- Ben Widawsky, Intel Open Source Technology Center ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 03/14] i965/gen8: Don't rely directly on the hiz miptree structure

2014-11-10 Thread Ben Widawsky
bo, >I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0); > - OUT_BATCH(depth_mt->hiz_buf->mt->qpitch >> 2); > + OUT_BATCH(depth_mt->hiz_buf->qpitch >> 2); >ADVANCE_BATCH(); > } > > -- I would have just combined

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