[Mesa-dev] [PATCH 4/4] i965: Emit PIPE_CONTROL with ISP bit on older platforms.

2018-01-26 Thread Rafael Antognolli
Emit it on all platforms since gen7. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index

[Mesa-dev] [PATCH 1/4] anv/gen10: Emit CS stall and mark push constants dirty.

2018-01-26 Thread Rafael Antognolli
I got reviews and fixed the patches locally, but ended up merging the ones that I sent originally to the list. This patch fixes those mistakes. Fixes: 78c125af3904c539ea69bec2dd9fdf7a5162854f Signed-off-by: Rafael Antognolli Cc: Jason Ekstrand --- src/intel/vulkan/anv_private.h | 1 - src

[Mesa-dev] [PATCH 3/4] anv/cmd_buffer: Emit PIPE_CONTROL with ISP bit on older platforms.

2018-01-26 Thread Rafael Antognolli
Emit it on all platforms since gen7. Signed-off-by: Rafael Antognolli --- src/intel/vulkan/genX_cmd_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 3691b4bdec9..0e8c9ee7c46 100644

[Mesa-dev] [PATCH 0/4] Fix messup and extend workaround to older platforms.

2018-01-26 Thread Rafael Antognolli
more consistent accross all platforms. Also, at least the hardware won't try to read push constants that are not there anymore. Cc: Kenneth Graunke Cc: Jason Ekstrand Rafael Antognolli (4): anv/gen10: Emit CS stall and mark push constants dirty. i965/gen10: Use CS Stall inste

Re: [Mesa-dev] [PATCH v2] i965: perform 2 uploads with dual slot *64*PASSTHRU formats on gen<8

2018-01-31 Thread Rafael Antognolli
Ugh, I had to read this change many times to understand it, but I do think it makes sense. The comments in the code helped a lot too. Reviewed-by: Rafael Antognolli On Mon, Jan 29, 2018 at 06:25:30PM +0200, Andres Gomez wrote: > The emission of vertex attributes corresponding to dvec3 and dv

Re: [Mesa-dev] [PATCH 2/4] i965/gen10: Use CS Stall instead of WriteImmediate.

2018-02-05 Thread Rafael Antognolli
The first 2 patches of this series should be added to branch 18.0 too. On Fri, Jan 26, 2018 at 11:32:38AM -0800, Rafael Antognolli wrote: > Fixes: ca19ee33d7d39cb89d948b1c983763065975ce5b > Signed-off-by: Rafael Antognolli > Cc: Kenneth Graunke > --- > src/mesa/d

[Mesa-dev] [PATCH 3/3] docs: Add Cannonlake support to 18.0 release notes.

2018-02-13 Thread Rafael Antognolli
17.4 is actually 18.0. Signed-off-by: Rafael Antognolli Cc: "18.0" mesa-sta...@lists.freedesktop.org --- docs/relnotes/17.4.0.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/relnotes/17.4.0.html b/docs/relnotes/17.4.0.html index 412c0fc455e..6bebb514bd2 100644 --- a/doc

[Mesa-dev] [PATCH 1/3] i965/gen10: Remove warning message.

2018-02-13 Thread Rafael Antognolli
Gen10 seems pretty stable so far, so there's no reason to keep this message. Signed-off-by: Rafael Antognolli Cc: Kenneth Graunke Cc: "18.0" mesa-sta...@lists.freedesktop.org --- src/mesa/drivers/dri/i965/brw_context.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 2/3] anv/gen10: Remove warning message.

2018-02-13 Thread Rafael Antognolli
Gen10 seems pretty stable so far, remove "alpha support" message. Signed-off-by: Rafael Antognolli Cc: Jason Ekstrand Cc: "18.0" mesa-sta...@lists.freedesktop.org --- src/intel/vulkan/anv_device.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --gi

[Mesa-dev] [PATCH] intel/gen9+: Enable object level preemption.

