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

2018-01-19 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 | 11 --- src/intel/vulkan/anv_private.h | 1 + 3 files changed

Re: [Mesa-dev] [PATCH 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-04 Thread Rafael Antognolli
Hi Anuj, On Mon, Oct 02, 2017 at 04:07:57PM -0700, Anuj Phogat wrote: > WaFlushHangWhenNonPipelineStateAndMarkerStalled goes along > with WaSampleOffsetIZ. Both recommends the same. > > Cc: mesa-sta...@lists.freedesktop.org > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_cont

Re: [Mesa-dev] [PATCH 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-04 Thread Rafael Antognolli
On Mon, Oct 02, 2017 at 07:39:04PM -0700, Jason Ekstrand wrote: > On Mon, Oct 2, 2017 at 4:07 PM, Anuj Phogat wrote: > > WaFlushHangWhenNonPipelineStateAndMarkerStalled goes along > with WaSampleOffsetIZ. Both recommends the same. > > Cc: mesa-sta...@lists.freedesktop.org > Signe

Re: [Mesa-dev] [PATCH V2 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-13 Thread Rafael Antognolli
a...@lists.freedesktop.org > Cc: Jason Ekstrand > Cc: Rafael Antognolli > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_context.h| 2 + > src/mesa/drivers/dri/i965/brw_defines.h| 1 + > src/mesa/drivers/dri/i965/brw_pipe_control.c

Re: [Mesa-dev] [PATCH 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-13 Thread Rafael Antognolli
On Wed, Oct 04, 2017 at 09:25:57AM -0700, Rafael Antognolli wrote: > Hi Anuj, > > On Mon, Oct 02, 2017 at 04:07:57PM -0700, Anuj Phogat wrote: > > WaFlushHangWhenNonPipelineStateAndMarkerStalled goes along > > with WaSampleOffsetIZ. Both recommends the same.

Re: [Mesa-dev] [PATCH v3 6/7] i965: Add support for xfb overflow query on conditional render.

2017-01-09 Thread Rafael Antognolli
On Thu, Jan 05, 2017 at 11:22:51AM -0800, Kenneth Graunke wrote: > On Tuesday, December 13, 2016 2:50:58 PM PST Rafael Antognolli wrote: > > Enable the use of a transform feedback overflow query with > > glBeginConditionalRender. The render commands will only execute if the > &g

Re: [Mesa-dev] [PATCH v3 5/7] i965: Add support for xfb overflow on query buffer objects.

2017-01-09 Thread Rafael Antognolli
Ugh, will update the patch with these changes. Thanks! Rafael On Thu, Jan 05, 2017 at 11:17:51AM -0800, Kenneth Graunke wrote: > On Tuesday, December 13, 2016 2:50:57 PM PST Rafael Antognolli wrote: > > Enable getting the results of a transform feedback overflow query with a > >

Re: [Mesa-dev] [PATCH 1/2] i965: Enable predicate support on gen >= 8.

2017-01-09 Thread Rafael Antognolli
On Thu, Jan 05, 2017 at 11:29:39AM -0800, Kenneth Graunke wrote: > Predication needs cmd parser only on gen7. For newer platforms, it > should be available without it. > > Signed-off-by: Rafael Antognolli > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i9

[Mesa-dev] [PATCH v4 0/6] Add support for ARB_transform_feedback_overflow_query.

2017-01-20 Thread Rafael Antognolli
MI_MATH is not available. The series is available on github here: https://github.com/rantogno/mesa/tree/review/overflow_query-v04 There are also piglit tests available for it here: https://github.com/rantogno/piglit/tree/review/overflow_query-v05 Regards, Rafael Rafael Antognolli (6): mesa: Add

[Mesa-dev] [PATCH v4 3/6] i965: add plumbing for ARB_transform_feedback_overflow_query.

2017-01-20 Thread Rafael Antognolli
-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_queryobj.c | 2 + src/mesa/drivers/dri/i965/gen6_queryobj.c | 73 +++ 2 files changed, 75 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index

[Mesa-dev] [PATCH v4 5/6] i965: Add support for xfb overflow query on conditional render.

2017-01-20 Thread Rafael Antognolli
) - fallback to software conditional rendering when MI_MATH is not available (Kenneth) Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_conditional_render.c | 73 -- 1 file changed, 55 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri

[Mesa-dev] [PATCH v4 1/6] mesa: Add types for ARB_transform_feedback_oveflow_query.

2017-01-20 Thread Rafael Antognolli
Add some basic types and storage for the queries of this extension. v2: - update date of extension (Kenneth) Signed-off-by: Rafael Antognolli --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 5 + 2 files changed, 6 insertions(+) diff --git a/src/mesa/main

[Mesa-dev] [PATCH v4 2/6] mesa: Track transform feedback overflow query objects.

2017-01-20 Thread Rafael Antognolli
Also update checks on conditional rendering. Signed-off-by: Rafael Antognolli --- src/mesa/main/condrender.c | 4 +++- src/mesa/main/queryobj.c| 21 + src/mesa/state_tracker/st_cb_queryobj.c | 6 ++ 3 files changed, 30 insertions(+), 1

[Mesa-dev] [PATCH v4 6/6] i965/gen6+: Enable arb_transform_feedback_overflow_query.

2017-01-20 Thread Rafael Antognolli
This extension adds new query types which can be used to detect overflow of transform feedback buffers. The new query types are also accepted by conditional rendering commands. v3: - s/gen7+/gen6+/ in the relnotes (Jordan Justen) Signed-off-by: Rafael Antognolli --- docs/features.txt

Re: [Mesa-dev] [PATCH v4 6/6] i965/gen6+: Enable arb_transform_feedback_overflow_query.

2017-01-20 Thread Rafael Antognolli
On Fri, Jan 20, 2017 at 09:53:27AM -0800, Rafael Antognolli wrote: > This extension adds new query types which can be used to detect overflow > of transform feedback buffers. The new query types are also accepted by > conditional rendering commands. > > v3: > - s/gen7+/gen6

[Mesa-dev] [PATCH v4 4/6] i965: Add support for xfb overflow on query buffer objects.

2017-01-20 Thread Rafael Antognolli
load_overflow_data_to_cs_gprs (Kenneth) Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_context.h | 3 + src/mesa/drivers/dri/i965/hsw_queryobj.c | 112 +++ 2 files changed, 115 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src

Re: [Mesa-dev] [PATCH 0/7] i965: Implement EGL_ANDROID_native_fence_sync

2017-01-20 Thread Rafael Antognolli
I have tested this series with the branches that you mentioned, and with piglit with the patches from my own branch: https://github.com/rantogno/piglit/tree/review/fences-v02 Everything seems to work fine. You can add: Tested-by: Rafael Antognolli I also have gone through these patches

Re: [Mesa-dev] [PATCH 0/7] i965: Implement EGL_ANDROID_native_fence_sync

2017-01-27 Thread Rafael Antognolli
On Thu, Jan 26, 2017 at 07:18:24PM -0800, Ben Widawsky wrote: > On 17-01-23 15:32:32, Chad Versace wrote: > > On Fri 20 Jan 2017, Rafael Antognolli wrote: > > > I have tested this series with the branches that you mentioned, and with > > > piglit with the

[Mesa-dev] [PATCH 2/2] genxml: Make BLEND_STATE command support variable length array.

2017-04-07 Thread Rafael Antognolli
6 and gen7 we set length to 0, since it only contains BLEND_STATE_ENTRY's, and no other data. With this change, we also change the code for blorp and anv to emit only the needed BLEND_STATE_ENTRY's, instead of always emitting 16 dwords on gen6-7 and 17 dwords on gen8+. Signed-off-by: Ra

[Mesa-dev] [PATCH 1/2] genxml: Fix python crash when no dwords are found.

2017-04-07 Thread Rafael Antognolli
If the 'dwords' dict is empty, max(dwords.keys()) throws an exception. This case could happen when we have an instruction that is only an array of other structs, with variable length. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 2 +- 1 file changed, 1

Re: [Mesa-dev] [PATCH 2/2] genxml: Make BLEND_STATE command support variable length array.

2017-04-12 Thread Rafael Antognolli
gt; > > > > > Reviewed-by: Lionel Landwerlin > > > > > > On 07/04/17 17:52, Rafael Antognolli wrote: > > > > We need to emit BLEND_STATE, which size is 1 + 2 * nr_draw_buffers > > > > dwords (on gen8+), but the BLEND_STATE struct

Re: [Mesa-dev] [PATCH 2/2] genxml: Make BLEND_STATE command support variable length array.

2017-04-12 Thread Rafael Antognolli
On Wed, Apr 12, 2017 at 10:45:58AM -0700, Jason Ekstrand wrote: > On Fri, Apr 7, 2017 at 9:52 AM, Rafael Antognolli > > wrote: > > We need to emit BLEND_STATE, which size is 1 + 2 * nr_draw_buffers > dwords (on gen8+), but the BLEND_STATE struct length is always 17. B

[Mesa-dev] [PATCH] intel/aubinator: Correctly read variable length structs.

2017-04-18 Thread Rafael Antognolli
oup (count="0") and store the offset of the last entry added to the struct when reading the xml. When finally reading the aubdump file, we check the size of the group and whether we have variable number of elements, and in that case, reuse the last field to add the remaining elements

[Mesa-dev] [PATCH v02 3/3] genxml: Make BLEND_STATE command support variable length array.

2017-04-18 Thread Rafael Antognolli
Use designated initializers on blorp and remove 0 from initialization (Jason) - Default entries to disabled on Vulkan (Jason) - Rebase code. Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 37 -- src/intel/genxml/gen6.xml | 4 +- src/intel/

[Mesa-dev] [PATCH v02 2/3] genxml: Fix python crash when no dwords are found.

2017-04-18 Thread Rafael Antognolli
ength to 0 if dwords is empty, and do not declare dw Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py ind

[Mesa-dev] [PATCH v02 1/3] genxml: Remove unused parameter.

2017-04-18 Thread Rafael Antognolli
'start' parameter from Group.emit_pack_function() is useless. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py ind

[Mesa-dev] [PATCH 27/35] i965: Port gen7+ 3DSTATE_TE to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_TE on Gen7+ using brw_batch_emit helper. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 1 +- src/mesa/drivers/dri/i965/gen7_te_state.c | 67 + src/mesa/drivers/dri

[Mesa-dev] [PATCH 30/35] i965: Port gen6+ emit vertices code to genxml.

2017-04-19 Thread Rafael Antognolli
The original brw_emit_vertices code is left intact for now, as it is still used by gen4-5. We are bringing all the code to genX_state_upload.c, and gen4-5 state emitting code is left on a separate file. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 1

[Mesa-dev] [PATCH 29/35] i965: Port push constant code to genxml.

2017-04-19 Thread Rafael Antognolli
The following states are ported on this patch: - gen6_gs_push_constants - gen6_vs_push_constants - gen6_wm_push_constants - gen7_tes_push_constants Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 4 +- src/mesa/drivers/dri/i965/brw_state.h

[Mesa-dev] [PATCH 33/35] genxml: Normalize xml for 3DSTATE_CC_STATE_POINTERS.

2017-04-19 Thread Rafael Antognolli
- "COLOR_CALC_STATE Change" -> "Color Calc State Pointer Valid" - "Pointer to COLOR_CALC_STATE" -> "Color Calc State Pointer" - "BackFace" -> "Backface" Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exe

[Mesa-dev] [PATCH 09/35] i965: Port Gen6+ 3DSTATE_CLIP state to genxml.

2017-04-19 Thread Rafael Antognolli
Emit clip state on Gen6+ using brw_batch_emit helper, using pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 1 +- src/mesa/drivers/dri/i965/gen6_clip_state.c | 139 +-- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 28/35] i965: Port gen6+ 3DSTATE_SCISSOR_STATE_POINTERS to use genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_SCISSOR_STATE_POINTERS using brw_batch_emit, and pack the scissor states using GENX(SCISSOR_RECT_pack), generated from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 1 +- src/mesa/drivers/dri/i965/genX_state_upload.c | 87

[Mesa-dev] [PATCH 26/35] i965: Port gen6+ blend state code to genxml.

2017-04-19 Thread Rafael Antognolli
Upload blend states using GENX(BLEND_STATE_ENTRY_pack), generated from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 3 +- src/mesa/drivers/dri/i965/gen6_cc.c | 216

[Mesa-dev] [PATCH 12/35] i965: Port gen6+ 3DSTATE_SF to genxml.

2017-04-19 Thread Rafael Antognolli
Emit sf state on Gen6+ using brw_batch_emit helper, using pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 3 +- src/mesa/drivers/dri/i965/brw_util.h | 25 +- src/mesa/drivers/dri/i965/gen6_sf_state.c | 190

[Mesa-dev] [PATCH 34/35] i965: Port gen6+ 3DSTATE_CC_STATE_POINTERS state to genxml.

2017-04-19 Thread Rafael Antognolli
Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 1 +- src/mesa/drivers/dri/i965/gen6_cc.c | 90 + src/mesa/drivers/dri/i965/genX_state_upload.c | 53 +++- 4 files

[Mesa-dev] [PATCH 11/35] genxml: Update xml for 3DSTATE_SF.

2017-04-19 Thread Rafael Antognolli
- Normalize "Anti-Aliasing Enable" - Add "Multisample Rasterization Mode" constants - Rename "Use Point Width on Vertex" to "Vertex" - Rename "Use Point Width from State" to "State" Signed-off-by: Rafael Antognolli --- src/intel/gen

[Mesa-dev] [PATCH 20/35] genxml: Make "Reorder Mode" fields consistent.

2017-04-19 Thread Rafael Antognolli
From: Kenneth Graunke Both GS and SOL have these fields. Some were ReorderEnable = true, some were ReorderMode = REORDER_TRAILING, and some were just TRAILING. Signed-off-by: Kenneth Graunke --- src/intel/genxml/gen6.xml| 5 - src/intel/genxml/gen7.xml| 5 - src/intel/

[Mesa-dev] [PATCH 01/35] intel/aubinator: Correctly read variable length structs.

2017-04-19 Thread Rafael Antognolli
oup (count="0") and store the offset of the last entry added to the struct when reading the xml. When finally reading the aubdump file, we check the size of the group and whether we have variable number of elements, and in that case, reuse the last field to add the remaining elements

[Mesa-dev] [PATCH 06/35] i965: Get real per-gen atom lists.

2017-04-19 Thread Rafael Antognolli
From: Kenneth Graunke Build libi965_gen[4,5].la too, since they contain the declaration for gen[4,5]_init_atoms. Remove gen4 and 5 init_atoms from genX_state_upload. Signed-off-by: Kenneth Graunke Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.am | 8

[Mesa-dev] [PATCH 04/35] genxml: Make BLEND_STATE command support variable length array.

2017-04-19 Thread Rafael Antognolli
Use designated initializers on blorp and remove 0 from initialization (Jason) - Default entries to disabled on Vulkan (Jason) - Rebase code. Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 37 -- src/intel/genxml/gen6.xml | 4 +- src/intel/

[Mesa-dev] [PATCH 17/35] i965: Port gen7+ 3DSTATE_PS to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_PS on Gen7+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 2 +- src/mesa/drivers/dri/i965/gen7_wm_state.c | 137 +--- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 08/35] genxml: Rename clip enable property.

2017-04-19 Thread Rafael Antognolli
There are two variants: - Clip Enable - CLIP Enable (on gen6) Rename everything to Clip Enable. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen6.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml index

[Mesa-dev] [PATCH 05/35] i965: Add genxml related plumbing in a new genX_state_upload.c file.

2017-04-19 Thread Rafael Antognolli
From: Kenneth Graunke Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/Makefile.sources| 15 ++- src/mesa/drivers/dri/i965/genX_state_upload.c | 109 +++- 2 files changed, 119 insertions(+), 5 deletions(-) create mode 100644 src/mesa/drivers/dri/i965/genX_state

[Mesa-dev] [PATCH 19/35] i965: Port gen8+ 3DSTATE_PS_EXTRA to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_PS_EXTRA on Gen8+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 10 +- src/mesa/drivers/dri/i965/gen8_ps_state.c

[Mesa-dev] [PATCH 02/35] genxml: Remove unused parameter.

2017-04-19 Thread Rafael Antognolli
'start' parameter from Group.emit_pack_function() is useless. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py ind

[Mesa-dev] [PATCH 25/35] i965: Port gen7+ state emitting code to genxml.

2017-04-19 Thread Rafael Antognolli
Ported in this patch: - 3DSTATE_DS - 3DSTATE_GS - 3DSTATE_HS - 3DSTATE_VIEWPORT_STATE_POINTERS_SF_CL Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources | 6 +- src/mesa/drivers/dri/i965/brw_state.h | 18 +- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 07/35] i965: Port Gen6+ DEPTH_STENCIL state to genxml.

