mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
amd/common: skip lane size determination for chips without image opcodes (e.g. gfx940)
This fixes VAAPI decode performance issues.
Fixes: 5b3e1a0532 ("radeonsi: change the compute blit to clear/blit multiple pixels per lane")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30273>
This commit is contained in:
parent
0cb3ace969
commit
ec4e5ef0f7
1 changed files with 2 additions and 1 deletions
|
|
@ -679,7 +679,8 @@ ac_prepare_compute_blit(const struct ac_cs_blit_options *options,
|
|||
*/
|
||||
if (blit->dst.surf->bpe <= 8 && (is_resolve ? src_samples : dst_samples) <= 4 &&
|
||||
/* Small blits don't benefit. */
|
||||
width * height * depth * blit->dst.surf->bpe * dst_samples > 128 * 1024) {
|
||||
width * height * depth * blit->dst.surf->bpe * dst_samples > 128 * 1024 &&
|
||||
info->has_image_opcodes) {
|
||||
if (is_3d_tiling) {
|
||||
/* Thick tiling. */
|
||||
if (!is_clear && blit->src.surf->is_linear) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue