Re: [Mesa-dev] [PATCH] Intel: Add a Kaby Lake PCI ID

2018-04-25 Thread Rafael Antognolli
This patch is Reviewed-by: Rafael Antognolli On Wed, Apr 25, 2018 at 09:23:04AM -0700, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > v2: Branding changed > > Signed-off-by: Matt Atwood > --- > include/pci_ids/i965_pci_ids.h | 1 + > 1 file changed,

Re: [Mesa-dev] [PATCH v2 3/5] i965/clear: Remove an early return in fast_clear_depth

2018-04-25 Thread Rafael Antognolli
On Tue, Apr 24, 2018 at 05:48:44PM -0700, Nanley Chery wrote: > Reduce complexity and allow the next patch to delete some code. With > this change, clear operations will still be skipped and setting the > aux_state will cause no side-effects. It's going to skip the fast clear, but if I understood

Re: [Mesa-dev] [PATCH v2 1/5] i965: Add and use a helper to update the indirect miptree color

2018-04-25 Thread Rafael Antognolli
This patch is Reviewed-by: Rafael Antognolli On Tue, Apr 24, 2018 at 05:48:42PM -0700, Nanley Chery wrote: > Split out this functionality to enable a fast-clear optimization for > color miptrees in the next commit. > > v2: Avoid the additional refactor (Jason). > --- > sr

Re: [Mesa-dev] [PATCH v2 3/5] i965/clear: Remove an early return in fast_clear_depth

2018-04-25 Thread Rafael Antognolli
On Wed, Apr 25, 2018 at 11:40:15AM -0700, Nanley Chery wrote: > On Wed, Apr 25, 2018 at 11:30:14AM -0700, Rafael Antognolli wrote: > > On Tue, Apr 24, 2018 at 05:48:44PM -0700, Nanley Chery wrote: > > > Reduce complexity and allow the next patch to delete some code. With > &

Re: [Mesa-dev] [PATCH] Intel: Add a Kaby Lake PCI ID

2018-04-25 Thread Rafael Antognolli
And pushed. Thanks, Rafael On Wed, Apr 25, 2018 at 09:49:45AM -0700, Rafael Antognolli wrote: > This patch is > > Reviewed-by: Rafael Antognolli > > On Wed, Apr 25, 2018 at 09:23:04AM -0700, matthew.s.atw...@intel.com wrote: > > From: Matt Atwood > > > > v2:

Re: [Mesa-dev] [PATCH v2 4/5] i965/clear: Simplify updating the indirect depth value

2018-04-25 Thread Rafael Antognolli
you don't want to. We can just send a new one later clarifying these points, and we could also update the comment where the resolve happens to clarify that it should only happen to layers not being cleared now. In any case, this patch is a nice cleanup. Reviewed-by: Rafael Antognolli >

Re: [Mesa-dev] [PATCH v2 4/5] i965/clear: Simplify updating the indirect depth value

2018-04-25 Thread Rafael Antognolli
On Wed, Apr 25, 2018 at 02:53:26PM -0700, Nanley Chery wrote: > On Wed, Apr 25, 2018 at 02:26:18PM -0700, Rafael Antognolli wrote: > > On Tue, Apr 24, 2018 at 05:48:45PM -0700, Nanley Chery wrote: > > > Determine the predicate for updating the indirect depth value in the > &g

Re: [Mesa-dev] [PATCH v2 4/5] i965/clear: Simplify updating the indirect depth value

2018-04-26 Thread Rafael Antognolli
On Thu, Apr 26, 2018 at 10:41:37AM -0700, Nanley Chery wrote: > On Wed, Apr 25, 2018 at 08:53:36PM -0400, Jason Ekstrand wrote: > > > > > > On April 25, 2018 20:25:16 Nanley Chery wrote: > > > > On Wed, Apr 25, 2018 at 04:50:11PM -0700, Jason Ekstrand wrote: > > On Tue, Apr 24, 2018 at 5:48 PM,

Re: [Mesa-dev] [PATCH] intel: devinfo: silence coverity warning

2018-05-09 Thread Rafael Antognolli
On Wed, May 09, 2018 at 03:08:03PM +0100, Lionel Landwerlin wrote: > It's just not possible to have a device with no subslices. Reviewed-by: Rafael Antognolli > CID: 1433511 > Signed-off-by: Lionel Landwerlin > --- > src/intel/dev/gen_device_info.c | 1 + > 1 fi

Re: [Mesa-dev] [PATCH v2 1/2] i965: require post sync operation prior to ISP disable

