diff options
author | Alejandro Piñeiro <[email protected]> | 2017-03-28 19:24:12 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2017-03-29 17:34:15 +0200 |
commit | 2f8d6bd57844f86547b95d1381c82aaceb83c356 (patch) | |
tree | 92d211097bd8019210053fd1992418f6c0e7db7c /src/mesa/state_tracker | |
parent | a2db9f9ff42435bc952ae1897b76b42610aeb7b7 (diff) |
i965: expose BRW_OPCODE_[F32TO16/F16TO32] name on gen8+
Technically those hw operations are only available on gen7, as gen8+
support the conversion on the MOV. But, when using the builder to
implement nir operations (example: nir_op_fquantize2f16), it is not
needed to do the gen check. This check is done later, on the final
emission at brw_F32TO16 (brw_eu_emit), choosing between the MOV or the
specific operation accordingly.
So in the middle, during optimization phases those hw operations can
be around for gen8+ too.
Without this patch, several (at least 95) vulkan-cts quantize tests
crashes when using INTEL_DEBUG=optimizer. For example:
dEQP-VK.spirv_assembly.instruction.graphics.opquantize.too_small_vert
v2: simplify the code using GEN_GE (Ilia Mirkin)
v3: tweak brw_instruction_name instead of changing opcode_descs
table, that is used for validation (Matt Turner)
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
0 files changed, 0 insertions, 0 deletions