2017-04-19 Thread Rafael Antognolli
From: Kenneth Graunke This emits 3DSTATE_WM_DEPTH_STENCIL on Gen8+ or DEPTH_STENCIL_STATE (and the relevant pointer packets) on Gen6-7.5 from a single function. Signed-off-by: Kenneth Graunke Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 2 +- src

[Mesa-dev] [PATCH 14/35] i965: Remove calculate_attr_overrides.

2017-04-19 Thread Rafael Antognolli
This function now lives inside genX_state_upload.c. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources | 1 +- src/mesa/drivers/dri/i965/brw_state.h | 8 +- src/mesa/drivers/dri/i965/gen6_sf_state.c | 265 +-- 3 files changed, 274

[Mesa-dev] [PATCH 22/35] i965: Port gen6+ 3DSTATE_VS to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_VS on Gen6+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 2 +- src/mesa/drivers/dri/i965/brw_state.h | 3 +- src/mesa/drivers/dri/i965/gen6_vs_state.c | 113

[Mesa-dev] [PATCH 16/35] i965: Port gen7+ 3DSTATE_SOL to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_SOL on Gen7+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 6 +- src/mesa/drivers/dri/i965/gen7_sol_state.c| 307

[Mesa-dev] [PATCH 03/35] genxml: Fix python crash when no dwords are found.

