summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2018-06-21 17:06:26 -0400
committerRob Clark <[email protected]>2018-06-22 08:23:10 -0400
commitd5ff36b97b1686504e666747e8a9bd9b318ba25b (patch)
tree21fd6036c6a5dd36e9b563f2ea55d93b73e049a8 /src/gallium/drivers
parent69ae42ca4c1c3886d82a5eb22980b5f02cc0ad54 (diff)
freedreno: a2xx: increase size of the offset field in instr_fetch_vtx_t
The offset field is 22 bit large. 11 bits are necessary because MaxVertexAttribRelativeOffset = 2047 Signed-off-by: Jonathan Marek <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/instr-a2xx.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/instr-a2xx.h b/src/gallium/drivers/freedreno/a2xx/instr-a2xx.h
index 0d6e138daf9..ac972ed35a1 100644
--- a/src/gallium/drivers/freedreno/a2xx/instr-a2xx.h
+++ b/src/gallium/drivers/freedreno/a2xx/instr-a2xx.h
@@ -366,10 +366,8 @@ typedef struct PACKED {
uint8_t pred_select : 1;
/* dword2: */
uint8_t stride : 8;
- /* possibly offset and reserved4 are swapped on a200? */
- uint8_t offset : 8;
- uint8_t reserved4 : 8;
- uint8_t reserved5 : 7;
+ uint32_t offset : 22;
+ uint8_t reserved4 : 1;
uint8_t pred_condition : 1;
} instr_fetch_vtx_t;