diff options
author | Eric Anholt <[email protected]> | 2014-10-16 10:17:57 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-10-17 13:09:28 +0100 |
commit | afc3aa373d45775d08babffa49b566f952689efc (patch) | |
tree | d527190ae2c01d0ee7308fc9ec2976ab9a98becb /src/gallium/drivers/vc4/vc4_packet.h | |
parent | 895c90410314103814ca4d2684f94463bd8f243f (diff) |
vc4: Set the primitive list format at the start of rendering.
The other driver does this manually before calling into each tile, but we
can just let it get binned into the tiles (saving repeated kernel
validation on the packet).
Fixes simulator assertion failures on polygon-mode and non-auto texwrap.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_packet.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_packet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_packet.h b/src/gallium/drivers/vc4/vc4_packet.h index e9abfd17314..181f2e01dc9 100644 --- a/src/gallium/drivers/vc4/vc4_packet.h +++ b/src/gallium/drivers/vc4/vc4_packet.h @@ -234,6 +234,12 @@ enum vc4_packet { #define VC4_RENDER_CONFIG_TILE_BUFFER_64BIT (1 << 1) #define VC4_RENDER_CONFIG_MS_MODE_4X (1 << 0) +#define VC4_PRIMITIVE_LIST_FORMAT_16_INDEX (1 << 4) +#define VC4_PRIMITIVE_LIST_FORMAT_32_XY (3 << 4) +#define VC4_PRIMITIVE_LIST_FORMAT_TYPE_POINTS (0 << 0) +#define VC4_PRIMITIVE_LIST_FORMAT_TYPE_LINES (1 << 0) +#define VC4_PRIMITIVE_LIST_FORMAT_TYPE_TRIANGLES (2 << 0) +#define VC4_PRIMITIVE_LIST_FORMAT_TYPE_RHT (3 << 0) enum vc4_texture_data_type { VC4_TEXTURE_TYPE_RGBA8888 = 0, |