2018-05-09 Thread Rafael Antognolli
In the summary log, you should drop the mention to post sync operation too, and mention stall on pixel scoreboard, right? With that, this and the next patches are Reviewed-by: Rafael Antognolli On Wed, May 09, 2018 at 12:39:51AM +0100, Lionel Landwerlin wrote: > Invalidating the indirect st

[Mesa-dev] [PATCH 2/2] intel/toosl/aubwrite: Always use physical addresses for traces.

2018-08-21 Thread Rafael Antognolli
It looks like we can't rely on the simulator to always translate virtual addresses to physical ones correctly. So let's use physical everywhere. Since our current GGTT maps virtual to physical addresses in a 1:1 way, no further changes are required. Additionally, we have other address spaces not

[Mesa-dev] [PATCH 1/2] intel/tools/aubwrite: Rename "legacy" to "Trace Block".

2018-08-21 Thread Rafael Antognolli
Hopefully it's a little more descriptive, and more accurate. Cc: Lionel Landwerlin --- src/intel/tools/aub_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/tools/aub_write.c b/src/intel/tools/aub_write.c index e92bdaf5ed4..5d59b4ef28a 100644 --- a/src/intel/t

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

2018-08-22 Thread Rafael Antognolli
On Wed, Aug 08, 2018 at 11:11:11PM +0100, Lionel Landwerlin wrote: > On 08/08/18 20:07, Rafael Antognolli wrote: > > 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 > > > t

[Mesa-dev] [RFC PATCH 00/14] Do not use userptr in anv if softpin is available.

2018-12-07 Thread Rafael Antognolli
ge (adding new tests for some new cases we have now), but the series seems reasonable imho to start getting some review already. Cc: Jason Ekstrand Rafael Antognolli (14): anv/tests: Fix block_pool_no_free test. anv/allocator: Add anv_state_table. anv/allocator: Use anv_state_table on

[Mesa-dev] [RFC PATCH 06/14] anv/allocator: Add getters for anv_block_pool.

2018-12-07 Thread Rafael Antognolli
We will need specially the anv_block_pool_map, to find the map relative to some BO that is not at the start of the block pool. --- src/intel/vulkan/anv_allocator.c | 23 --- src/intel/vulkan/anv_batch_chain.c | 5 +++-- src/intel/vulkan/anv_private.h | 7 +++ src/in

[Mesa-dev] [RFC PATCH 13/14] anv/allocator: Add padding information.

2018-12-07 Thread Rafael Antognolli
It's possible that we still have some space left in the block pool, but we try to allocate a state larger than that state. This means such state would start somewhere within the range of the old block_pool, and end after that range, within the range of the new size. That's fine when we use userptr

[Mesa-dev] [RFC PATCH 11/14] anv: Remove some asserts.

2018-12-07 Thread Rafael Antognolli
They won't be true anymore once we add support for multiple BOs with non-userptr. --- src/intel/vulkan/genX_gpu_memcpy.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c index 1bee1c6dc17..e20179fa675 100644 --- a/src/in

[Mesa-dev] [RFC PATCH 05/14] anv/allocator: Remove usage of anv_free_list.

2018-12-07 Thread Rafael Antognolli
Maybe we should already rename anv_free_list2 -> anv_free_list since the old one is gone. --- src/intel/vulkan/anv_allocator.c | 55 src/intel/vulkan/anv_private.h | 11 --- 2 files changed, 66 deletions(-) diff --git a/src/intel/vulkan/anv_allocator.c b/src

[Mesa-dev] [RFC PATCH 01/14] anv/tests: Fix block_pool_no_free test.

2018-12-07 Thread Rafael Antognolli
The test was checking whether -1 was smaller than an unsigned int, which is always false. So it was exiting early and never running until the end, since it would reach the condition (thread_max == -1). However, just fixing that is not enough. The test is currently getting the highest block on each

[Mesa-dev] [RFC PATCH 04/14] anv/allocator: Use anv_state_table on back_alloc too.

2018-12-07 Thread Rafael Antognolli
--- src/intel/vulkan/anv_allocator.c | 32 ++-- src/intel/vulkan/anv_private.h | 2 +- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index 5f0458afd77..2171a97970b 100644 --- a/src

[Mesa-dev] [RFC PATCH 07/14] anv: Update usage of block_pool->bo.

2018-12-07 Thread Rafael Antognolli
Change block_pool->bo to be a pointer, and update its usage everywhere. This makes it simpler to switch it later to a list of BOs. --- src/intel/vulkan/anv_allocator.c | 31 +++--- src/intel/vulkan/anv_batch_chain.c | 8 src/intel/vulkan/anv_blorp.c | 2 +

