OSDN Git Service

vc4: Ignore non-address bits of the offset for load/store.
authorEric Anholt <eric@anholt.net>
Fri, 5 Sep 2014 20:11:05 +0000 (13:11 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 9 Sep 2014 14:29:16 +0000 (07:29 -0700)
These only get used for full buffer dumps, which we don't support yet
anyway.

src/gallium/drivers/vc4/vc4_simulator_validate.c

index 00ec301..cb8b565 100644 (file)
@@ -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 &