intel: emit is_indexed_draw in the same VE than gl_DrawID
authorAntia Puentes <apuentes@igalia.com>
Sat, 28 Apr 2018 12:09:20 +0000 (14:09 +0200)
committerAntia Puentes <apuentes@igalia.com>
Wed, 2 May 2018 09:23:34 +0000 (11:23 +0200)
commit0cbf29fa5592b7feba6a307d597915cc07be828c
tree6f7c343c7326b9ca9dedbc69cf1554d0f0da62ef
parent6ba9088d9c692bfdafdf354ee96f662166582a79
intel: emit is_indexed_draw in the same VE than gl_DrawID

The Vertex Elements are now:
* VE 1: <BaseVertex/firstvertex, BaseInstance, VertexID, InstanceID>
* VE 2: <DrawID, is-indexed-draw, 0, 0>

VE1 is it kept as it was before, VE2 additionally contains the new
system value.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/genX_state_upload.c