mesa/src/intel/vulkan
Otavio Pontes d4d1f52284 anv/hasvk: Clamping Scissor Rect values in a valid range
On cmd_buffer_emit_scissor(), if VkViewport height or width are set to
a value lower than 1.0, y_max or x_max can be attributed negative values,
causing an overflow. That leads to ScissorRectangleYMax or
ScissorRectangleXMax to be set to values on an unsupported range.

Clamping x_max and y_max in the valid range solves the problem.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7471
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20200>
(cherry picked from commit 2e775b8bdb)
2022-12-14 20:47:01 +00:00
..
grl anv: adding parsetab.py to the .gitignore for grl 2022-10-20 02:24:39 +00:00
layers anv: work around improper buffer usage in hitman3 2022-10-19 03:24:36 +00:00
tests anv: Delete softpin checks 2022-09-02 09:40:46 +00:00
anv_acceleration_structure.c anv: Delete softpin checks 2022-09-02 09:40:46 +00:00
anv_allocator.c intel/fs: put scratch surface in the surface state heap 2022-11-23 19:11:59 +00:00
anv_android.c anv: Do not duplicate intel_device_info memory in each logical device 2022-08-19 16:29:58 +00:00
anv_android.h anv: move VkImage object allocation to anv_CreateImage 2021-10-06 02:18:39 +00:00
anv_android_stubs.c anv: move VkImage object allocation to anv_CreateImage 2021-10-06 02:18:39 +00:00
anv_batch_chain.c intel/fs: put scratch surface in the surface state heap 2022-11-23 19:11:59 +00:00
anv_blorp.c anv: Reduce RHWO optimization (Wa_1508744258) 2022-11-09 21:22:05 +00:00
anv_bo_sync.c anv: Drop anv_sync_create_for_bo 2021-12-17 00:55:31 +00:00
anv_cmd_buffer.c anv: get rid of ilog2_round_up 2022-11-23 19:11:58 +00:00
anv_descriptor_set.c anv: split internal surface states from descriptors 2022-11-17 14:05:03 +00:00
anv_device.c anv: ensure CPS is initialized when KHR_fragment_shading_rate is disabled 2022-11-23 19:11:59 +00:00
anv_formats.c anv: set READ/WRITE_WITHOUT_FORMAT for buffer views 2022-10-05 09:45:50 -07:00
anv_gem.c anv: Use Vulkan types for priority as much as possible 2022-10-04 18:35:50 +00:00
anv_gem_stubs.c anv: Use Vulkan types for priority as much as possible 2022-10-04 18:35:50 +00:00
anv_genX.h anv: move emit_shading_rate to gfx8_cmd_buffer 2022-10-18 10:44:38 +03:00
anv_image.c intel/fs: put scratch surface in the surface state heap 2022-11-23 19:11:59 +00:00
anv_measure.c utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
anv_measure.h anv: add a custom AcquireNextImage2KHR func 2022-02-17 22:15:23 +00:00
anv_nir.h anv: add analysis for push descriptor uses and store it in shader cache 2022-10-14 23:03:16 +00:00
anv_nir_add_base_work_group_id.c anv: use nir_shader_instructions_pass in anv_nir_add_base_work_group_id 2021-10-05 10:02:54 +00:00
anv_nir_apply_pipeline_layout.c anv: add analysis for push descriptor uses and store it in shader cache 2022-10-14 23:03:16 +00:00
anv_nir_compute_push_layout.c anv: remove unused gfx7 code 2022-09-02 09:40:46 +00:00
anv_nir_lower_multiview.c utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
anv_nir_lower_ubo_loads.c anv: invalidate all metadata in anv_nir_lower_ubo_loads 2022-04-19 11:43:55 +00:00
anv_nir_lower_ycbcr_textures.c nir: adjust nir_src_copy signature to take a nir_instr * 2022-08-30 18:21:44 +00:00
anv_nir_push_descriptor_analysis.c anv: add analysis for push descriptor uses and store it in shader cache 2022-10-14 23:03:16 +00:00
anv_perf.c intel: Make engine related functions and types not i915 dependent 2022-10-04 18:35:50 +00:00
anv_pipeline.c nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
anv_pipeline_cache.c anv: fixup invalid enum for nir environment 2022-11-17 14:05:02 +00:00
anv_private.h anv: Defer flushing PIPE_CONTROL bits forbidden in CCS while in GPGPU mode 2022-12-14 20:47:00 +00:00
anv_queue.c anv: fix INTEL_DEBUG=sync 2022-04-22 21:59:50 +00:00
anv_util.c anv: Handle bits to flush data-port's Untyped L1 data cache 2022-08-05 10:43:50 +03:00
anv_utrace.c intel: Add and use intel_engines_class_to_string() 2022-10-15 20:04:51 +00:00
anv_wsi.c anv/wsi: Stop resetting semaphores 2022-06-10 01:33:12 +00:00
genX_acceleration_structure.c utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
genX_blorp_exec.c anv: generate correct addresses for state pool offsets 2022-11-23 19:12:00 +00:00
genX_cmd_buffer.c anv/hasvk: Clamping Scissor Rect values in a valid range 2022-12-14 20:47:01 +00:00
genX_gpu_memcpy.c anv: disable mesh in memcpy 2022-10-26 19:55:11 +00:00
genX_pipeline.c intel: factor out dispatch PS enabling logic 2022-12-14 20:47:01 +00:00
genX_query.c intel: Convert missing i915 engine types to intel 2022-10-15 20:04:51 +00:00
genX_state.c anv: fixup context initialization on DG2 2022-11-23 19:12:00 +00:00
gfx8_cmd_buffer.c anv: fill AlphaToCoverageEnable lazily from state 2022-10-18 10:44:57 +03:00
meson.build anv/meson: Add float64_spv_h custom target 2022-10-28 10:08:50 +00:00
TODO intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00