llvmpipe: do 64bit plane calculations in the sse path
authorRoland Scheidegger <sroland@vmware.com>
Sat, 2 Jan 2016 03:59:09 +0000 (04:59 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 7 Jan 2016 23:34:14 +0000 (00:34 +0100)
commit2923c7a0ed92a29da029183356e81ad55e615cf7
treebd4f83e3bd33c2109472a7c4fc76dcdc6638cc01
parentfad283ba9e691d0d5d170f388e75542f2c39e559
llvmpipe: do 64bit plane calculations in the sse path

The sse path was pretty much disabled for practical purposes because the
largest allowed fb size was 128x128. So, adapt it for 64bit plane calculations.
This is actually not that difficult, though a problem is that we can't do
a signed 32x32->64bit mul, only unsigned, so need to fix that up. Overall,
the code still looks reasonable, though it's not like changes there in
setup really make much of a difference in the end...

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_sse.h
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c