[Mesa-dev] [RFC PATCH 10/14] anv: Add clflush to states.

2018-12-07 Thread Rafael Antognolli
TODO: This is just flushing the entire dynamic states on every execbuf. Maybe it's too much. However, in theory we should be already flushing the states as needed, but I think we didn't hit any bug due to the coherence implied by userptr. --- src/intel/vulkan/anv_batch_chain.c | 4 1 file cha

[Mesa-dev] [RFC PATCH 12/14] anv/allocator: Rework chunk return to the state pool.

2018-12-07 Thread Rafael Antognolli
This commit tries to rework the code that split and returns chunks back to the state pool, while still keeping the same logic. The original code would get a chunk larger than we need and split it into pool->block_size. Then it would return all but the first one, and would split that first one into

[Mesa-dev] [RFC PATCH 09/14] anv: Validate the list of BOs from the block pool.

2018-12-07 Thread Rafael Antognolli
We now have multiple BOs in the block pool, but sometimes we still reference only the first one in some instructions, and use relative offsets in others. So we must be sure to add all the BOs from the block pool to the validation list when submitting commands. --- src/intel/vulkan/anv_batch_chain.

[Mesa-dev] [RFC PATCH 02/14] anv/allocator: Add anv_state_table.

2018-12-07 Thread Rafael Antognolli
Add a structure to hold anv_states. This table will initially be used to recicle anv_states, instead of relying on a linked list implemented in GPU memory. Later it could be used so that all anv_states just point to the content of this struct, instead of making copies of anv_states everywhere. TOD

[Mesa-dev] [RFC PATCH 14/14] anv/allocator: Add support for non-userptr.

2018-12-07 Thread Rafael Antognolli
If softpin is supported, create new BOs for the required size and add the respective BO maps. The other main change of this commit is that anv_block_pool_map() now returns the map for the BO that the given offset is part of. So there's no block_pool->map access anymore (when softpin is used. --- s

[Mesa-dev] [RFC PATCH 03/14] anv/allocator: Use anv_state_table on anv_state_pool_alloc.

2018-12-07 Thread Rafael Antognolli
Usage of anv_state_table_add is really annoying, see comment on the previous commit. --- src/intel/vulkan/anv_allocator.c | 96 +--- src/intel/vulkan/anv_private.h | 4 +- 2 files changed, 67 insertions(+), 33 deletions(-) diff --git a/src/intel/vulkan/anv_allocator

[Mesa-dev] [RFC PATCH 08/14] anv/allocator: Add support for a list of BOs in block pool.

2018-12-07 Thread Rafael Antognolli
So far we use only one BO (the last one created) in the block pool. When we switch to not use the userptr API, we will need multiple BOs. So add code now to store multiple BOs in the block pool. This has several implications, the main one being that we can't use pool->map as before. For that reaso

Re: [Mesa-dev] [RFC PATCH 06/14] anv/allocator: Add getters for anv_block_pool.

2018-12-10 Thread Rafael Antognolli
On Mon, Dec 10, 2018 at 12:45:00PM -0600, Jason Ekstrand wrote: > On Fri, Dec 7, 2018 at 6:06 PM Rafael Antognolli > wrote: > > We will need specially the anv_block_pool_map, to find the > map relative to some BO that is not at the start of the block pool. > --

Re: [Mesa-dev] [RFC PATCH 12/14] anv/allocator: Rework chunk return to the state pool.

2018-12-10 Thread Rafael Antognolli
On Mon, Dec 10, 2018 at 04:56:40PM -0600, Jason Ekstrand wrote: > On Fri, Dec 7, 2018 at 6:06 PM Rafael Antognolli > wrote: > > This commit tries to rework the code that split and returns chunks back > to the state pool, while still keeping the same logic. > >

Re: [Mesa-dev] [RFC PATCH 12/14] anv/allocator: Rework chunk return to the state pool.

2018-12-11 Thread Rafael Antognolli
On Mon, Dec 10, 2018 at 11:10:02PM -0600, Jason Ekstrand wrote: > > > On Mon, Dec 10, 2018 at 5:48 PM Rafael Antognolli > > wrote: > > On Mon, Dec 10, 2018 at 04:56:40PM -0600, Jason Ekstrand wrote: > > On Fri, Dec 7, 2018 at 6:06 PM Rafael Antogn

Re: [Mesa-dev] [RFC PATCH 10/14] anv: Add clflush to states.

