mesa/src/amd/common
Pierre-Eric Pelloux-Prayer 69aadc4933 radeonsi: fix surf_pitch for subsampled surface
gfx9.surf_pitch is supposed to be in blocks (or elements) but addrlib
returns a pitch in pixels.
This cause a mismatch between surface->bpe and surface.u.gfx9.surf_pitch.

For subsampled formats like uyvy (bpe is 2) this breaks in various places:
 - sdma copy
 - video rendering (see issue https://gitlab.freedesktop.org/mesa/mesa/issues/2363)
   when the vl_compositor_gfx_render method is used

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738>
2020-02-27 10:01:31 +01:00
..
.editorconfig amd: add .editorconfig 2017-08-29 01:08:58 +03:00
ac_binary.c amd/common: Add num_shared_vgprs to ac_shader_config for GFX10. 2019-09-26 13:36:49 +00:00
ac_binary.h amd/common: Add num_shared_vgprs to ac_shader_config for GFX10. 2019-09-26 13:36:49 +00:00
ac_debug.c amd: fix empty-body issues 2019-12-27 22:09:00 +00:00
ac_debug.h amd/common: Add extern "C" to some headers that were missing it. 2019-10-10 09:57:52 +02:00
ac_exp_param.h radeonsi/ac: move vertex export remove to common code. 2017-04-27 05:17:47 +01:00
ac_gpu_info.c ac: add more ac_gpu_info related shader fields 2020-02-26 07:58:47 +00:00
ac_gpu_info.h ac: add more ac_gpu_info related shader fields 2020-02-26 07:58:47 +00:00
ac_rtld.c radv/radeonsi: Don't count read-only data when reporting code size 2019-09-05 12:21:35 +02:00
ac_rtld.h amd/common: Add extern "C" to some headers that were missing it. 2019-10-10 09:57:52 +02:00
ac_shader_args.c ac: Add a shared interface between radv, radeonsi, LLVM and ACO 2019-11-25 14:12:46 +01:00
ac_shader_args.h ac/llvm: implement VK_AMD_shader_explicit_vertex_parameter 2020-01-29 09:49:50 +00:00
ac_shader_util.c amd/common,radv: move vertex_format_table to ac_shader_util.{h,c} 2020-01-28 11:39:52 +00:00
ac_shader_util.h amd/common,radv: move vertex_format_table to ac_shader_util.{h,c} 2020-01-28 11:39:52 +00:00
ac_surface.c radeonsi: fix surf_pitch for subsampled surface 2020-02-27 10:01:31 +01:00
ac_surface.h radeonsi/gfx9: force the micro tile mode for MSAA resolve correctly on gfx9 2020-01-09 16:28:28 -05:00
amd_family.h ac: add radeon_info::num_rings and move ring_type to amd_family.h 2019-11-19 18:31:53 -05:00
amd_kernel_code_t.h tree-wide: remove trailing backslash 2017-06-07 01:18:09 +01:00
meson.build ac: Add a shared interface between radv, radeonsi, LLVM and ACO 2019-11-25 14:12:46 +01:00
sid.h radeonsi: add PKT3_CONTEXT_REG_RMW 2019-08-27 16:16:08 -04:00
sid_tables.py ac/registers: don't use the si, cik, vi names, use gfxN 2019-06-03 20:06:41 -04:00