mesa/src/gallium/drivers/d3d12
Jesse Natalie 9409ec0332 d3d12: Fix indexing of local_reference_state
Instead of manually indexing a single-dimensional array as 2-dimensional
(and using the wrong stride for the outer array) just actually make it
a 2-dimensional array.

Fixes: 7edae456 ("d3d12: Track up to 16 contexts worth of batch references locally in bos")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24041>
(cherry picked from commit a6740ee7a4)
2023-07-18 22:38:06 +01:00
..
ci d3d12: Respect buffer offsets for sampler views 2023-04-19 14:37:56 +01:00
.clang-format d3d12: Add .clang_format file 2022-05-17 21:02:25 +00:00
d3d12_batch.cpp d3d12: Fix indexing of local_reference_state 2023-07-18 22:38:06 +01:00
d3d12_batch.h d3d12: Track up to 16 contexts worth of batch references locally in bos 2023-03-17 07:43:08 +00:00
d3d12_blit.cpp d3d12: Don't multiply cube array sizes by 6 2022-10-27 23:17:47 +00:00
d3d12_blit.h
d3d12_bufmgr.cpp d3d12: Track up to 16 active context resource states locally in d3d12_bo 2023-02-25 18:14:37 +00:00
d3d12_bufmgr.h d3d12: Fix indexing of local_reference_state 2023-07-18 22:38:06 +01:00
d3d12_cmd_signature.cpp d3d12: Move indirect compute to real indirect dispatches 2022-01-31 13:30:49 -08:00
d3d12_cmd_signature.h d3d12: Move indirect compute to real indirect dispatches 2022-01-31 13:30:49 -08:00
d3d12_common.h d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00
d3d12_compiler.cpp d3d12: Move forward-front-face pass to common DXIL code 2023-04-04 21:48:19 +00:00
d3d12_compiler.h d3d12: Remove now-unused UAV format from shader info 2023-03-23 18:34:52 +00:00
d3d12_compute_transforms.cpp d3d12: Cache a modifyable copy of the nir options in d3d12_screen 2022-02-04 00:07:53 +00:00
d3d12_compute_transforms.h d3d12: Move compute transform state save/restore to compute_transforms.cpp 2022-01-31 13:31:22 -08:00
d3d12_context.cpp d3d12: Respect buffer offsets for sampler views 2023-04-19 14:37:56 +01:00
d3d12_context.h d3d12: Use context-level sampler_state array for filling shader keys 2023-03-17 07:43:08 +00:00
d3d12_debug.h
d3d12_descriptor_pool.cpp d3d12: Add helpers to build with correct ABI for MinGW 2022-07-15 16:27:11 +00:00
d3d12_descriptor_pool.h d3d12: Move shared code that include d3d12 headers into d3d12_common.h 2022-06-03 16:33:00 +00:00
d3d12_draw.cpp d3d12: Fix buffer SRV/UAV creation 2023-03-23 18:34:52 +00:00
d3d12_dxcore_screen.cpp utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
d3d12_dxgi_screen.cpp utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
d3d12_dxgi_xbox_screen.cpp d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00
d3d12_fence.cpp d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00
d3d12_fence.h d3d12: Export some util functions from d3d12_fence for d3d12 video 2022-09-21 23:31:15 +00:00
d3d12_format.c util: Move src/gallium/include/pipe/p_format.h to src/util/format/u_formats.h 2022-11-19 03:38:19 +00:00
d3d12_format.h util: Move src/gallium/include/pipe/p_format.h to src/util/format/u_formats.h 2022-11-19 03:38:19 +00:00
d3d12_gs_variant.cpp d3d12: Use memcmp for full tcs/gs variant keys 2023-03-01 19:40:06 +00:00
d3d12_interop_public.h d3d12: Hook up driver-private interop data 2022-11-02 18:11:41 +00:00
d3d12_lower_image_casts.c d3d12: Don't clear d3d12_shader_key 2023-02-13 22:57:03 +00:00
d3d12_lower_point_sprite.c d3d12: Enable PIPE_CAP_TGSI_TEXCOORD 2022-01-26 01:31:35 +00:00
d3d12_nir_passes.c d3d12: Move forward-front-face pass to common DXIL code 2023-04-04 21:48:19 +00:00
d3d12_nir_passes.h d3d12: Move forward-front-face pass to common DXIL code 2023-04-04 21:48:19 +00:00
d3d12_pipeline_state.cpp d3d12: Support creating PSOs with no attachments with MSAA without TIR 2023-04-11 03:32:41 +00:00
d3d12_pipeline_state.h d3d12: Move shared code that include d3d12 headers into d3d12_common.h 2022-06-03 16:33:00 +00:00
d3d12_public.h
d3d12_query.cpp d3d12: Don't flush indiscriminately for query result accumulation 2022-12-19 22:57:51 +00:00
d3d12_query.h d3d12: Fix race condition when getting query results 2022-12-19 22:57:51 +00:00
d3d12_residency.cpp d3d12: Track up to 16 contexts worth of batch references locally in bos 2023-03-17 07:43:08 +00:00
d3d12_residency.h d3d12: Add d3d12_promote_to_permanent_residency 2022-05-17 21:02:25 +00:00
d3d12_resource.cpp d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00
d3d12_resource.h d3d12: Fix winsys displaytarget leak in d3d12_resource 2022-09-15 11:19:39 -04:00
d3d12_resource_state.cpp d3d12: Track up to 16 contexts worth of batch references locally in bos 2023-03-17 07:43:08 +00:00
d3d12_resource_state.h d3d12: Track up to 16 active context resource states locally in d3d12_bo 2023-02-25 18:14:37 +00:00
d3d12_root_signature.cpp d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00
d3d12_root_signature.h d3d12: Support compute root signatures 2022-01-11 01:36:56 +00:00
d3d12_screen.cpp d3d12: Support creating PSOs with no attachments with MSAA without TIR 2023-04-11 03:32:41 +00:00
d3d12_screen.h d3d12: Support creating PSOs with no attachments with MSAA without TIR 2023-04-11 03:32:41 +00:00
d3d12_surface.cpp d3d12: Improve planar resource support to handle video requirements 2022-05-17 21:02:25 +00:00
d3d12_surface.h d3d12: Move shared code that include d3d12 headers into d3d12_common.h 2022-06-03 16:33:00 +00:00
d3d12_tcs_variant.cpp d3d12: Use memcmp for full tcs/gs variant keys 2023-03-01 19:40:06 +00:00
d3d12_util.h d3d12: Add video decode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_array_of_textures_dpb_manager.cpp d3d12: Fix debug_printf format strings for cross platform builds 2022-06-29 01:56:39 +00:00
d3d12_video_array_of_textures_dpb_manager.h d3d12: Add video decode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_buffer.cpp d3d12: Create d3d12_resource objects for video usage keeping their DXGI_..._UNORM formats 2022-10-20 20:37:10 +00:00
d3d12_video_buffer.h d3d12: Add support for importing d3d12_video_buffer from handle 2022-09-15 11:19:39 -04:00
d3d12_video_dec.cpp d3d12: implement the get_decoder_fence vfunc 2023-01-11 19:34:33 +00:00
d3d12_video_dec.h d3d12: implement the get_decoder_fence vfunc 2023-01-11 19:34:33 +00:00
d3d12_video_dec_av1.cpp d3d12: AV1 Dec - Set anchor_frame_idx only when large_scale_tile equals 1 2023-03-24 01:51:07 +00:00
d3d12_video_dec_av1.h d3d12: Add support for AV1 Video Decode 2022-09-29 15:50:04 -04:00
d3d12_video_dec_h264.cpp d3d12: Fix aliased usage of m_SliceControlBuffer in d3d12_video_decoder_prepare_dxva_slices_control_XXXX 2022-09-29 15:50:04 -04:00
d3d12_video_dec_h264.h d3d12: Avoid extra allocation, copies when generating DXVA_Slice_Hxxx_Short arrays 2022-09-15 11:19:39 -04:00
d3d12_video_dec_hevc.cpp d3d12: HEVC Decode - Fix slice size and offsets translation from VA to DXVA 2022-10-21 17:56:38 +00:00
d3d12_video_dec_hevc.h d3d12: Avoid heap allocations on hot path d3d12_video_decoder_dxva_picparams_from_pipe_picparams_hevc 2022-09-15 11:19:39 -04:00
d3d12_video_dec_references_mgr.cpp d3d12: Fix video decode for interlaced streams with reference only textures required 2023-03-11 14:31:32 +00:00
d3d12_video_dec_references_mgr.h d3d12: Fix get_index7bits - Reuse previously freed indices 2022-10-11 15:15:11 +00:00
d3d12_video_dec_vp9.cpp d3d12: VP9 Decode - Fix use_prev_in_find_mvs_refs calculation 2023-03-04 03:22:48 +00:00
d3d12_video_dec_vp9.h d3d12: Fix VP9 Decode - Checking 0xFF instead of 0x7F for invalid frame_ref[i].Index7Bits 2023-02-24 01:49:28 +00:00
d3d12_video_dpb_storage_manager.h d3d12: Add video decode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_enc.cpp d3d12: Encode - Only upload headers when written headers size is > 0 2023-03-23 18:15:44 +00:00
d3d12_video_enc.h d3d12: Encode H264/HEVC - Do not write PPS unless different from active 2023-03-23 18:15:44 +00:00
d3d12_video_enc_h264.cpp Revert "d3d12: Honor suggested driver profile/level for H264/HEVC encode" 2023-03-31 20:13:20 +00:00
d3d12_video_enc_h264.h d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_enc_hevc.cpp Revert "d3d12: Honor suggested driver profile/level for H264/HEVC encode" 2023-03-31 20:13:20 +00:00
d3d12_video_enc_hevc.h d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_encoder_bitstream.cpp d3d12: Add ASSERTED to variables only used in debug builds to fix build MSVC with C4189 errors 2022-12-15 21:06:12 +00:00
d3d12_video_encoder_bitstream.h d3d12: Add video encode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_encoder_bitstream_builder.h d3d12: Add video encode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_encoder_bitstream_builder_h264.cpp d3d12: add missing cmath includes 2022-05-23 14:02:28 +00:00
d3d12_video_encoder_bitstream_builder_h264.h d3d12: Encode H264/HEVC - Do not write PPS unless different from active 2023-03-23 18:15:44 +00:00
d3d12_video_encoder_bitstream_builder_hevc.cpp d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_encoder_bitstream_builder_hevc.h d3d12: Encode H264/HEVC - Do not write PPS unless different from active 2023-03-23 18:15:44 +00:00
d3d12_video_encoder_nalu_writer_h264.cpp d3d12: Add ASSERTED to variables only used in debug builds to fix build MSVC with C4189 errors 2022-12-15 21:06:12 +00:00
d3d12_video_encoder_nalu_writer_h264.h d3d12: Add video encode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_encoder_nalu_writer_hevc.cpp d3d12: Add ASSERTED to variables only used in debug builds to fix build MSVC with C4189 errors 2022-12-15 21:06:12 +00:00
d3d12_video_encoder_nalu_writer_hevc.h d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_encoder_references_manager.h d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_encoder_references_manager_h264.cpp d3d12: Add ASSERTED to variables only used in debug builds to fix build MSVC with C4189 errors 2022-12-15 21:06:12 +00:00
d3d12_video_encoder_references_manager_h264.h d3d12: Add HEVC Decode/Encode 2022-09-15 11:19:39 -04:00
d3d12_video_encoder_references_manager_hevc.cpp d3d12: Add ASSERTED to variables only used in debug builds to fix build MSVC with C4189 errors 2022-12-15 21:06:12 +00:00
d3d12_video_encoder_references_manager_hevc.h d3d12: Initialize d3d12_video_encoder_references_manager_hevc::m_current_frame_idx. 2022-09-22 05:45:21 +00:00
d3d12_video_proc.cpp d3d12: Video processor to only promote resources to permanent residency when there is work to be flushed 2023-04-11 20:09:19 +00:00
d3d12_video_proc.h d3d12: Video process - Remove unnecessary batches flush 2022-09-21 23:31:15 +00:00
d3d12_video_screen.cpp d3d12: Video Screen - Do not crash if HEVC not supported, return no support instead 2022-11-17 16:02:55 +00:00
d3d12_video_screen.h d3d12: Move shared code that include d3d12 headers into d3d12_common.h 2022-06-03 16:33:00 +00:00
d3d12_video_texture_array_dpb_manager.cpp d3d12: Fix debug_printf format strings for cross platform builds 2022-06-29 01:56:39 +00:00
d3d12_video_texture_array_dpb_manager.h d3d12: Add video decode implementation of pipe_video_codec 2022-05-17 21:02:25 +00:00
d3d12_video_types.h Revert "d3d12: Honor suggested driver profile/level for H264/HEVC encode" 2023-03-31 20:13:20 +00:00
meson.build d3d12: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00