2018-12-11 Thread Rafael Antognolli
e missing some flushes in the states allocated in anv_shader_bin_create(). I added them there and apparently I don't need this patch anymore. > On Fri, Dec 7, 2018 at 6:06 PM Rafael Antognolli > wrote: > > TODO: This is just flushing the entire dynamic states on every exe

Re: [Mesa-dev] [RFC PATCH 09/14] anv: Validate the list of BOs from the block pool.

2018-12-12 Thread Rafael Antognolli
On Mon, Dec 10, 2018 at 01:49:43PM -0600, Jason Ekstrand wrote: > On Fri, Dec 7, 2018 at 6:06 PM Rafael Antognolli > wrote: > > We now have multiple BOs in the block pool, but sometimes we still > reference only the first one in some instructions, and use relative >

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

2018-12-13 Thread Rafael Antognolli
On Wed, Oct 31, 2018 at 04:27:31PM -0700, Kenneth Graunke wrote: > On Wednesday, October 31, 2018 11:15:28 AM PDT Rafael Antognolli wrote: > > 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

Re: [Mesa-dev] [PATCH] intel/blorp: Be more conservative about copying clear colors

2019-01-04 Thread Rafael Antognolli
x27;t remember the details of how, though. Anyway, this looks better, and I assume it doesn't break anything. Reviewed-by: Rafael Antognolli > Fixes: 92eb5bbc68d7 "intel/blorp: Only copy clear color when doing..." > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=10

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

2018-02-20 Thread Rafael Antognolli
don't think it's whitelisted by the kernel either, it's just writable). I'm seeing it being disabled at WaDisable3DMidCmdPreemption, seems to be in effect since commit 5152defe4a53ad15e6d96c422440152302c8abd7. And it's whitelisted by WaEnablePreemptionGranularityContro

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

2018-02-20 Thread Rafael Antognolli
On Tue, Feb 20, 2018 at 08:11:14AM -0800, Rafael Antognolli wrote: > On Fri, Feb 16, 2018 at 06:37:55PM -0800, Ben Widawsky wrote: > > On 18-02-16 13:44:00, Antognolli, Rafael wrote: > > > "This field controls the granularity of the replay mechanism when > > &g

Re: [Mesa-dev] [PATCH v2 02/12] genxml: Preserve fields that share dword space with addresses.

2018-02-20 Thread Rafael Antognolli
On Wed, Jan 24, 2018 at 11:20:07AM +0200, Pohjolainen, Topi wrote: > On Fri, Jan 19, 2018 at 11:54:37AM -0800, Rafael Antognolli wrote: > > Some instructions contain fields that are either an address or a value > > of some type based on the content of other fields, such as clear c

Re: [Mesa-dev] [PATCH] anv: Only copy clear dwords if we're rendering to the first slice

2018-02-21 Thread Rafael Antognolli
Makes sense to me, there's no need to keep copying the clear color for every slice if we only fast clear the first one. Reviewed-by: Rafael Antognolli On Tue, Feb 20, 2018 at 03:08:11PM -0800, Jason Ekstrand wrote: > --- > src/intel/vulkan/genX_cmd_buffer.c | 5 - > 1 f

Re: [Mesa-dev] [PATCH 01/17] intel: Add a preliminary device for Ice Lake

2018-02-21 Thread Rafael Antognolli
My understanding is that this commit is enough to make the driver try to initialize, at least for i965. If that's the case, how about we add something like what was removed by commit bf1577fe0972ae910c071743dc89d261a46c2926 for CNL? It could be either in this commit, or in a commit that precedes t

Re: [Mesa-dev] [PATCH] anv: Don't assert that stencil HiZ clears are single-slice

2018-02-21 Thread Rafael Antognolli
Tested-by: Rafael Antognolli On Wed, Feb 21, 2018 at 01:08:26PM -0800, Jason Ekstrand wrote: > It's true for depth HiZ clears because we only have HiZ on single-slice > images right now. However, for stencil-only clears there is no such > restriction. > --- > src/intel/vulk

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

