freedreno: fix layout pitchalign field not being set for imported buffers
authorJonathan Marek <jonathan@marek.ca>
Sat, 11 Jul 2020 17:49:51 +0000 (13:49 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sat, 11 Jul 2020 17:53:13 +0000 (13:53 -0400)
commit248fbe15675c39de4faa7c083b6f5190cc5560fe
treec55c383eefd05f7832434a6203dc605b19d35b13
parentb8df1c43d24a73740ddd8702d480eded11287b3f
freedreno: fix layout pitchalign field not being set for imported buffers

The pitchalign value was being left to 0 and then wrapping around when
the base offset was subtracted in texture state.

Fixes: 979e7e3680792 ("freedreno/layout: layout simplifications and pitch from level 0 pitch")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5864>
src/gallium/drivers/freedreno/freedreno_resource.c