blorp: support negative offsets in addresses

Similar to anv_address

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 9c1c1888d9 ("intel/fs: put scratch surface in the surface state heap")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19946>
(cherry picked from commit 20e8e1eb06)
This commit is contained in:
Lionel Landwerlin 2022-11-23 09:26:42 +02:00 committed by Eric Engestrom
parent ac303c5d5b
commit 532521adbc
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@
"description": "blorp: support negative offsets in addresses",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9c1c1888d9895d05246005620953ee307d1a17f1"
},

View file

@ -122,7 +122,7 @@ void blorp_batch_finish(struct blorp_batch *batch);
struct blorp_address {
void *buffer;
uint64_t offset;
int64_t offset;
unsigned reloc_flags;
uint32_t mocs;