diff options
author | Brian Paul <[email protected]> | 2015-06-18 18:03:29 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-06-19 10:54:24 -0600 |
commit | 6ec4e9c28d54877fbaca04b080c249048c6e7634 (patch) | |
tree | 684a562e303b52b7601494e5ef11196b60ab0e88 /include/pci_ids/radeonsi_pci_ids.h | |
parent | c40f44cc991d9499243063cba95fbdc947c53371 (diff) |
u_vbuf: fix src_offset alignment in u_vbuf_create_vertex_elements()
If the driver says PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY=1,
the driver should never receive a pipe_vertex_element::src_offset value
that's not a multiple of four. But the vbuf code wasn't actually adjusting
the src_offset value when creating the vertex element state object.
We just need to align the src_offset values put in the driver_attribs[]
array.
See the piglit gl-1.5-vertex-buffer-offsets test.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'include/pci_ids/radeonsi_pci_ids.h')
0 files changed, 0 insertions, 0 deletions