panfrost: Identify depth/stencil layer strides
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5782>
This commit is contained in:
committed by
Marge Bot
parent
490fbce239
commit
5e38d956ab
@@ -1784,12 +1784,12 @@ struct mali_framebuffer_extra {
|
||||
mali_ptr depth;
|
||||
u32 depth_stride_zero : 4;
|
||||
u32 depth_stride : 28;
|
||||
u32 zero1;
|
||||
u32 depth_layer_stride;
|
||||
|
||||
mali_ptr stencil;
|
||||
u32 stencil_stride_zero : 4;
|
||||
u32 stencil_stride : 28;
|
||||
u32 zero2;
|
||||
u32 stencil_layer_stride;
|
||||
} ds_linear;
|
||||
};
|
||||
|
||||
|
||||
@@ -1273,30 +1273,29 @@ pandecode_mfbd_bfr(uint64_t gpu_va, int job_no, bool is_fragment, bool is_comput
|
||||
MEMORY_PROP_DIR(fbx->ds_linear, depth);
|
||||
pandecode_prop("depth_stride = %d",
|
||||
fbx->ds_linear.depth_stride);
|
||||
} else if (fbx->ds_linear.depth_stride) {
|
||||
pandecode_msg("XXX: depth stride zero tripped %d\n", fbx->ds_linear.depth_stride);
|
||||
pandecode_prop("depth_layer_stride = %d",
|
||||
fbx->ds_linear.depth_layer_stride);
|
||||
} else if (fbx->ds_linear.depth_stride || fbx->ds_linear.depth_layer_stride) {
|
||||
pandecode_msg("XXX: depth stride zero tripped %d %d\n", fbx->ds_linear.depth_stride, fbx->ds_linear.depth_layer_stride);
|
||||
}
|
||||
|
||||
if (fbx->ds_linear.stencil) {
|
||||
MEMORY_PROP_DIR(fbx->ds_linear, stencil);
|
||||
pandecode_prop("stencil_stride = %d",
|
||||
fbx->ds_linear.stencil_stride);
|
||||
} else if (fbx->ds_linear.stencil_stride) {
|
||||
pandecode_msg("XXX: stencil stride zero tripped %d\n", fbx->ds_linear.stencil_stride);
|
||||
pandecode_prop("stencil_layer_stride = %d",
|
||||
fbx->ds_linear.stencil_layer_stride);
|
||||
} else if (fbx->ds_linear.stencil_stride || fbx->ds_linear.stencil_layer_stride) {
|
||||
pandecode_msg("XXX: stencil stride zero tripped %d %d\n", fbx->ds_linear.stencil_stride, fbx->ds_linear.stencil_layer_stride);
|
||||
}
|
||||
|
||||
if (fbx->ds_linear.depth_stride_zero ||
|
||||
fbx->ds_linear.stencil_stride_zero ||
|
||||
fbx->ds_linear.zero1 || fbx->ds_linear.zero2) {
|
||||
fbx->ds_linear.stencil_stride_zero) {
|
||||
pandecode_msg("XXX: Depth/stencil zeros tripped\n");
|
||||
pandecode_prop("depth_stride_zero = 0x%x",
|
||||
fbx->ds_linear.depth_stride_zero);
|
||||
pandecode_prop("stencil_stride_zero = 0x%x",
|
||||
fbx->ds_linear.stencil_stride_zero);
|
||||
pandecode_prop("zero1 = 0x%" PRIx32,
|
||||
fbx->ds_linear.zero1);
|
||||
pandecode_prop("zero2 = 0x%" PRIx32,
|
||||
fbx->ds_linear.zero2);
|
||||
}
|
||||
|
||||
pandecode_indent--;
|
||||
|
||||
Reference in New Issue
Block a user