2017-04-19 Thread Rafael Antognolli
ength to 0 if dwords is empty, and do not declare dw Signed-off-by: Rafael Antognolli Reviewed-by: Dylan Baker --- src/intel/genxml/gen_pack_header.py | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/intel/genxml/gen_pack_header.py b/src/in

[Mesa-dev] [PATCH 13/35] i965: Port Gen6+ 3DSTATE_SBE state to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_SBE on Gen6+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 2 +- src/mesa/drivers/dri/i965/brw_state.h | 2 +- src/mesa/drivers/dri/i965/gen7_sf_state.c | 109

[Mesa-dev] [PATCH 15/35] genxml: Add alias for MOCS.

2017-04-19 Thread Rafael Antognolli
Use an alias, so we can set the same value as the #define's. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen8.xml | 1 + src/intel/genxml/gen9.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml index 4985342..f4bde85 1

[Mesa-dev] [PATCH 18/35] i965: Port gen6+ 3DSTATE_WM to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_WM on Gen6+ using brw_batch_emit helper, that uses pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources| 1 +- src/mesa/drivers/dri/i965/brw_state.h | 14 +- src/mesa/drivers/dri/i965/gen6_wm_state.c | 219

[Mesa-dev] [PATCH 31/35] genxml: Normalize xml for 3DSTATE_MULTISAMPLE.

