mesa/src/gallium/drivers/iris
Nanley Chery db475c81b7 iris: Return non-zero stride for clear color plane
Before this patch, when querying the clear color plane's stride, iris
would return the aux surface stride. This was okay because the clear
color plane wasn't really used for anything.

This doesn't work on XeHP however. On that platform, the aux surface
stride is zero (because it doesn't have an ISL surface for the CCS).
This is a problem because mesa's implementation of eglCreateImage
rejects strides of zero (see dri2_check_dma_buf_attribs) and this value
may be queried from GBM and passed into EGL.

When the DG2 clear color modifier is enabled, this avoids EGL_BAD_ACCESS
errors when running the piglit test,
ext_image_dma_buf_import-intel_modifiers.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14759>
2022-01-31 23:22:35 +00:00
..
ci ci: Rebalance Iris jobs 2022-01-28 12:00:21 +01:00
driinfo_iris.h iris: enable adaptive sync for IRIS 2022-01-02 18:53:29 +00:00
iris_batch.c iris: Create an IRIS_BATCH_BLITTER for using the BLT command streamer 2022-01-24 23:27:25 +00:00
iris_batch.h iris: Create an IRIS_BATCH_BLITTER for using the BLT command streamer 2022-01-24 23:27:25 +00:00
iris_binder.c iris: Rename bo->gtt_offset to bo->address 2021-08-11 08:05:00 +00:00
iris_binder.h iris: little bits of compute basics 2019-02-21 10:26:09 -08:00
iris_blit.c iris: Fix and refactor check for clear color being fully zero 2022-01-24 23:27:25 +00:00
iris_blorp.c iris: Implement iris_blorp_exec() for the blitter engine 2022-01-24 23:27:25 +00:00
iris_border_color.c iris: Add an alignment parameter to iris_bo_alloc() 2021-06-07 10:35:25 -07:00
iris_bufmgr.c iris: sprinkle some assertions for bufmgr->lock 2022-01-29 05:00:51 +00:00
iris_bufmgr.h iris: Create an IRIS_BATCH_BLITTER for using the BLT command streamer 2022-01-24 23:27:25 +00:00
iris_clear.c iris: Set BLORP_BATCH_USE_{COMPUTE,BLITTER} flags for the target batch 2022-01-24 23:27:25 +00:00
iris_context.c iris: Create an IRIS_BATCH_BLITTER for using the BLT command streamer 2022-01-24 23:27:25 +00:00
iris_context.h iris: Set BLORP_BATCH_USE_{COMPUTE,BLITTER} flags for the target batch 2022-01-24 23:27:25 +00:00
iris_defines.h intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00
iris_disk_cache.c intel/fs,vec4: Drop uniform compaction and pull constant support 2021-12-10 21:20:47 +00:00
iris_draw.c intel/compiler: drop shader_info.h from compiler header 2021-12-07 23:59:58 +00:00
iris_fence.c iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00
iris_fence.h iris: signal the syncobj after a failed batch 2021-09-07 19:03:03 +00:00
iris_fine_fence.c iris: syncobjs are now owned by bufmgr instead of screen 2021-09-01 21:48:13 +00:00
iris_fine_fence.h iris: Rename iris_seqno to iris_fine_fence 2020-05-28 12:47:19 -07:00
iris_formats.c iris: Explicitly rely on gallium fallbacks for YUV 2022-01-28 00:30:55 +00:00
iris_genx_macros.h iris: Rename bo->gtt_offset to bo->address 2021-08-11 08:05:00 +00:00
iris_genx_protos.h iris: Add genX(emit_depth_state_workarounds) 2021-08-20 17:50:35 +00:00
iris_measure.c intel/compiler: drop shader_info.h from compiler header 2021-12-07 23:59:58 +00:00
iris_measure.h gallium: rename pipe_draw_start_count -> pipe_draw_start_count_bias 2021-04-30 03:59:19 +00:00
iris_monitor.c iris: Move away from "hw" for some context terminology 2021-12-02 16:31:03 -08:00
iris_monitor.h iris: remove iris_monitor_config 2020-07-06 21:43:59 +00:00
iris_perf.c iris/bufmgr: Add flag to allocate from local memory. 2021-06-24 16:14:38 +00:00
iris_perf.h intel: Rename gen_perf prefix to intel_perf in source files 2021-04-20 20:06:34 +00:00
iris_performance_query.c brw/compiler: drop mtypes.h from compiler 2021-12-07 23:59:58 +00:00
iris_pipe.h iris: Make a gl_shader_stage -> pipe_shader_stage helper function 2019-04-23 00:24:08 -07:00
iris_pipe_control.c iris: Add missed tile flush flag 2021-10-19 18:22:31 +00:00
iris_program.c mesa/*: use an internal enum for tessellation primitive types. 2022-01-19 21:54:58 +00:00
iris_program_cache.c iris: Rename bo->gtt_offset to bo->address 2021-08-11 08:05:00 +00:00
iris_query.c iris: syncobjs are now owned by bufmgr instead of screen 2021-09-01 21:48:13 +00:00
iris_resolve.c iris: Enable atomic operations on compressed surfaces 2021-10-01 22:16:22 +00:00
iris_resource.c iris: Return non-zero stride for clear color plane 2022-01-31 23:22:35 +00:00
iris_resource.h iris: Finish aux import in iris_resource_from_handle 2021-09-16 18:07:23 +00:00
iris_screen.c iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00
iris_screen.h iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00
iris_state.c iris: Support the XeHP media compression format 2022-01-28 00:30:55 +00:00
iris_utrace.c iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00
iris_utrace.h iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00
meson.build iris: utrace/perfetto support 2022-01-14 20:17:44 +00:00