i965: Drop index buffer re-alignment code.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Jun 2017 18:16:06 +0000 (11:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Jun 2017 23:21:44 +0000 (16:21 -0700)
commitd2c4f714d1a7752ad773a2662bf9800e0ea0b0c1
treeb5d7c9578230b677c09c6da345974fec21eb2f7f
parentc1b1cad586115ee37bd808b4241ad881c6ade63e
i965: Drop index buffer re-alignment code.

This shouldn't ever happen - GL requires it to be aligned:

   "Clients must align data elements consistent with the requirements
    of the client platform, with an additional base-level requirement
    that an offset within a buffer to a datum comprising N basic
    machine units be a multiple of N."

Mesa should reject unaligned index buffers for us - we shouldn't have
to handle them in the driver.

Note that Gallium already makes this assumption.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c