2017-04-19 Thread Rafael Antognolli
Name the options to "Pixel Location": - PIXLOC_CENTER -> CENTER - PIXLOC_UL_CORNER -> UL_CORNER Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 4 +--- src/intel/genxml/gen6.xml | 4 ++-- src/intel/genxml/gen7.xml | 4 ++-- src/in

[Mesa-dev] [PATCH 00/35] This series converts part of the state emitting code to use genxml

2017-04-19 Thread Rafael Antognolli
wip/brwxml Feedback is welcome. Kenneth Graunke (4): i965: Add genxml related plumbing in a new genX_state_upload.c file. i965: Get real per-gen atom lists. i965: Port Gen6+ DEPTH_STENCIL state to genxml. genxml: Make "Reorder Mode" fields consistent. Rafael Antognolli (31): intel/

[Mesa-dev] [PATCH 23/35] genxml: Clip guardbands are float, not int.

2017-04-19 Thread Rafael Antognolli
This makes genxml create the right struct types, and generate the right batch commands. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen6.xml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml index a12e22c

[Mesa-dev] [PATCH 35/35] i965: Port gen6+ state emitting code to genxml.

2017-04-19 Thread Rafael Antognolli
On this patch, we port: - brw_polygon_stipple - brw_polygon_stipple_offset - brw_line_stipple - brw_drawing_rect The original code is still left behind because it is being used by gen4-5. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/Makefile.sources | 1