2018-02-21 Thread Rafael Antognolli
The lower bits seem to have extra fields in every platform but gen8 (even though we don't use them in gen9). So just go ahead and avoid using them for the address. Signed-off-by: Rafael Antognolli Reviewed-by: Topi Pohjolainen --- src/intel/vulkan/anv_image.c

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

2018-02-21 Thread Rafael Antognolli
. Signed-off-by: Rafael Antognolli --- 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 f1b38efed44..bab0ad3d544 100644 --- a

[Mesa-dev] [PATCH v3 05/13] intel/genxml: Add Clear Color struct.

2018-02-21 Thread Rafael Antognolli
The size of the clear color struct (expected by the hardware) is 8 dwords (isl_dev.ss.clear_value_state_size here). But we still need to track the size of the clear color, used when memcopying it to/from the state buffer. For that we keep isl_dev.ss.clear_value_size. Signed-off-by: Rafael

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

2018-02-21 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. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 9 ++

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

2018-02-21 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 Antogno

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

2018-02-21 Thread Rafael Antognolli
Rebase of this series after lots of aux surface changes on anv. Cc: Jason Ekstrand Cc: Jordan Justen Cc: Topi Pohjolainen Rafael Antognolli (13): anv/image: Do not override lower bits of dword. genxml: Preserve fields that share dword space with addresses. intel/genxml: Use a single

[Mesa-dev] [PATCH v3 04/13] intel/isl: Update size of clear color value.

2018-02-21 Thread Rafael Antognolli
later add the struct to the genxml, though it wouldn't really be used for anything else other than calculating this size. [jordan.l.jus...@intel.com: isl_device_init changes] Signed-off-by: Rafael Antognolli Signed-off-by: Jordan Justen --- src/intel/isl/isl.c | 27 ++---

[Mesa-dev] [PATCH v3 13/13] anv: Use clear address for HiZ fast clears too.

2018-02-21 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 --- src/intel/vulkan/anv_device.c | 19 +++ src/intel/vulkan/anv_image.c | 10 +++--- src/intel/vulkan/anv_private.h | 1 + 3 files changed

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

2018-02-21 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. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 16 1 file changed, 16 insertions

[Mesa-dev] [PATCH v3 07/13] intel/blorp: Add suport for fast clear address.

2018-02-21 Thread Rafael Antognolli
On gen10+, if surface->clear_color_addr is present, use it directly intead of copying it to the surface state. Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/intel/bl

[Mesa-dev] [PATCH v3 12/13] anv: Emit the fast clear color address, instead of value.

2018-02-21 Thread Rafael Antognolli
On Gen10+, instead of copying the clear color from the state buffer to the surface state, just use the address of the state buffer in the surface state directly. This way we can avoid the copy from state buffer to surface state. Signed-off-by: Rafael Antognolli --- src/intel/vulkan/anv_image.c

[Mesa-dev] [PATCH v3 09/13] i965/blorp: Update the fast clear color entry buffer.

2018-02-21 Thread Rafael Antognolli
On Gen10, whenever the fast clear color changes, update it on the clear color entry buffer. This allow us to use it directly when emitting the surface state. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_blorp.c | 26 ++ 1 file changed, 26 insertions

[Mesa-dev] [PATCH v3 11/13] i965/surface_state: Silence warning.

2018-02-21 Thread Rafael Antognolli
This warning showed up after aux_bo started being used inside if (use_clear_address) {... But use_clear_address depends on aux_surf being not null, in which case aux_bo would also be set. Make the compiler happy anyway. Signed-off-by: Rafael Antognolli Reviewed-by: Nanley Chery --- src/mesa

[Mesa-dev] [PATCH v3 08/13] i965/miptree: Add space to store the clear value in the aux surface.

2018-02-21 Thread Rafael Antognolli
Similarly to vulkan where we store the clear value in the aux surface, we can do the same in GL. v2: Remove unneeded extra function. v3: Use clear_value_state_size instead of clear_value_size. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 10 ++ 1

Re: [Mesa-dev] [PATCH v3 05/13] intel/genxml: Add Clear Color struct.

2018-02-26 Thread Rafael Antognolli
On Mon, Feb 26, 2018 at 01:07:54PM -0800, Jordan Justen wrote: > On 2018-02-21 13:45:14, Rafael Antognolli wrote: > > The size of the clear color struct (expected by the hardware) is 8 > > dwords (isl_dev.ss.clear_value_state_size here). But we still need to > > track the si

Re: [Mesa-dev] [PATCH v3 05/13] intel/genxml: Add Clear Color struct.

2018-02-27 Thread Rafael Antognolli
On Mon, Feb 26, 2018 at 05:04:37PM -0800, Jason Ekstrand wrote: > On Wed, Feb 21, 2018 at 1:45 PM, Rafael Antognolli > > wrote: > > The size of the clear color struct (expected by the hardware) is 8 > dwords (isl_dev.ss.clear_value_state_size here). But we still need

Re: [Mesa-dev] [PATCH v3 05/13] intel/genxml: Add Clear Color struct.

2018-02-27 Thread Rafael Antognolli
On Tue, Feb 27, 2018 at 11:46:12AM -0800, Jason Ekstrand wrote: > On Tue, Feb 27, 2018 at 9:35 AM, Rafael Antognolli > > wrote: > > On Mon, Feb 26, 2018 at 05:04:37PM -0800, Jason Ekstrand wrote: > > On Wed, Feb 21, 2018 at 1:45 PM, Rafael Antognolli < >

Re: [Mesa-dev] [PATCH v3 12/13] anv: Emit the fast clear color address, instead of value.

2018-02-27 Thread Rafael Antognolli
On Tue, Feb 27, 2018 at 02:58:01PM -0800, Jason Ekstrand wrote: > On Wed, Feb 21, 2018 at 1:45 PM, Rafael Antognolli > > wrote: > > On Gen10+, instead of copying the clear color from the state buffer to > the surface state, just use the address of the state buffer in

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

2018-02-27 Thread Rafael Antognolli
on, Feb 26, 2018 at 1:14 PM, Jordan Justen < > > > jordan.l.jus...@intel.com> > > > > wrote: > > > > > > > > > On 2018-02-21 13:45:15, Rafael Antognolli wrote: > > > > > > + bool use_clear_address; > > > > >

Re: [Mesa-dev] [PATCH 1/4] intel: Split gen_device_info out into libintel_dev

2018-02-28 Thread Rafael Antognolli
On Wed, Feb 28, 2018 at 02:15:19AM -0800, Jordan Justen wrote: > On 2018-02-28 01:58:24, Samuel Iglesias Gonsálvez wrote: > > What is the idea for src/intel/dev/ ? > > > > I'm not against this patch, just asking. > > Ken noticed a lot of duplicate lines in the xml for surface formats. > (Patch 4)

Re: [Mesa-dev] [PATCH libdrm] intel/intel_chipset.h: Sync Cannonlake IDs.

2018-03-05 Thread Rafael Antognolli
This is matching both the kernel and the spec. Reviewed-by: Rafael Antognolli . On Wed, Feb 14, 2018 at 05:42:24PM -0800, Rodrigo Vivi wrote: > Let's sync CNL ids with Spec and kernel. > > Sync with kernel commit '3f43031b1693 ("drm/i915/cnl: > Add Cannonlake PCI

Re: [Mesa-dev] [PATCH 2/4] i965: perf: query topology

2018-03-05 Thread Rafael Antognolli
uint16_t eu_subslice_stride; > + } topology; > + I wonder if such information shouldn't be stored in gen_device_info. But it seems the rest of the OA code seems to be tied to i965 anyways, so I guess this should be fine. In any case, series is: Acked-by: Rafael Antognolli >

[Mesa-dev] [PATCH v4 04/18] intel/genxml: Add Clear Color struct.

2018-03-08 Thread Rafael Antognolli
too (Jason, Jordan) - Add field for Converted Clear Color to gen11 (Jason) - Add clear_color_state_offset to differentiate from clear_value_offset. - Fix all the places where clear_value_size was used. [jordan.l.jus...@intel.com: isl_device_init changes] Signed-off-by: Rafael Antognolli Signed

[Mesa-dev] [PATCH v4 14/18] anv: Add a helper to extract clear color from the attachment.

2018-03-08 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 --- src/intel/vulkan/anv_private.h | 20 src/intel/vulkan/genX_cmd_buffer.c | 14 +- 2 files changed

[Mesa-dev] [PATCH v4 05/18] intel/isl: Add support to emit clear value address.

2018-03-08 Thread Rafael Antognolli
. Signed-off-by: Rafael Antognolli --- 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 2edf0522e32..c50b78d4701 100644 --- a

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

2018-03-08 Thread Rafael Antognolli
order to avoid having both places doing that, I tried to centralize that code in blorp. - Now blorp updates the clear color whenever we are doing a fast clear and have the clear_color_addr field set with a valid buffer. Cc: Jason Ekstrand Cc: Jordan Justen Rafael Antognolli (18): anv

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

2018-03-08 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. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand --- src/in

[Mesa-dev] [PATCH v4 06/18] intel/blorp: Add support for fast clear address.

2018-03-08 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) Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand --- src/intel/blorp/blorp_genX_exec.h | 13 ++---

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

2018-03-08 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 --- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH v4 07/18] intel/blorp: Only copy clear color when doing a resolve.

