freedreno: a2xx: increase size of the offset field in instr_fetch_vtx_t
authorJonathan Marek <jonathan@marek.ca>
Thu, 21 Jun 2018 21:06:26 +0000 (17:06 -0400)
committerRob Clark <robdclark@gmail.com>
Fri, 22 Jun 2018 12:23:10 +0000 (08:23 -0400)
The offset field is 22 bit large.
11 bits are necessary because MaxVertexAttribRelativeOffset = 2047

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/instr-a2xx.h

index 0d6e138daf943c87887d86a00cb2d24b1fc83719..ac972ed35a1a3dfea8b867f416dc79005e696ee7 100644 (file)
@@ -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;