diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2017-11-20 13:12:12 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2017-12-07 10:19:34 +0100 |
commit | 392638d6b549dbed85ed2a82fa41d38336ac9938 (patch) | |
tree | 2e6375f086745837fbd16aa6e53389a625e001a0 /src/util/simple_mtx.h | |
parent | 67ec314347ed03738cb4eece64c7b25b4ab7d3c8 (diff) |
spirv: fix bug when OpSpecConstantOp calls a conversion
In that case, nir_eval_const_opcode() will evaluate the conversion
but as it was using destination's bit_size, the resulting
value was just a cast of the source constant value. By passing the
source's bit size, it does the conversion properly.
Fixes:
dEQP-VK.spirv_assembly.instruction.*.opspecconstantop.*convert*
v2:
- Remove invalid conversion op cases.
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/util/simple_mtx.h')
0 files changed, 0 insertions, 0 deletions