2018-02-16 Thread Rafael Antognolli
ilable. Signed-off-by: Rafael Antognolli Cc: Ben Widawsky --- This patch still needs more testing (only ran it through CI and also did some basic tests on my machine to make sure it's not breaking anything). src/intel/genxml/gen10.xml | 8 src/in

[Mesa-dev] [PATCH] i965: Do not store SRC after 0 on component control.

2017-08-23 Thread Rafael Antognolli
to something other than VFCOMP_STORE_SRC." Since we set the component 1 to VFCOMP_STORE_0 on gen8+, and VFCOMP_STORE_IID on gen5+, and we are not using components 2 and 3, let's also set them to VFCOMP_STORE_0. Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h |

Re: [Mesa-dev] [PATCH v6.2] egl: Allow creation of per surface out fence

2017-09-08 Thread Rafael Antognolli
On Fri, Sep 08, 2017 at 08:32:05AM -0700, Marathe, Yogesh wrote: > > -Original Message- > > From: Emil Velikov [mailto:emil.l.veli...@gmail.com] > > Sent: Friday, September 8, 2017 8:28 PM > > To: Marathe, Yogesh > > Cc: Tomasz Figa ; Antognolli, Rafael > > ; Janes, Mark A ; > > mesa-dev@l

Re: [Mesa-dev] [PATCH] i965: consider a 'base level' when calculating width0, height0, depth0

2018-10-08 Thread Rafael Antognolli
On Tue, Oct 02, 2018 at 07:16:01PM +0300, asimiklit.w...@gmail.com wrote: > From: Andrii Simiklit > > I guess that when we calculating the width0, height0, depth0 > to use for function 'intel_miptree_create' we need to consider > the 'base level' like it is done in the 'intel_miptree_create_for_t

[Mesa-dev] [PATCH] i965/miptree: Use enum instead of boolean.

2018-10-10 Thread Rafael Antognolli
ISL_AUX_USAGE_NONE happens to be the same as "false", but let's do the right thing and use the enum. --- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] i965: Update STATE_BASE_ADDRESS length for gen11+.

2018-10-10 Thread Rafael Antognolli
Starting in gen11, we have 3 more dwords used for Bindless Sampler State pointer and size. Cc: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_misc_state.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dr

Re: [Mesa-dev] [PATCH] i965: Update STATE_BASE_ADDRESS length for gen11+.

2018-10-10 Thread Rafael Antognolli
Please ignore this patch, Jordan's version is the correct one. On Wed, Oct 10, 2018 at 01:30:52PM -0700, Rafael Antognolli wrote: > Starting in gen11, we have 3 more dwords used for Bindless Sampler State > pointer and size. > > Cc: Anuj Phogat > > --- >

Re: [Mesa-dev] [PATCH 2/2] i965/gen10+: Initialize new fields in STATE_BASE_ADDRESS

2018-10-10 Thread Rafael Antognolli
OUT_BATCH(0); >} > + if (devinfo->gen >= 10) { > + OUT_BATCH(1); > + OUT_BATCH(0); > + OUT_BATCH(0); > + } Reviewed-by: Rafael Antognolli >ADVANCE_BATCH(); > } else if (devinfo->gen >= 6) { >

Re: [Mesa-dev] [PATCH 1/2] anv/gen9+: Initialize new fields in STATE_BASE_ADDRESS

2018-10-10 Thread Rafael Antognolli
On Wed, Oct 10, 2018 at 01:39:25PM -0700, Jordan Justen wrote: > Ref: 263b584d5e4 "i965/skl: Emit extra zeros in STATE_BASE_ADDRESS on > Skylake." > Signed-off-by: Jordan Justen > --- > src/intel/vulkan/genX_cmd_buffer.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/src

Re: [Mesa-dev] [PATCH 1/2] anv/gen9+: Initialize new fields in STATE_BASE_ADDRESS

2018-10-10 Thread Rafael Antognolli
On Wed, Oct 10, 2018 at 02:04:11PM -0700, Jordan Justen wrote: > On 2018-10-10 13:45:13, Rafael Antognolli wrote: > > On Wed, Oct 10, 2018 at 01:39:25PM -0700, Jordan Justen wrote: > > > Ref: 263b584d5e4 "i965/skl: Emit extra zeros in STATE_BASE_ADDRESS on > > &g

[Mesa-dev] [PATCH v2] i965/miptree: Use enum instead of boolean.

2018-10-10 Thread Rafael Antognolli
ISL_AUX_USAGE_NONE happens to be the same as "false", but let's do the right thing and use the enum. v2: fix intel_miptree_finish_depth too (Caio) Reviewed-by: Dylan Baker Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Jason Ekstrand --- I just added the finish_depth() fix in the sa

Re: [Mesa-dev] [PATCH 1/2] anv/gen9+: Initialize new fields in STATE_BASE_ADDRESS

2018-10-11 Thread Rafael Antognolli
On Wed, Oct 10, 2018 at 05:00:33PM -0700, Jordan Justen wrote: > On 2018-10-10 14:38:23, Rafael Antognolli wrote: > > On Wed, Oct 10, 2018 at 02:04:11PM -0700, Jordan Justen wrote: > > > On 2018-10-10 13:45:13, Rafael Antognolli wrote: > > > > On Wed, Oct 10, 20

Re: [Mesa-dev] [PATCH] i965: consider a 'base level' when calculating width0, height0, depth0

2018-10-11 Thread Rafael Antognolli
ed that point, then things should be fine. As an extra thing, I think the test could additionally check that everything rendered correctly (check some colors from the framebuffer). Anyway, just some ideas. Thanks, Rafael > Regards, > Andrii. > On Mon, Oct 8, 2018 at 11:46 PM Rafael

Re: [Mesa-dev] [PATCH] intel/tools: Remove hardcoded PADDING_SIZE from sanitizer

2018-10-17 Thread Rafael Antognolli
On Wed, Oct 17, 2018 at 06:08:34PM +0300, Danylo Piliaiev wrote: > Signed-off-by: Danylo Piliaiev > --- > src/intel/tools/intel_sanitize_gpu.c | 38 +++- > 1 file changed, 20 insertions(+), 18 deletions(-) > > diff --git a/src/intel/tools/intel_sanitize_gpu.c > b/src/int

[Mesa-dev] [PATCH v2 3/3] i965/gen9: Add workarounds for object preemption.

2018-10-29 Thread Rafael Antognolli
ignore blorp. The only primitive it emits is 3DPRIM_RECTLIST, and since it's not listed in the workarounds, we can safely leave preemption enabled when it happens. Or it will be disabled by a previous 3DPRIMITIVE, which should be fine too. Signed-off-by: Rafael Antognolli Cc: Kenneth Gr

[Mesa-dev] [PATCH v2 0/3] Add object level preemption to i965.

2018-10-29 Thread Rafael Antognolli
Re-sending the series, this time adding preemption support only to i965, since We still don't have vulkan tests for this. The proposed piglit test for this series can be found here: https://gitlab.freedesktop.org/rantogno/piglit/commits/review/context_preemption_v2 Cc: Kenneth Graunke R

[Mesa-dev] [PATCH v2 2/3] i965/gen10+: Enable object level preemption.

2018-10-29 Thread Rafael Antognolli
Set bit when initializing context. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_defines.h | 5 src/mesa/drivers/dri/i965/brw_state.h| 3 ++- src/mesa/drivers/dri/i965/brw_state_upload.c | 25

[Mesa-dev] [PATCH v2 1/3] intel/genxml: Add register for object preemption.

2018-10-29 Thread Rafael Antognolli
Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen10.xml | 8 src/intel/genxml/gen11.xml | 8 src/intel/genxml/gen9.xml | 8 3 files changed, 24 insertions(+) diff --git a/src/intel/genxml/gen10.xml b/src/intel/genxml/gen10.xml index abd5da297d6..acded759335

Re: [Mesa-dev] [PATCH v2 2/3] i965/gen10+: Enable object level preemption.

2018-10-29 Thread Rafael Antognolli
On Mon, Oct 29, 2018 at 05:29:10PM +, Chris Wilson wrote: > Quoting Rafael Antognolli (2018-10-29 17:19:53) > > +void > > +brw_enable_obj_preemption(struct brw_context *brw, bool enable) > > +{ > > + const struct gen_device_info *devinfo = &brw->screen->

Re: [Mesa-dev] [PATCH v2 3/3] i965/gen9: Add workarounds for object preemption.

2018-10-31 Thread Rafael Antognolli
On Tue, Oct 30, 2018 at 04:32:54PM -0700, Kenneth Graunke wrote: > On Monday, October 29, 2018 10:19:54 AM PDT Rafael Antognolli wrote: > > Gen9 hardware requires some workarounds to disable preemption depending > > on the type of primitive being emitted. > > > > We imp

Re: [Mesa-dev] [PATCH] intel: tools: dump_gpu: fix ppgtt mapping

2018-07-09 Thread Rafael Antognolli
Reviewed-by: Rafael Antognolli On Fri, Jul 06, 2018 at 11:02:05AM +0100, Lionel Landwerlin wrote: > We were not properly writing page tables when the virtual address > range spans multiple subtrees of the tables. > > Signed-off-by: Lionel Landwerlin > --- > src/intel/tool

[Mesa-dev] [PATCH] intel/tools/dump_gpu: Add option to print ppgtt mappings.

2018-07-09 Thread Rafael Antognolli
Using -vv will increase the verbosity, by printing the ppgtt mappings as they get written into the aub file. Cc: Lionel Landwerlin --- src/intel/tools/intel_dump_gpu.c | 25 - src/intel/tools/intel_dump_gpu.in | 6 ++ 2 files changed, 30 insertions(+), 1 deletion(-)

Re: [Mesa-dev] [PATCH] intel: tools: Fix uninitialized variable warnings in intel_dump_gpu.

2018-07-13 Thread Rafael Antognolli
Reviewed-by: Rafael Antognolli On Thu, Jul 12, 2018 at 11:46:12AM -0700, Eric Anholt wrote: > --- > src/intel/tools/intel_dump_gpu.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/intel/tools/intel_dump_gpu.c > b/src/intel/tools/intel_dump_gpu.c &g

Re: [Mesa-dev] [PATCH v2 4/4] intel: tools: dump: trace memory writes

2018-07-18 Thread Rafael Antognolli
On Wed, Jul 18, 2018 at 06:21:32PM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/aub_write.c | 45 ++--- > 1 file changed, 32 insertions(+), 13 deletions(-) > > diff --git a/src/intel/tools/aub_write.c b/src/intel/tools

Re: [Mesa-dev] [PATCH v2 4/4] intel: tools: dump: trace memory writes

2018-07-19 Thread Rafael Antognolli
On Thu, Jul 19, 2018 at 10:14:32AM +0100, Lionel Landwerlin wrote: > On 18/07/18 21:58, Rafael Antognolli wrote: > > On Wed, Jul 18, 2018 at 06:21:32PM +0100, Lionel Landwerlin wrote: > > > Signed-off-by: Lionel Landwerlin > > > --- > > >

Re: [Mesa-dev] [PATCH v2 1/4] intel: tools: dump: remove command execution feature

2018-07-19 Thread Rafael Antognolli
I was thinking about the patch. I didn't look deeply into the one that removes the command execution stuff, but for the rest of the series, Acked-by: Rafael Antognolli Sorry for being ambiguous :P On Thu, Jul 19, 2018 at 10:12:57AM +0100, Lionel Landwerlin wrote: > Was that for t

Re: [Mesa-dev] [PATCH v2] intel: tools: dump: protect against multiple calls on destructor

2018-07-20 Thread Rafael Antognolli
t; > Suggested-by: Rafael Antognolli > Signed-off-by: Lionel Landwerlin Reviewed-by: Rafael Antognolli > --- > src/intel/tools/intel_dump_gpu.in | 19 --- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git a/src/intel/tools/in

Re: [Mesa-dev] [PATCH 1/2] intel: tools: dump: make dump tool reliable under gdb

2018-07-20 Thread Rafael Antognolli
onfiguration through a temporary file that is > deleted once the command line passes to intel_dump_gpu has exited. Nice, I noticed this weird behavior too, thanks for fixing. Reviewed-by: Rafael Antognolli > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/intel_dump_gpu

Re: [Mesa-dev] [PATCH] i965: Disable guardband clipping on SandyBridge for odd dimensions

2018-07-26 Thread Rafael Antognolli
Hi Vadym, Ken and Ian explained a bit the situation on this one to me, and it looks like neither of them are really against this patch. So unless someone else raise any concern, I'll ack and push the patch later today. Thanks for fixing this. Rafael On Thu, Jul 26, 2018 at 04:04:29PM +0300, Vad

Re: [Mesa-dev] [PATCH] intel: tools: aubwrite: split gen[89] from gen10+

2018-07-30 Thread Rafael Antognolli
On Mon, Jul 30, 2018 at 04:28:37PM +0100, Lionel Landwerlin wrote: > Gen10+ has an additional bit in MI_BATCH_BUFFER_END to signal the end > of the context image. Cool, I see you are also adding a couple missing commands and noops into the gen10+ contexts. Reviewed-by: Rafael Antognolli

Re: [Mesa-dev] [PATCH 01/14] intel: aubinator: fix read the context/ring

2018-08-03 Thread Rafael Antognolli
On Thu, Aug 02, 2018 at 10:39:13AM +0100, Lionel Landwerlin wrote: > Up to now we've been lucky that the buffer returned was always exactly > at the address we requested. Looks like this needs to land, even if the rest of the series doesn't. Reviewed-by: Rafael Antognolli >

Re: [Mesa-dev] [PATCH 07/14] intel: tools: split aub parsing from aubinator

2018-08-03 Thread Rafael Antognolli
Looks like no functional change, and it's needed by the ui tool, so Reviewed-by: Rafael Antognolli On Thu, Aug 02, 2018 at 10:39:19AM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/aub_read.c | 307 +

Re: [Mesa-dev] [PATCH 08/14] util: rb_tree: add safe iterators

2018-08-03 Thread Rafael Antognolli
On Thu, Aug 02, 2018 at 10:39:20AM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/util/rb_tree.h | 36 > 1 file changed, 36 insertions(+) > > diff --git a/src/util/rb_tree.h b/src/util/rb_tree.h > index c77e9255ea2..df1a4197b8a

Re: [Mesa-dev] [PATCH 10/14] intel: tools: aubwrite: wrap function declarations for c++

2018-08-03 Thread Rafael Antognolli
Reviewed-by: Rafael Antognolli On Thu, Aug 02, 2018 at 10:39:22AM +0100, Lionel Landwerlin wrote: > --- > src/intel/tools/aub_write.h | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/intel/tools/aub_write.h b/src/intel/tools/aub_write.h > index b42167

Re: [Mesa-dev] [PATCH 09/14] intel: tools: split memory management out of aubinator

2018-08-03 Thread Rafael Antognolli
This also looks like a harmless and useful refactory. Reviewed-by: Rafael Antognolli On Thu, Aug 02, 2018 at 10:39:21AM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/aub_mem.c | 391 > src

Re: [Mesa-dev] [PATCH 11/14] intel: tools: aubmem: map gtt data to aub file

2018-08-06 Thread Rafael Antognolli
page ? > + (struct gen_batch_decode_bo) { .map = page->data, .addr = > page->phys_addr, .size = 4096 } : Looks like we are starting to use gen_batch_decode_bo as a generic address pointer now (to both physical, virtual or aub data memory), so maybe at some point we might wan

Re: [Mesa-dev] [PATCH 12/14] build: new tool option for intel ui tools

2018-08-06 Thread Rafael Antognolli
Ugh, I just replied with the whole message without cutting it out, so in case it doesn't reach the ML, this is what I wanted to say: On Mon, Aug 06, 2018 at 11:19:20AM -0700, Rafael Antognolli wrote: > I would change the commit summary line to make it clear we are importing > imgui co

Re: [Mesa-dev] [PATCH 13/14] intel: tools: add aubinator viewer

2018-08-06 Thread Rafael Antognolli
Patches 13 and 14 are: Acked-by: Rafael Antognolli On Thu, Aug 02, 2018 at 10:39:25AM +0100, Lionel Landwerlin wrote: > A graphical user interface version of aubinator. > Allows you to : > >- simultaneously look at multiple points in the aub file (using all > the goodne

Re: [Mesa-dev] [PATCH v2 09/11] intel: tools: add aubinator viewer

2018-08-07 Thread Rafael Antognolli
On Tue, Aug 07, 2018 at 06:35:20PM +0100, Lionel Landwerlin wrote: > A graphical user interface version of aubinator. > Allows you to : > >- simultaneously look at multiple points in the aub file (using all > the goodness of the existing decoding in aubinator) > >- edit an aub file >

Re: [Mesa-dev] [PATCH v2 02/11] util: rb_tree: add safe iterators

2018-08-07 Thread Rafael Antognolli
On Tue, Aug 07, 2018 at 06:35:13PM +0100, Lionel Landwerlin wrote: > v2: Add helper to make iterators more readable (Rafael) > Fix rev iterator bug (Rafael) > > Signed-off-by: Lionel Landwerlin Reviewed-by: Rafael Antognolli > --- > src/u

Re: [Mesa-dev] [PATCH v2 05/11] intel: tools: create libaub

2018-08-08 Thread Rafael Antognolli
Reviewed-by: Rafael Antognolli On Tue, Aug 07, 2018 at 06:35:16PM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/meson.build | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/src/intel/tools

Re: [Mesa-dev] [PATCH v2 07/11] intel: tools: aub_mem: reuse already mapped ppgtt buffers

2018-08-08 Thread Rafael Antognolli
On Tue, Aug 07, 2018 at 06:35:18PM +0100, Lionel Landwerlin wrote: > When we map a PPGTT buffer into a continous address space of aubinator > to be able to inspect it, we currently add it to the list of BOs to > unmap once we're finished. An optimization we can apply it to look up > that list befor

Re: [Mesa-dev] [PATCH v2 10/11] intel: aubinator_viewer: store urb state during decoding

2018-08-08 Thread Rafael Antognolli
I'm not that familiar with this code yet, so take this review with a grain of salt, but it looks good to me. Reviewed-by: Rafael Antognolli Just a few comments below but nothing really important. On Tue, Aug 07, 2018 at 06:35:21PM +0100, Lionel Landwerlin wrote: > Signed-off-by

Re: [Mesa-dev] [PATCH v2 11/11] intel: aubinator_viewer: add urb view

2018-08-08 Thread Rafael Antognolli
const_br(x + (const_idx + stages[s].const_rd_length) * > alloc_delta, > + y + row_height); > + > + char label[40]; > + snprintf(label, sizeof(label), "%s: ", stage_names[s]); > + draw_list->AddText(alloc_pos, ImGui::

Re: [Mesa-dev] [PATCH] intel/decoder: fix the possible out of bounds group_iter

2018-08-10 Thread Rafael Antognolli
FFE0U and it looks like unexpected behavior for > me: > iter_group_offset_bits(iter, iter->group_iter + 1) < 0xFFE0U; That's fine, I think the original commit message is good enough to understand this change. Feel free to add this extra bit too if you want, but I don't th

Re: [Mesa-dev] [PATCH] intel/decoder: fix the possible out of bounds group_iter

2018-08-10 Thread Rafael Antognolli
so it seemed reasonable to check for that, considering we can return -1, but I agree that printing "unknown instruction" would be better. > - > Lionel > > > On 10/08/18 16:48, Rafael Antognolli wrote: > > On Thu, Aug 09, 2018 at 03:00:30PM +0300, andrey simiklit wrot

Re: [Mesa-dev] [PATCH v2] intel/decoder: fix the possible out of bounds group_iter

2018-08-14 Thread Rafael Antognolli
On Tue, Aug 14, 2018 at 03:36:18PM +0100, Lionel Landwerlin wrote: > On 14/08/18 12:55, asimiklit.work wrote: > > Hi Lionel, > > > Hi Andrii, > > > > > > Again sorry, I don't think this is the right fix. > > > I'm sending another patch to fix the parsing of > > > MI_BATCH_BUFFER_START which seems

[Mesa-dev] [PATCH] aubinator_error_decode: Compare only the class_name of the ring.

2018-03-20 Thread Rafael Antognolli
ring_name is " + " (e.g. rcs0). So we need to first compare the class name only, then get the instance id. Without this, INSTDONE is not being decoded. Signed-off-by: Rafael Antognolli Cc: Chris Wilson --- src/intel/tools/aubinator_error_decode.c | 2 +- 1 file changed, 1 inser

[Mesa-dev] [PATCH 2/4] intel/genxml: Add ROW_INSTDONE register.

2018-03-21 Thread Rafael Antognolli
--- src/intel/genxml/gen10.xml | 18 ++ src/intel/genxml/gen11.xml | 18 ++ src/intel/genxml/gen7.xml | 20 src/intel/genxml/gen75.xml | 22 ++ src/intel/genxml/gen8.xml | 18 ++ src/intel/genxml/gen9.xml |

[Mesa-dev] [PATCH 4/4] intel/aubinator_error_decode: Decode more registers.

2018-03-21 Thread Rafael Antognolli
Decode SC_INSTDONE, ROW_INSTDONE and SAMPLER_INSTDONE. --- src/intel/tools/aubinator_error_decode.c | 12 1 file changed, 12 insertions(+) diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index db880d74a9e..9abd05fd75a 100644 --- a/src

[Mesa-dev] [PATCH 3/4] intel/genxml: Add SAMPLER_INSTDONE register.

2018-03-21 Thread Rafael Antognolli
--- src/intel/genxml/gen10.xml | 23 +++ src/intel/genxml/gen11.xml | 23 +++ src/intel/genxml/gen7.xml | 22 ++ src/intel/genxml/gen75.xml | 25 + src/intel/genxml/gen8.xml | 23 +++ src/inte

[Mesa-dev] [PATCH 1/4] intel/genxml: Add SC_INSTDONE register.

2018-03-21 Thread Rafael Antognolli
--- src/intel/genxml/gen10.xml | 27 +++ src/intel/genxml/gen11.xml | 27 +++ src/intel/genxml/gen7.xml | 19 +++ src/intel/genxml/gen75.xml | 17 + src/intel/genxml/gen8.xml | 24 src/intel/

Re: [Mesa-dev] [PATCH 01/11] intel/tools/aubinator: Drop platform list from print_help()

2018-03-21 Thread Rafael Antognolli
On Wed, Mar 21, 2018 at 02:06:12PM -0700, Matt Turner wrote: > We all know the platform names, and I don't want to update this list > continually. Reviewed-by: Rafael Antognolli > --- > src/intel/tools/aubinator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) &

Re: [Mesa-dev] [PATCH 03/11] intel/common/icl: Disable hiz surface sampling

2018-03-21 Thread Rafael Antognolli
On Wed, Mar 21, 2018 at 02:06:14PM -0700, Matt Turner wrote: > From: Anuj Phogat > > On gen11+ AUX_HIZ is not a supported value for surfaces being > sampled by the 3D sampler. Reviewed-by: Rafael Antognolli > --- > src/intel/dev/gen_device_info.c | 1 + > 1 file

Re: [Mesa-dev] [PATCH 09/11] intel: Add a Ice Lake PCI IDs

2018-03-21 Thread Rafael Antognolli
Matches the bspec. Reviewed-by: Rafael Antognolli On Wed, Mar 21, 2018 at 02:06:20PM -0700, Matt Turner wrote: > From: Anuj Phogat > > --- > include/pci_ids/i965_pci_ids.h | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/include/pci_ids/i965_pci_id

Re: [Mesa-dev] [PATCH v4 12/18] i965/blorp: Update the fast clear color address.

2018-03-27 Thread Rafael Antognolli
On Tue, Mar 27, 2018 at 11:16:37AM -0700, Jason Ekstrand wrote: > On Thu, Mar 8, 2018 at 8:49 AM, Rafael Antognolli > > wrote: > > On Gen10, whenever we do a fast clear, blorp will update the clear color > state buffer for us, as long as we set the clear color addre

Re: [Mesa-dev] [PATCH v4 13/18] i965/surface_state: Emit the clear color address instead of value.

2018-03-27 Thread Rafael Antognolli
On Tue, Mar 27, 2018 at 11:19:43AM -0700, Jason Ekstrand wrote: > On Tue, Mar 27, 2018 at 4:37 AM, Pohjolainen, Topi > > wrote: > > On Thu, Mar 08, 2018 at 08:49:06AM -0800, Rafael Antognolli wrote: > > On Gen10, when emitting the surface state, use the value stored

[Mesa-dev] [PATCH v5 01/19] anv/image: Do not override lower bits of dword.

2018-03-29 Thread Rafael Antognolli
ned-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- src/intel/vulkan/anv_image.c | 23 ++- src/intel/vulkan/anv_private.h | 4 ++-- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/in

[Mesa-dev] [PATCH v5 00/19] Use clear color address in surface state.

2018-03-29 Thread Rafael Antognolli
Another revision, hopefully with all the last suggestions included. This revision of this series can be found here: https://cgit.freedesktop.org/~rantogno/mesa/log/?h=cnl/fast_clear_address_v5 Cc: Jason Ekstrand Cc: Jordan Justen Cc: "Pohjolainen, Topi" Rafael Antognolli (19):

[Mesa-dev] [PATCH v5 09/19] intel/blorp: Update clear color state buffer during fast clears.

2018-03-29 Thread Rafael Antognolli
centralize everything in blorp, hopefully removing a lot of code duplication. It also allows us to have a similar behavior on gen < 9 and gen >= 10. v5: s/we/we are/ (Jordan) Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/blorp/blorp_genX_

[Mesa-dev] [PATCH v5 02/19] genxml: Preserve fields that share dword space with addresses.

2018-03-29 Thread Rafael Antognolli
h the address. But if they are in the higher 32 bits, they get discarded. On Gen10 we have fields that share space with the higher 16 bits of the address too. This commit makes sure those fields don't get discarded. v5: Remove spurious whitespace (Jason). Signed-off-by: Rafael Antognolli R

[Mesa-dev] [PATCH v5 03/19] intel/genxml: Use a single field for clear color address on gen10.

2018-03-29 Thread Rafael Antognolli
t;Clear Color Address" to "Clear Value Address" and use it for both color and depth. Do the same for the high bits. TODO: add support for multiple addresses at the same position in the xml. v2: Combine high and low order bits into a single address field. Signed-off-by: Rafael Antognoll

[Mesa-dev] [PATCH v5 08/19] intel/blorp: Only copy clear color when doing a resolve.

2018-03-29 Thread Rafael Antognolli
We only need to copy the clear color from the state buffer to the inlined surface state when doing a resolve. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/blorp/blorp_genX_exec.h | 13 + 1 file changed, 9 insertions(+), 4

[Mesa-dev] [PATCH v5 05/19] intel: Use Clear Color struct size.

2018-03-29 Thread Rafael Antognolli
. - Bring back missing offset increment to init_fast_clear_color(). [jordan.l.jus...@intel.com: isl_device_init changes] Signed-off-by: Rafael Antognolli Signed-off-by: Jordan Justen --- src/intel/blorp/blorp_genX_exec.h | 5 +++-- src/intel/isl/isl.c| 4 src/intel/isl/isl.h

[Mesa-dev] [PATCH v5 06/19] intel/isl: Add support to emit clear value address.

2018-03-29 Thread Rafael Antognolli
. Signed-off-by: Rafael Antognolli Reviewed-by: Jordan Justen --- src/intel/isl/isl.h | 9 + src/intel/isl/isl_surface_state.c | 18 ++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index

[Mesa-dev] [PATCH v5 04/19] intel/genxml: Add Clear Color struct to gen10+.

2018-03-29 Thread Rafael Antognolli
v5: Split genxml changes into its own commit (Jason). Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen10.xml | 8 src/intel/genxml/gen11.xml | 10 ++ 2 files changed, 18 insertions(+) diff --git a/src/intel/genxml/gen10.xml b/src/intel/genxml/gen10.xml index

[Mesa-dev] [PATCH v5 16/19] anv: Emit the fast clear color address, instead of value.

2018-03-29 Thread Rafael Antognolli
helper to extract clear color from attachment (Jason) Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/vulkan/anv_image.c | 17 + src/intel/vulkan/anv_private.h | 5 src/intel/vulkan/genX_cmd_buffer.c | 52

[Mesa-dev] [PATCH v5 10/19] i965/miptree: Add space to store the clear value in the aux surface.

2018-03-29 Thread Rafael Antognolli
struct v5: Unreference clear color bo (Jordan) Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 17 + src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 16 2 files changed, 33

[Mesa-dev] [PATCH v5 11/19] i965/miptree: Add new clear color BO for winsys aux buffers

2018-03-29 Thread Rafael Antognolli
: Rafael Antognolli Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index d11ae65243f..89074a64930 100644

[Mesa-dev] [PATCH v5 13/19] i965/blorp: Update the fast clear value buffer.

2018-03-29 Thread Rafael Antognolli
available. - let core blorp update the clear color, but also update it when we skip a fast clear depth. v5: Better subject (Jordan). Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_blorp.c | 11 +++ src/mesa/drivers/dri/i965/brw_clear.c | 22 ++ 2

[Mesa-dev] [PATCH v5 15/19] anv: Add a helper to extract clear color from the attachment.

2018-03-29 Thread Rafael Antognolli
Extract the code from color_attachment_compute_aux_usage, so we can later reuse it to update the clear color state buffer. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/vulkan/anv_private.h | 20 src/intel/vulkan

[Mesa-dev] [PATCH v5 18/19] anv: Make blorp update the clear color.

2018-03-29 Thread Rafael Antognolli
Instead of updating the clear color in anv before a resolve, just let blorp handle that for us during fast clears. v5: Update comment about HiZ clear color (Jordan). Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/vulkan/anv_blorp.c

[Mesa-dev] [PATCH v5 14/19] i965/surface_state: Emit the clear color address instead of value.

2018-03-29 Thread Rafael Antognolli
On Gen10, when emitting the surface state, use the value stored in the clear color entry buffer by using a clear color address in the surface state. v4: Use the clear color offset from the clear_color_bo, when available. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by

[Mesa-dev] [PATCH v5 17/19] anv: Use clear address for HiZ fast clears too.

2018-03-29 Thread Rafael Antognolli
Store the default clear address for HiZ fast clears on a global bo, and point to it when needed. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/vulkan/anv_device.c | 19 +++ src/intel/vulkan/anv_image.c | 10

[Mesa-dev] [PATCH v5 07/19] intel/blorp: Add support for fast clear address.

2018-03-29 Thread Rafael Antognolli
On gen10+, if surface->clear_color_addr is present, use it directly intead of copying it to the surface state. v4: Remove redundant #if clause for GEN <= 10 (Jason) v5: Move flush after the reloc, and keep lower bits (Topi). Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Re

[Mesa-dev] [PATCH v5 19/19] intel: Remove use_clear_address flag from isl_surf_fill_state_info.

2018-03-29 Thread Rafael Antognolli
d-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/blorp/blorp_genX_exec.h| 4 src/intel/isl/isl.h | 7 +++ src/intel/isl/isl_surface_state.c| 21 +++-- src/intel/v

[Mesa-dev] [PATCH v5 12/19] i965: Add aux_buf variable to simplify code.

2018-03-29 Thread Rafael Antognolli
In a follow up patch, we make use of clear_color_bo, which is in mt->mcs_buf or mt->hiz_buf. To avoid duplicating more code that does the same thing on both aux buffers, just use aux_buf already. v5: Add aux_buf to brw_wm_surface_state too. Signed-off-by: Rafael Antognolli --- src/mesa/d

Re: [Mesa-dev] [PATCH v5 06/19] intel/isl: Add support to emit clear value address.

2018-04-03 Thread Rafael Antognolli
On Tue, Apr 03, 2018 at 06:05:06PM +0300, Pohjolainen, Topi wrote: > On Thu, Mar 29, 2018 at 10:58:40AM -0700, Rafael Antognolli wrote: > > gen10 can emit the clear color by setting it on a buffer somewhere, and > > then adding only the address to the surface state. > >

Re: [Mesa-dev] [PATCH v5 06/19] intel/isl: Add support to emit clear value address.

2018-04-03 Thread Rafael Antognolli
On Tue, Apr 03, 2018 at 06:53:18PM +0300, Pohjolainen, Topi wrote: > On Tue, Apr 03, 2018 at 06:50:09PM +0300, Pohjolainen, Topi wrote: > > On Tue, Apr 03, 2018 at 08:43:54AM -0700, Rafael Antognolli wrote: > > > On Tue, Apr 03, 2018 at 06:05:06PM +0300, Pohjolainen, Topi wro

Re: [Mesa-dev] [PATCH] i965/miptree: Initialize mcs buffer only until clear color

2018-04-06 Thread Rafael Antognolli
On Fri, Apr 06, 2018 at 06:07:52PM +0300, Topi Pohjolainen wrote: > Otherwise even the clear color gets initialised to 0xFF. This > allows enabling of color fast clears on ICL without regressing > multisampling tests. > > CC: Rafael Antognolli > CC: Jason Ekstrand > CC: N

Re: [Mesa-dev] [PATCH] i965/gen11: fix genX_bits.h include path

2019-08-13 Thread Rafael Antognolli
On Tue, Aug 13, 2019 at 05:50:30PM +0200, Mauro Rossi wrote: > Instead of "genX_bits.h" use "genxml/genX_bits.h" > as already done in other similar cases > > Besides being more correct, it also fixes building error in Android. Ugh, sorry for that. Reviewed

[Mesa-dev] [PATCH] anv: Properly initialize device->slice_hash.

2019-08-14 Thread Rafael Antognolli
I failed to initialize it on the other cases in GEN11 and it was causing a segfault when going through anv_DestroyDevice, if compiled with valgrind. Fixes: 7bc022b4bbc ("anv/gen11: Emit SLICE_HASH_TABLE when pipes are unbalanced.) --- src/intel/vulkan/genX_state.c | 4 ++-- 1

Re: [Mesa-dev] [PATCH] anv: Properly initialize device->slice_hash.

2019-08-15 Thread Rafael Antognolli
, 2019 at 5:45 PM Rafael Antognolli > > wrote: > > I failed to initialize it on the other cases in GEN11 and it was causing > a segfault when going through anv_DestroyDevice, if compiled with > valgrind. > > Fixes: 7bc022b4bbc ("anv/gen11

[Mesa-dev] [PATCH] intel: Load the driver even if I915_PARAM_REVISION is not found.

2019-08-19 Thread Rafael Antognolli
This param is only available starting on kernel 4.16. Use a default value of 0 if it is not found instead. Cc: Jordan Justen Cc: Mark Janes --- src/intel/dev/gen_device_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen

Re: [Mesa-dev] [PATCH] intel: Load the driver even if I915_PARAM_REVISION is not found.

2019-08-19 Thread Rafael Antognolli
This commit might also need a: Fixes: 96e1c945f2b ("i965: Move device info initialization to common code") On Mon, Aug 19, 2019 at 12:28:55PM -0700, Rafael Antognolli wrote: > This param is only available starting on kernel 4.16. Use a default > value of 0 if

Re: [Mesa-dev] [PATCH] intel: Load the driver even if I915_PARAM_REVISION is not found.

2019-08-19 Thread Rafael Antognolli
On Mon, Aug 19, 2019 at 11:25:38PM +0200, Lionel Landwerlin wrote: > On 19/08/2019 21:28, Rafael Antognolli wrote: > > This param is only available starting on kernel 4.16. Use a default > > value of 0 if it is not found instead. > > > I trace the p

[Mesa-dev] [PATCH] iris: Do not fast clear depth on gen > 9 yet.

2019-04-03 Thread Rafael Antognolli
Depth fast clears were unrestricted, meaning they were enabled on every hardware generation. However, gen11+ requires some extra code to make it work properly. --- src/gallium/drivers/iris/iris_clear.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/iris/iris_clear.c

Re: [Mesa-dev] [PATCH] intel/isl: Align clear color buffer to full cacheline

2019-04-17 Thread Rafael Antognolli
On Wed, Apr 17, 2019 at 09:04:09AM -0700, Kenneth Graunke wrote: > On Wednesday, April 17, 2019 7:16:28 AM PDT Topi Pohjolainen wrote: > > From: Rafael Antognolli > > > > Fixes MCS fast clear gpu hangs with Vulkan CTS on ICL in CI. > > > > CC: Anuj Phogat >

<    1   2   3   4   5   6