i965: Drop the memcmp for finding duplicated CURBE uploads.
authorEric Anholt <eric@anholt.net>
Tue, 20 May 2014 18:54:26 +0000 (11:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Jul 2014 19:45:58 +0000 (12:45 -0700)
commitccda1b9ba92d6644a61e646908a8c6e55e310f2e
tree405486212ce936867c199da4ff12fd5fe66f9d34
parent44c63bdd401df9bd4095f4f081e5ab48c9044ce6
i965: Drop the memcmp for finding duplicated CURBE uploads.

At this point, the extra copy of the data and memcmp are as expensive as
just re-uploading.

Note: now that we'll always upload, and brw_constant_buffer watches
BRW_NEW_BATCH anyway, we don't need to explicitly unref the old curbe_bo
at batch reset time.

No significant performance difference on glamor copywinwin10 (n=55),
despite that test having a 98% hit rate on the cache.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c