llvmpipe: cleanup of generate_unswizzled_blend 57/6857/1
authorRoland Scheidegger <sroland@vmware.com>
Mon, 3 Jun 2013 14:01:05 +0000 (16:01 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 4 Jun 2013 22:29:47 +0000 (00:29 +0200)
commitef3e887084fbb36b9041faafc18fb75f6cfa7501
tree59aacd90c457036689d3284d5a92bd3de18f2e25
parent44993c1808dc10da36cac156408a10e05b5dc140
llvmpipe: cleanup of generate_unswizzled_blend

Some parameters were used inconsistently, for instance not using
block_width/block_height/block_size for deferring number of pixels
but rather relying on guesses from the number of fragment shaders etc,
so fix this up (no actual change in behavior since the block size stays
fixed). (Though most of the code would work with different block_height,
with three exceptions, one being the hacked r11g11b10 conversions and
twiddle code which only work with block_height 2 not 1, and the last
one being blend vector type not being 128bit wide.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_fs.c