diff options
author | Eric Anholt <[email protected]> | 2014-09-05 13:11:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-09 07:29:16 -0700 |
commit | 2cbdbeb4fad16e2dfd340d8dd5f58a528edbede3 (patch) | |
tree | 6a92dabaca66e7b74d0491e1a541ed22f27a5df3 /src/gallium/drivers | |
parent | a894898255c8e016d56afa08c26a4fc54d0eab13 (diff) |
vc4: Ignore non-address bits of the offset for load/store.
These only get used for full buffer dumps, which we don't support yet
anyway.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_simulator_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_simulator_validate.c b/src/gallium/drivers/vc4/vc4_simulator_validate.c index 00ec301dbb6..cb8b5659016 100644 --- a/src/gallium/drivers/vc4/vc4_simulator_validate.c +++ b/src/gallium/drivers/vc4/vc4_simulator_validate.c @@ -295,7 +295,7 @@ validate_loadstore_tile_buffer_general(VALIDATE_ARGS) if (!vc4_use_handle(exec, 0, VC4_MODE_RENDER, &fbo)) return -EINVAL; - offset = *(uint32_t *)(untrusted + 2); + offset = *(uint32_t *)(untrusted + 2) & ~0xf; if (!check_tex_size(exec, fbo, offset, ((packet_b0 & |