mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pvr: fix pvr_clear_vdm_state_get_size_in_dw() inverted feature condition
The pvr_clear_vdm_state_get_size_in_dw() wrongly think instance count
inputs are needed when doing RTA clear for cores without the
gs_rta_support feature. However, the instance ID is exploited to output
the target layer ID, which isn't supported at all for cores w/o that
feature, so it looks that the condition is inverted. In addition, the
pvr_pack_clear_vdm_state() function seems to have similar logic deciding
whether to emit instance_count, and the logic is opposite to the logic
in pvr_clear_vdm_state_get_size_in_dw() for the part checking the
gs_rta_support feature.
Invert the condition to take instance ID inputs for cores with the
gs_rta_support feature instead of those without this feature.
Fixes: b59eb30e88 ("pvr: Fix cs corruption in pvr_pack_clear_vdm_state()")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40831>
This commit is contained in:
parent
b2e55f5a1a
commit
3db93bbf34
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ pvr_clear_vdm_state_get_size_in_dw(const struct pvr_device_info *const dev_info,
|
|||
pvr_cmd_length(VDMCTRL_INDEX_LIST2);
|
||||
|
||||
const bool needs_instance_count =
|
||||
!PVR_HAS_FEATURE(dev_info, gs_rta_support) && layer_count > 1;
|
||||
PVR_HAS_FEATURE(dev_info, gs_rta_support) && layer_count > 1;
|
||||
|
||||
if (needs_instance_count)
|
||||
size_in_dw += pvr_cmd_length(VDMCTRL_INDEX_LIST3);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue