i965: Disable PrimitiveID upload.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Feb 2012 19:43:10 +0000 (11:43 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Feb 2012 22:57:26 +0000 (14:57 -0800)
commitc59bdee12ebc14fb97e33b8ef9df666422dafba5
treea6c5bc5be5551d51bf2a728a8ab20bbd2d71ff87
parente9bcdc2c37501dc6c7dce8960ec74ccb9f8b09e8
i965: Disable PrimitiveID upload.

We currently don't support gl_PrimitiveID, and I believe asking the
hardware to generate it results in vertex cache invalidations.

This could result in slowdowns for applications that use gl_InstanceID,
which would be counter-productive.  Just turn it off for now.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_draw_upload.c