freedreno/a2xx: fix compressed textures
authorJonathan Marek <jonathan@marek.ca>
Tue, 7 Jul 2020 22:00:55 +0000 (18:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 20:46:08 +0000 (20:46 +0000)
commit344e764b01202d9894c793d393d060dc5530145b
treef6391cb23b686a4f689e696fc68551141dcc0210
parent3021cb3215822aafb4021cf0e44b75b98a76ca86
freedreno/a2xx: fix compressed textures

Two problems:
* Multiply has higher priority than shift
* rsc->layout.format isn't initialized for a2xx

Fixes: 5a8718f01b397 ("freedreno: Make the slice pitch be bytes, not pixels.")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5796>
src/gallium/drivers/freedreno/a2xx/fd2_texture.c