2018-03-08 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 --- src/intel/blorp/blorp_genX_exec.h | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/intel/blorp

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

2018-03-08 Thread Rafael Antognolli
The lower bits seem to have extra fields in every platform but gen8 (even though we don't use them in gen9). So just go ahead and avoid using them for the address. v4: Use Jason's suggestion for comment explaining the change. Signed-off-by: Rafael Antognolli Reviewed-by: Jaso

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

2018-03-08 Thread Rafael Antognolli
Instead of updating the clear color in anv before a resolve, just let blorp handle that for us during fast clears. Signed-off-by: Rafael Antognolli --- src/intel/vulkan/anv_blorp.c | 69 +++--- src/intel/vulkan/anv_private.h | 6 ++-- src/intel/vulkan

[Mesa-dev] [PATCH v4 16/18] anv: Use clear address for HiZ fast clears too.

2018-03-08 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 --- src/intel/vulkan/anv_device.c | 19 +++ src/intel/vulkan/anv_image.c | 10 +++--- src/intel/vulkan/anv_private.h | 1 + 3 files changed

[Mesa-dev] [PATCH v4 15/18] anv: Emit the fast clear color address, instead of value.

2018-03-08 Thread Rafael Antognolli
helper to extract clear color from attachment (Jason) Signed-off-by: Rafael Antognolli --- src/intel/vulkan/anv_image.c | 17 + src/intel/vulkan/anv_private.h | 5 src/intel/vulkan/genX_cmd_buffer.c | 52 +++--- 3 files changed, 70

[Mesa-dev] [PATCH v4 08/18] intel/blorp: Update clear color state buffer during fast clears.

2018-03-08 Thread Rafael Antognolli
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. Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 48 +++ 1 file changed, 48 insertions(+) diff

[Mesa-dev] [PATCH v4 09/18] i965/miptree: Add space to store the clear value in the aux surface.

2018-03-08 Thread Rafael Antognolli
struct Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 16 src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 16 2 files changed, 32 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri

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

2018-03-08 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 v4 10/18] i965/miptree: Add new BO for clear color.

