i965/fs: Simplify computation of key.input_slots_valid during precompile.
authorPaul Berry <stereotype441@gmail.com>
Tue, 3 Sep 2013 18:55:17 +0000 (11:55 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 16 Sep 2013 19:53:43 +0000 (12:53 -0700)
commita4546ec114853235db375b20fb47ddcd6a7f21e7
treeb2104a8243f8724eec4beae4d2cbc2f0f1137621
parent8a36f4382be0b9ad357f589dc326e14593bdbe8e
i965/fs: Simplify computation of key.input_slots_valid during precompile.

The for loop was rather silly.  In addition to checking brw->gen < 6
on each loop iteration, it took pains to exclude bits from
fp->Base.InputsRead that don't correspond to fragment shader inputs.
But those bits would never have been set in the first place, since the
only bits that are ever set in fp->Base.InputsRead are fragment shader
inputs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp