panfrost: Fix stride for AFBC_FORMAT_MOD_BLOCK_SIZE_32x8.
Fix defect reported by Coverity Scan.
Identical code for different branches (IDENTICAL_BRANCHES)
identical_branches: Ternary expression on condition width has
identical then and else expressions: 32. Should one of the
expressions be modified, or the entire ternary expression
replaced?
Fixes: 8bb1d61f27
("panfrost: Add panfrost_block_dim helper")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7177>
This commit is contained in:
parent
8dd03a7c12
commit
85053c016c
|
@ -219,7 +219,7 @@ panfrost_block_dim(uint64_t modifier, bool width, unsigned plane)
|
|||
case AFBC_FORMAT_MOD_BLOCK_SIZE_16x16:
|
||||
return 16;
|
||||
case AFBC_FORMAT_MOD_BLOCK_SIZE_32x8:
|
||||
return width ? 32 : 32;
|
||||
return width ? 32 : 8;
|
||||
case AFBC_FORMAT_MOD_BLOCK_SIZE_64x4:
|
||||
return width ? 64 : 4;
|
||||
case AFBC_FORMAT_MOD_BLOCK_SIZE_32x8_64x4:
|
||||
|
|
Loading…
Reference in New Issue