2018-03-08 Thread Rafael Antognolli
Add an extra BO to store clear color when we receive the aux buffer from the window system. Since we have no control over the aux buffer size in this case, we need the new BO to store only the clear color. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 18

[Mesa-dev] [PATCH v4 11/18] i965/blorp: Add aux_buf variable to simplify code.

2018-03-08 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. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_blorp.

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

2018-03-08 Thread Rafael Antognolli
available. - let core blorp update the clear color, but also update it when we skip a fast clear depth. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_blorp.c | 11 +++ src/mesa/drivers/dri/i965/brw_clear.c | 22 ++ 2 files changed, 33 insertions

[Mesa-dev] [PATCH v4 18/18] intel: Remove use_clear_address flag from isl_surf_fill_state_info.

2018-03-08 Thread Rafael Antognolli
d-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h| 4 src/intel/isl/isl.c | 2 +- src/intel/isl/isl.h | 7 +++ src/intel/isl/isl_surface_state.c| 21 +++-- src/

Re: [Mesa-dev] [PATCH] intel/tools: aubinator: Catch gen11 "enhanced execlist" submission

2018-03-12 Thread Rafael Antognolli
Tested-by: Rafael Antognolli On Fri, Mar 09, 2018 at 04:29:41PM -0800, Scott D Phillips wrote: > Different registers are used for execlist submission in gen11, so > also watch those. This code only watches element zero of the > submit queue, which is all aubdump currently writes. >

[Mesa-dev] [PATCH] intel/compiler: Check for unsupported register sizes.

2018-03-13 Thread Rafael Antognolli
Make sure we don't emit 64 bit types if the hardware doesn't support them. Signed-off-by: Rafael Antognolli Suggested-by: Kenneth Graunke --- src/intel/compiler/brw_reg_type.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/compiler/brw_reg_type.c b/src/inte

Re: [Mesa-dev] [PATCH v4 10/18] i965/miptree: Add new BO for clear color.

2018-03-15 Thread Rafael Antognolli
On Wed, Mar 14, 2018 at 05:26:08PM -0700, Jordan Justen wrote: > What about a subject like this? > > i965/miptree: Add new clear color BO for winsys aux buffers It's definitely better. I'll update it. > On 2018-03-08 08:49:03, Rafael Antognolli wrote: > > Add an e

Re: [Mesa-dev] [PATCH v4 14/18] anv: Add a helper to extract clear color from the attachment.

2018-03-15 Thread Rafael Antognolli
On Thu, Mar 15, 2018 at 12:20:19AM -0700, Jordan Justen wrote: > On 2018-03-08 08:49:07, Rafael Antognolli wrote: > > Extract the code from color_attachment_compute_aux_usage, so we can > > later reuse it to update the clear color state buffer. > > > > Signe

Re: [Mesa-dev] [PATCH 0/3] intel: silence some warnings

