OSDN Git Service

st/mesa: fix weird UCMP opcode use for bool ubo load
authorRoland Scheidegger <sroland@vmware.com>
Wed, 8 May 2013 22:55:22 +0000 (00:55 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 17 May 2013 22:31:49 +0000 (00:31 +0200)
commit0346e9b3bb24cf79c182a86fd8445251dfaa64ca
treed9931400881c62efa3fc65a00c8a002f72e428ea
parenta5b0452400dd6c2fd2a0921584f6fcee915a8b62
st/mesa: fix weird UCMP opcode use for bool ubo load

I don't know what this code was trying to do but whatever it was it couldn't
have worked since negation of integer boolean inputs while not specified as
outright illegal (not yet at least) won't do anything since it doesn't affect
the result of comparison with zero at all. In fact it looks like the whole
instruction can just be omitted.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp