i965: downsize *64*PASSTHRU formats to equivalent *32*FLOAT formats on gen < 8
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 11 Apr 2016 08:05:24 +0000 (10:05 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 12 Jan 2017 11:56:12 +0000 (12:56 +0100)
commit329cbe363dcc465764719d91f8f31c8606769ba4
tree759e852f083983539d9df600eceede7034787aaf
parent717f99b34a329d21d7b65e3193c6bf2162ad7964
i965: downsize *64*PASSTHRU formats to equivalent *32*FLOAT formats on gen < 8

gen < 8 doesn't support *64*PASSTHRU formats when emitting
vertices. So in order to provide the equivalent functionality, we need
to downsize the format to equivalent *32*FLOAT, and in some cases
(R64G64B64 and R64G64B64A64) submit two 3DSTATE_VERTEX_ELEMENTS for
each vertex element.

Signed-off-by: Alejandro Piñeiro <apinheiro@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c