2018-03-15 Thread Rafael Antognolli
On Thu, Mar 15, 2018 at 04:49:07PM +, Lionel Landwerlin wrote: > A few trivial compiler warnings we can get rid of :) Trivial review too :) Reviewed-by: Rafael Antognolli > Cheers, > > Lionel Landwerlin (3): > anv: silence unused function warning on gen11 > i9

[Mesa-dev] [PATCH v2 2/4] anv/gen10: Enable object level preemption.

2018-03-15 Thread Rafael Antognolli
Set bit when initializing a device. Signed-off-by: Rafael Antognolli --- src/intel/vulkan/genX_state.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index c6e54046910..3b5ac10b4cd 100644 --- a/src/intel

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

2018-03-15 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/4] intel/genxml: Add register for object preemption.

2018-03-15 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 2d36957c2a5..f6773074a61

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

2018-03-15 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/4] Enable object level preemption

2018-03-15 Thread Rafael Antognolli
the workarounds for anv too in the future, but I thought I could send these now while I figure out how to do that in vulkan. Cc: Ben Widawsky Rafael Antognolli (4): intel/genxml: Add register for object preemption. anv/gen10: Enable object level preemption. i965/gen10+: Enable object level

Re: [Mesa-dev] [PATCH] intel/tools: aubinator: Catch gen11 "enhanced execlist" submission

2018-03-15 Thread Rafael Antognolli
n we get the write to the control register, decode the context. It makes sense, but maybe in the future it might be better to split this into two separate functions, one for elsp and another one for elsq. Either way, for now this is: Reviewed-by: Rafael Antognolli > - uint8_t *pphwsp

Re: [Mesa-dev] [PATCH 2/2] intel/compiler: Use gen_get_device_info() in test_eu_validate

2018-03-16 Thread Rafael Antognolli
ot;) Oh, it makes sense to fail, but I don't know why I didn't see any error on CI when I submitted this. Is it part of some test not covered by percheckin? Either way, both patches are Reviewed-by: Rafael Antognolli > --- > src/intel/Makefile.compiler.am | 1 + &g

Re: [Mesa-dev] [PATCH v2 00/12] Use clear color address in surface state.

2018-01-24 Thread Rafael Antognolli
On Wed, Jan 24, 2018 at 11:29:12AM +0200, Pohjolainen, Topi wrote: > On Fri, Jan 19, 2018 at 11:54:35AM -0800, Rafael Antognolli wrote: > > Second version of this series, with (hopefully) full support for this in > > Vulkan. > > I started reading this but realized quickly th

[Mesa-dev] [PATCH 3/3] i965/gen10: Re-enable push constants.

2018-01-24 Thread Rafael Antognolli
The GPU hang caused by push constants is apparently fixed, so let's enable them again. Signed-off-by: Rafael Antognolli Cc: "18.0" --- src/intel/compiler/brw_fs.cpp | 9 - 1 file changed, 9 deletions(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/b

[Mesa-dev] [PATCH 2/3] anv/gen10: Ignore push constant packets during context restore.

2018-01-24 Thread Rafael Antognolli
Similar to the GL driver, ignore 3DSTATE_CONSTANT_* packets when doing a context restore. Signed-off-by: Rafael Antognolli Cc: Jason Ekstrand Cc: "18.0" --- src/intel/vulkan/anv_private.h | 1 + src/intel/vulkan/genX_cmd_buffer.c | 47 +

[Mesa-dev] [PATCH 1/3] i965/gen10: Ignore push constant packets during context restore.

2018-01-24 Thread Rafael Antognolli
GPU hangs on CNL. The (partial) solution to this problem so far was to entirely disable push constants on this platform. Signed-off-by: Rafael Antognolli Cc: Kenneth Graunke Cc: "18.0" --- src/mesa/drivers/dri/i965/brw_pipe_control.c | 49 +++ src/m

Re: [Mesa-dev] [PATCH 2/3] anv/gen10: Ignore push constant packets during context restore.

2018-01-25 Thread Rafael Antognolli
On Wed, Jan 24, 2018 at 05:08:54PM -0800, Jason Ekstrand wrote: > On Wed, Jan 24, 2018 at 4:33 PM, Rafael Antognolli > > wrote: > > Similar to the GL driver, ignore 3DSTATE_CONSTANT_* packets when doing a > context restore. > > Signed-off-by: Rafael Ant

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

2018-01-26 Thread Rafael Antognolli
Fixes: ca19ee33d7d39cb89d948b1c983763065975ce5b Signed-off-by: Rafael Antognolli Cc: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_pipe_control.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_pipe_control.c b/src/mesa/drivers

<    1   2   3   4   5   6   >