i965: Respect the no_8 flag on Gen6, not just Gen7+.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Jan 2015 04:46:17 +0000 (20:46 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Jan 2015 08:41:07 +0000 (00:41 -0800)
commitf95733ddb7fff0af923fce3a07ebef78fa3139a4
treebe38fdef7424176577e209824ff2c4a9803fdcb1
parentf591712efeb9a757379d1e89907e2147749aaf6c
i965: Respect the no_8 flag on Gen6, not just Gen7+.

When doing repclears, we only want to use the SIMD16 program, not the
SIMD8 one.  Kristian added this to the Gen7+ code, but apparently we
missed it in the Gen6 code.  This patch copies that code over.

Approximately doubles the performance in a clear microbenchmark from
mesa-demos (clearspd -width 500 -height 500 +color) on Sandybridge.

Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
References: https://code.google.com/p/chrome-os-partner/issues/detail?id=34681
src/mesa/drivers/dri/i965/gen6_wm_state.c