[Mesa-dev] [PATCH 21/35] genxml: 3DSTATE_VS rename Function Enable to Enable.

2017-04-19 Thread Rafael Antognolli
Signed-off-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 2 +- src/intel/genxml/gen6.xml | 2 +- src/intel/genxml/gen7.xml | 2 +- src/intel/genxml/gen75.xml| 2 +- src/intel/genxml/gen8.xml | 2 +- src/intel/genxml/gen9.xml | 2 +- src

[Mesa-dev] [PATCH 10/35] i965: Port Gen8+ 3DSTATE_RASTER state to genxml.

2017-04-19 Thread Rafael Antognolli
Emits 3DSTATE_RASTER from genX_state_upload.c using pack structs from genxml. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_state.h | 1 +- src/mesa/drivers/dri/i965/gen8_sf_state.c | 125 +--- src/mesa/drivers/dri/i965/genX_state_upload.c

[Mesa-dev] [PATCH 24/35] genxml: Rename "Function Enable" to "Enable".

2017-04-19 Thread Rafael Antognolli
Rename that field name on genxml for: - 3DSTATE_GS - gen6+ - 3DSTATE_DS - gen7+ - 3DSTATE_HS - gen7+ Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen6.xml| 2 +- src/intel/genxml/gen7.xml| 6 +++--- src/intel/genxml/gen75.xml | 6 +++--- src/intel/genxml

[Mesa-dev] [PATCH 32/35] i965: Port gen6+ multisample state emitting code to genxml.

2017-04-19 Thread Rafael Antognolli
Emit 3DSTATE_MULTISAMPLE using brw_batch_emit. Signed-off-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_context.h| 9 +- src/mesa/drivers/dri/i965/brw_state.h | 2 +- src/mesa/drivers/dri/i965/gen6_multisample_state.c | 6 +- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] intel/aubinator: Use int to store getopt_long flags.

2018-06-12 Thread Rafael Antognolli
getopt_long flag parameter is an int pointer, so if we use bool to store those values, when getopt_long writes to one of them, it might end up overwriting the next one. --- src/intel/tools/aubinator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/tools/aubinator

Re: [Mesa-dev] [PATCH] intel/aubinator: Use int to store getopt_long flags.

2018-06-12 Thread Rafael Antognolli
On Tue, Jun 12, 2018 at 12:23:17PM -0700, Rafael Antognolli wrote: > getopt_long flag parameter is an int pointer, so if we use bool to store > those values, when getopt_long writes to one of them, it might end up > overwriting the next one. I forgot to mention in the commit message tha

Re: [Mesa-dev] [PATCH] intel/compiler: Properly consider UBO loads that cross 32B boundaries.

2018-06-12 Thread Rafael Antognolli
component of the nir_intrinsic_load_ubo instruction (which apparently supports multiple components). So yeah, this makes sense to me. Take this review with a grain of salt (assuming what I wrote above is correct), but this looks simple enough. So it is Reviewed-by: Rafael Antognolli >

Re: [Mesa-dev] [PATCH] intel/compiler: Properly consider UBO loads that cross 32B boundaries.

2018-06-12 Thread Rafael Antognolli
On Tue, Jun 12, 2018 at 01:38:03PM -0700, Rafael Antognolli wrote: > On Mon, Jun 11, 2018 at 02:01:49PM -0700, Kenneth Graunke wrote: > > The UBO push analysis pass incorrectly assumed that all values would fit > > within a 32B chunk, and only recorded a bit for the 32B chunk con

[Mesa-dev] [PATCH 1/2] i965: Rework push constants packets creation.

