mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
blorp: Use the correct miptail start LOD for surfaces
Use the correct miptail start LOD for the surfaces involved in the
XY_BLOCK_COPY_BLT/XY_FAST_COLOR_BLT instructions.
Thanks to Lionel for pointing out the issue.
Fixes: 46f45d62d1 ("intel/isl: Start using miptails")
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25688>
This commit is contained in:
parent
d9abc07151
commit
470bb614e0
1 changed files with 3 additions and 3 deletions
|
|
@ -2469,7 +2469,7 @@ blorp_xy_block_copy_blt(struct blorp_batch *batch,
|
|||
params->dst.view.base_array_layer + params->dst.z_offset;
|
||||
blt.DestinationSurfaceQPitch = isl_get_qpitch(dst_surf) >> 2;
|
||||
blt.DestinationLOD = params->dst.view.base_level;
|
||||
blt.DestinationMipTailStartLOD = 15;
|
||||
blt.DestinationMipTailStartLOD = dst_surf->miptail_start_level;
|
||||
blt.DestinationHorizontalAlign = isl_encode_halign(dst_align.width);
|
||||
blt.DestinationVerticalAlign = isl_encode_valign(dst_align.height);
|
||||
blt.DestinationDepthStencilResource = false;
|
||||
|
|
@ -2504,7 +2504,7 @@ blorp_xy_block_copy_blt(struct blorp_batch *batch,
|
|||
params->src.view.base_array_layer + params->src.z_offset;
|
||||
blt.SourceSurfaceQPitch = isl_get_qpitch(src_surf) >> 2;
|
||||
blt.SourceLOD = params->src.view.base_level;
|
||||
blt.SourceMipTailStartLOD = 15;
|
||||
blt.SourceMipTailStartLOD = src_surf->miptail_start_level;
|
||||
blt.SourceHorizontalAlign = isl_encode_halign(src_align.width);
|
||||
blt.SourceVerticalAlign = isl_encode_valign(src_align.height);
|
||||
blt.SourceDepthStencilResource = false;
|
||||
|
|
@ -2587,7 +2587,7 @@ blorp_xy_fast_color_blit(struct blorp_batch *batch,
|
|||
params->dst.view.base_array_layer + params->dst.z_offset;
|
||||
blt.DestinationSurfaceQPitch = isl_get_qpitch(dst_surf) >> 2;
|
||||
blt.DestinationLOD = params->dst.view.base_level;
|
||||
blt.DestinationMipTailStartLOD = 15;
|
||||
blt.DestinationMipTailStartLOD = dst_surf->miptail_start_level;
|
||||
blt.DestinationHorizontalAlign = isl_encode_halign(dst_align.width);
|
||||
blt.DestinationVerticalAlign = isl_encode_valign(dst_align.height);
|
||||
blt.DestinationDepthStencilResource = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue