i965: Store the atoms directly in the context
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 11 Nov 2014 14:51:29 +0000 (14:51 +0000)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 15 Jan 2015 01:01:27 +0000 (17:01 -0800)
commit14aadbe8270845750ce0c62cf511fb5b1bcefd0f
tree18087ce72ddd239129d1a755ccc5705a155be17c
parent6ed53c27efc1b3eeb987b84b997633bc9456e5aa
i965: Store the atoms directly in the context

Instead of having an extra pointer indirection in one of the hottest
loops in the driver.

On Bay Trail-D using Fedora 20 compile flags (-m64 -O2 -mtune=generic
for 64-bit and -m32 -march=i686 -mtune=atom for 32-bit), affects
Gl32Batch7:

32-bit: Difference at 95.0% confidence 1.98515% +/- 0.20814% (n=40)
64-bit: Difference at 95.0% confidence 1.5163% +/- 0.811016% (n=60)

v2 (Ken): Cut size of array from 64 to 57 to save memory.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c