2018-06-12 Thread Rafael Antognolli
There's a lot of logic on the function that builds the push constants packets. It reads both the push constants and the UBOs, and tries to account for some hardware workarounds. This patch splits the logic to gather the buffers into a function, and the code to emit the packet to another one, where

[Mesa-dev] [PATCH 2/2] anv: Rework push constant packets.

2018-06-12 Thread Rafael Antognolli
Copying from the i965 change: There's a lot of logic on the function that builds the push constants packets. It reads both the push constants and the UBOs, and tries to account for some hardware workarounds. This patch splits the logic to gather the buffers into a function, and the code to emit t

[Mesa-dev] [PATCH 1/3] intel/genxml: Add bitmasks for CS_DEBUG_MODE2/INSTPM.

2018-06-15 Thread Rafael Antognolli
--- src/intel/genxml/gen10.xml | 4 src/intel/genxml/gen11.xml | 4 src/intel/genxml/gen6.xml | 5 + src/intel/genxml/gen7.xml | 5 + src/intel/genxml/gen75.xml | 5 + src/intel/genxml/gen8.xml | 5 + src/intel/genxml/gen9.xml | 4 7 files changed, 32 insertions(

[Mesa-dev] [PATCH 3/3] anv: Disable constant buffer 0 being relative.

2018-06-15 Thread Rafael Antognolli
If we are on gen8+ and have context isolation support, just make that constant buffer address be absolute, so we can use it for push UBOs too. --- src/intel/vulkan/anv_device.c | 5 - src/intel/vulkan/anv_private.h | 1 + src/intel/vulkan/genX_state.c | 27 +++ 3 fi

[Mesa-dev] [PATCH 2/3] anv/device: Check for kernel support of context isolation.

2018-06-15 Thread Rafael Antognolli
--- src/intel/vulkan/anv_device.c | 3 +++ src/intel/vulkan/anv_private.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 63d5876edb1..d1637f097e8 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device

Re: [Mesa-dev] [PATCH 3/3] anv: Disable constant buffer 0 being relative.

2018-06-15 Thread Rafael Antognolli
On Fri, Jun 15, 2018 at 01:21:17PM -0700, Jason Ekstrand wrote: > On Fri, Jun 15, 2018 at 1:12 PM, Rafael Antognolli > > wrote: > > If we are on gen8+ and have context isolation support, just make that > constant buffer address be absolute, so we can use it

[Mesa-dev] [PATCH v2 3/3] anv: Disable constant buffer 0 being relative.

2018-06-15 Thread Rafael Antognolli
If we are on gen8+ and have context isolation support, just make that constant buffer address be absolute, so we can use it for push UBOs too. v2: Do not duplicate constant_buffer_0_is_relative flag (Jason) --- src/intel/vulkan/anv_device.c | 3 ++- src/intel/vulkan/genX_state.c | 27 +++

Re: [Mesa-dev] [PATCH 2/9] intel/tools/aubinator: aubinate ppgtt aubs

2018-06-18 Thread Rafael Antognolli
Hi Lionel, I've been going through the patch and I think the content so far is mostly fine. However, it has a lot of things going on for a single patch IMHO. I see changes for the execution list submission port, ppgtt, using the RB tree for ggtt too, etc... It definitely make it more painful to r

Re: [Mesa-dev] [PATCH 7/9] intel: aubinator: move address masking

2018-06-18 Thread Rafael Antognolli
Patches 4-7 are: Reviewed-by: Rafael Antognolli On Thu, Jun 14, 2018 at 06:11:43PM +0100, Lionel Landwerlin wrote: > The Masking is only needed for entry matching. > > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/aubinator.c | 4 ++-- > 1 file changed,

Re: [Mesa-dev] [PATCH v2 01/16] intel: aubinator: remove unused variables

2018-06-19 Thread Rafael Antognolli
Reviewed-by: Rafael Antognolli On Tue, Jun 19, 2018 at 02:45:16PM +0100, Lionel Landwerlin wrote: > These memory offsets are stored in the gen_batch_decode_ctx. > > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/aubinator.c | 5 - > 1 file changed, 5 deletions(

Re: [Mesa-dev] [PATCH v2 02/16] intel: aubinator: remove standard input processing option

2018-06-19 Thread Rafael Antognolli
On Tue, Jun 19, 2018 at 02:45:17PM +0100, Lionel Landwerlin wrote: > Now that we rely on mmap of the data to parse, we can't process the > standard input anymore. Didn't we rely on mmap of the data since forever? > This isn't much of a big deal because we have in-process batch decoder > (run with

Re: [Mesa-dev] [PATCH v2 03/16] intel: aubinator: rework register writes handling

2018-06-19 Thread Rafael Antognolli
For some reason I always have trouble finding the docs about this. Still, it looks correct according to the docs, and it also seems to be matching what I see in aubdump since "tools/intel_aubdump: Simulate "enhanced execlist" submission for gen11+". Reviewed-by: Rafael Antogno

Re: [Mesa-dev] [PATCH v2 02/16] intel: aubinator: remove standard input processing option

2018-06-19 Thread Rafael Antognolli
On Tue, Jun 19, 2018 at 11:40:30AM -0700, Rafael Antognolli wrote: > On Tue, Jun 19, 2018 at 02:45:17PM +0100, Lionel Landwerlin wrote: > > Now that we rely on mmap of the data to parse, we can't process the > > standard input anymore. > > Didn't we rely on mmap of

Re: [Mesa-dev] [PATCH v2 04/16] intel: aubinator: drop the 1Tb GTT mapping

2018-06-19 Thread Rafael Antognolli
Patch is Reviewed-by: Rafael Antognolli On Tue, Jun 19, 2018 at 02:45:19PM +0100, Lionel Landwerlin wrote: > Now that we're softpinning the address of our BOs in anv & i965, the > addresses selected start at the top of the addressing space. This is a > problem for the current

Re: [Mesa-dev] [PATCH v2 07/16] intel/tools/aubinator: aubinate ppgtt aubs

2018-06-19 Thread Rafael Antognolli
On Tue, Jun 19, 2018 at 02:45:22PM +0100, Lionel Landwerlin wrote: > From: Scott D Phillips > > v2: by Lionel > Fix memfd_create compilation issue > Fix pml4 address stored on 32 instead of 64bits > Return no buffer if first ppgtt page is not mapped > > Signed-off-by: Lionel Landwerl

Re: [Mesa-dev] [PATCH v2 06/16] intel: aubinator: handle GGTT mappings

2018-06-20 Thread Rafael Antognolli
On Tue, Jun 19, 2018 at 02:45:21PM +0100, Lionel Landwerlin wrote: > We use memfd to store physical pages as they get read/written to and > the GGTT entries translating virtual address to physical pages. > > Based on a commit by Scott Phillips. > > Signed-off-by: Lionel Landwerlin > --- > src/i

Re: [Mesa-dev] [PATCH v2 07/16] intel/tools/aubinator: aubinate ppgtt aubs

2018-06-20 Thread Rafael Antognolli
On Wed, Jun 20, 2018 at 11:03:32AM +0100, Lionel Landwerlin wrote: > On 20/06/18 01:00, Rafael Antognolli wrote: > > On Tue, Jun 19, 2018 at 02:45:22PM +0100, Lionel Landwerlin wrote: > > > From: Scott D Phillips > > > > > > v2: by Lionel > > >

Re: [Mesa-dev] [PATCH v2 07/16] intel/tools/aubinator: aubinate ppgtt aubs

2018-06-20 Thread Rafael Antognolli
On Wed, Jun 20, 2018 at 12:01:28PM -0700, Rafael Antognolli wrote: > On Wed, Jun 20, 2018 at 11:03:32AM +0100, Lionel Landwerlin wrote: > > On 20/06/18 01:00, Rafael Antognolli wrote: > > > On Tue, Jun 19, 2018 at 02:45:22PM +0100, Lionel Landwerlin wrote: > > &g

Re: [Mesa-dev] [PATCH v2 11/16] intel: tools: update intel_aub.h

2018-06-20 Thread Rafael Antognolli
E_DWORD(2 << 16) > + > +#define AUB_MEM_TRACE_REGISTER_SPACE_MASK0xf000 > +#define AUB_MEM_TRACE_REGISTER_SPACE_MMIO(0 << 28) > + > +/* DW3 */ > + > +#define AUB_MEM_TRACE_MEMORY_ADDRESS_SPACE_MASK 0xf000 > +#define AUB_MEM_TRACE_M

Re: [Mesa-dev] [PATCH v2 12/16] intel: tools: import intel_aubdump

2018-06-20 Thread Rafael Antognolli
diff -u --ignore-all-space shows that this and the original file are roughly the same, except for some macros, some includes and how we check for hardware gen. Acked-by: Rafael Antognolli On Tue, Jun 19, 2018 at 02:45:27PM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwer

Re: [Mesa-dev] [PATCH v2 13/16] intel: tools: dump-gpu: dump 48-bit addresses

2018-06-20 Thread Rafael Antognolli
On Tue, Jun 19, 2018 at 02:45:28PM +0100, Lionel Landwerlin wrote: > From: Scott D Phillips > > For gen8+, write out PPGTT tables in aub files so that full 48-bit > addresses can be serialized. > > v2: Fix handling of `end` index in map_ppgtt > > Signed-off-by: Scott D Phillips > Signed-off-by

Re: [Mesa-dev] [PATCH v3 06/16] intel: aubinator: handle GGTT mappings

2018-06-21 Thread Rafael Antognolli
This patch is Reviewed-by: Rafael Antognolli On Thu, Jun 21, 2018 at 05:29:05PM +0100, Lionel Landwerlin wrote: > We use memfd to store physical pages as they get read/written to and > the GGTT entries translating virtual address to physical pages. > > Based on a commit by Sc

Re: [Mesa-dev] [PATCH v3 13/16] intel: tools: dump-gpu: dump 48-bit addresses

2018-06-22 Thread Rafael Antognolli
o we could add to help explain this patch. Assuming those comments make sense and are correct, this patch is Reviewed-by: Rafael Antognolli > > v2: Fix handling of `end` index in map_ppgtt > > v3: Correctly mark GGTT entry as present (Rafael) > > Signed-off-by: Scott D Phill

Re: [Mesa-dev] [PATCH v3 14/16] intel: devinfo: add simulator id

2018-06-22 Thread Rafael Antognolli
Patches 14-16 are Reviewed-by: Rafael Antognolli On Thu, Jun 21, 2018 at 05:29:13PM +0100, Lionel Landwerlin wrote: > Signed-off-by: Lionel Landwerlin > --- > src/intel/dev/gen_device_info.c | 47 ++--- > src/intel/dev/gen_device_info.h | 5 >

Re: [Mesa-dev] [PATCH v3 2/9] i965/miptree: Delete an unused function

2018-04-20 Thread Rafael Antognolli
Patches 1 and 2 are Reviewed-by: Rafael Antognolli On Wed, Apr 11, 2018 at 01:42:19PM -0700, Nanley Chery wrote: > We're going to combine ::mcs_buf and ::hiz_buf in later commits. Once > that happens, this function no longer make sense. > --- > src/mesa/drivers/dri/i965/in

Re: [Mesa-dev] [PATCH v3 3/9] i965: Add and use a getter for the miptree aux buffer

2018-04-20 Thread Rafael Antognolli
struct intel_miptree_aux_buffer *aux_buf = > intel_miptree_get_aux_buffer(mt); > + if (aux_buf) { > + intel_miptree_aux_buffer_free(aux_buf); >mt->mcs_buf = NULL; > - > - /* Any pending MCS/CCS operations are no longer needed. Trying to > - * execute any

Re: [Mesa-dev] [PATCH v3 4/9] i965: Add and use a single miptree aux_buf field

2018-04-20 Thread Rafael Antognolli
hiz = false; > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > index 8fe5c4add67..643de962d31 100644 > --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > @@ -2

Re: [Mesa-dev] [PATCH v3 5/9] i965/wm_surface_state: Use the clear address if it's non-zero

2018-04-20 Thread Rafael Antognolli
Looks like this is the last patch in the series that is only cleaning up the mess I left behind by adding the clear color bo. Thanks for that. Reviewed-by: Rafael Antognolli On Wed, Apr 11, 2018 at 01:42:22PM -0700, Nanley Chery wrote: > We want to add and use a getter that turns off

Re: [Mesa-dev] [PATCH v3 7/9] i965: Add and use a getter for the clear color

2018-04-20 Thread Rafael Antognolli
On Wed, Apr 11, 2018 at 01:42:24PM -0700, Nanley Chery wrote: > This getter allows CNL to sample from fast-cleared sRGB textures correctly. I think it might be worth mentioning in the commit message that the helper both returns the clear color for inline use, and updates the pointer to the indirec

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

2018-04-20 Thread Rafael Antognolli
t_pipe_control_flush(brw, PIPE_CONTROL_STATE_CACHE_INVALIDATE); > +} Just trying to bring attention to this piece of code. Jason suggested that these PIPE_CONTROL's might not be sufficient, and that we need tests that clear and texture from the surface repeatedly (I didn't look at

Re: [Mesa-dev] [PATCH v3 7/9] i965: Add and use a getter for the clear color

2018-04-20 Thread Rafael Antognolli
On Fri, Apr 20, 2018 at 03:01:44PM -0700, Nanley Chery wrote: > On Fri, Apr 20, 2018 at 01:35:39PM -0700, Rafael Antognolli wrote: > > On Wed, Apr 11, 2018 at 01:42:24PM -0700, Nanley Chery wrote: > > > This getter allows CNL to sample from fast-cleared sRGB textures > >

Re: [Mesa-dev] [PATCH v3 3/9] i965: Add and use a getter for the miptree aux buffer

2018-04-20 Thread Rafael Antognolli
On Fri, Apr 20, 2018 at 02:38:37PM -0700, Nanley Chery wrote: > On Fri, Apr 20, 2018 at 09:58:38AM -0700, Rafael Antognolli wrote: > > Nice, I was planning to do something like this later but didn't want to > > include many more changes on my ongoing series. This looks grea

Re: [Mesa-dev] [PATCH] i965/urb/cnl: Apply gen7 CS stall

2018-04-20 Thread Rafael Antognolli
On Thu, Apr 19, 2018 at 05:44:06PM +0300, Topi Pohjolainen wrote: > This didn't actually help the failing tests I'm looking at > but hopefully has teeth elsewhere. > > CC: Jason Ekstrand > CC: Jordan Justen > CC: Anuj Phogat > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/

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

2018-04-24 Thread Rafael Antognolli
On Mon, Apr 23, 2018 at 03:05:27PM -0700, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > Signed-off-by: Matt Atwood > --- > include/pci_ids/i965_pci_ids.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965_pci_ids.h > index

<    1   2   3   4   5   6   >