mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 06:28:08 +02:00
broadcom/compiler: make vir_write_rX return false on platforms without accums
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
This commit is contained in:
parent
310dec3ec9
commit
20b37b273f
1 changed files with 6 additions and 0 deletions
|
|
@ -158,6 +158,9 @@ vir_is_tex(const struct v3d_device_info *devinfo, struct qinst *inst)
|
|||
bool
|
||||
vir_writes_r3(const struct v3d_device_info *devinfo, struct qinst *inst)
|
||||
{
|
||||
if (!devinfo->has_accumulators)
|
||||
return false;
|
||||
|
||||
for (int i = 0; i < vir_get_nsrc(inst); i++) {
|
||||
switch (inst->src[i].file) {
|
||||
case QFILE_VPM:
|
||||
|
|
@ -180,6 +183,9 @@ vir_writes_r3(const struct v3d_device_info *devinfo, struct qinst *inst)
|
|||
bool
|
||||
vir_writes_r4(const struct v3d_device_info *devinfo, struct qinst *inst)
|
||||
{
|
||||
if (!devinfo->has_accumulators)
|
||||
return false;
|
||||
|
||||
switch (inst->dst.file) {
|
||||
case QFILE_MAGIC:
|
||||
switch (inst->dst.index) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue