aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-01-17 14:28:13 -0800
committerMarge Bot <[email protected]>2020-01-23 22:46:09 +0000
commitd4bc3c93ea56517981b553841c2adbb734a68078 (patch)
treef1de3e4c8bb3c6c0881ad9a903ffb4a3123b9e18 /src/freedreno
parentc1327bc283e0a99f27d97c4a48c89efb5248c93d (diff)
freedreno: Fix OUT_REG() on address regs without a .bo supplied.
Sometimes you want to zero out an address by supplying a NULL BO, but without this we would end up only emitting one dword. Increases size of fd6_gmem.o by .8%, though it's not clear to me why (no obvious terrible codegen happening) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3455>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/registers/gen_header.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/registers/gen_header.py b/src/freedreno/registers/gen_header.py
index f11724d707a..887656fd5d8 100644
--- a/src/freedreno/registers/gen_header.py
+++ b/src/freedreno/registers/gen_header.py
@@ -179,6 +179,7 @@ class Bitset(object):
print(" fields.unknown | fields.dword,")
if address:
+ print(" .is_address = true,")
print(" .bo = fields.bo,")
if f.type == "waddress":
print(" .bo_write = true,")