diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-08 15:24:04 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-16 10:31:42 +0100 |
commit | 6403a9e0740409f8e410b115d48db3a1324aae2c (patch) | |
tree | 965294e06f40d0edb2866a944d89077a55271d2b /src/gallium/drivers/radeonsi/si_state.h | |
parent | 50c95d0c546139cb9fd8bafe7d873ce1f35f16b3 (diff) |
radeonsi: fix a subtle bounds checking corner case with 3-component attributes
I'm also sending out a piglit test, gl-2.0/vertexattribpointer-size-3,
which exposes this corner case.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index c444a699ed6..6bfa4e79f06 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -100,6 +100,12 @@ struct si_vertex_element { unsigned count; uint32_t fix_fetch; + + /* Two bits per attribute indicating the size of each vector component + * in bytes if the size 3-workaround must be applied. + */ + uint32_t fix_size3; + uint32_t rsrc_word3[SI_MAX_ATTRIBS]; uint32_t format_size[SI_MAX_ATTRIBS]; struct pipe_vertex_element elements[SI_MAX_ATTRIBS]; |