mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
aco/vn: hash opsel for VOP12C
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22069>
This commit is contained in:
parent
c62e5ef82e
commit
9b4ea9ff90
1 changed files with 6 additions and 4 deletions
|
|
@ -84,9 +84,6 @@ struct InstrHash {
|
|||
*/
|
||||
std::size_t operator()(Instruction* instr) const
|
||||
{
|
||||
if (instr->isVOP3())
|
||||
return hash_murmur_32<VALU_instruction>(instr);
|
||||
|
||||
if (instr->isDPP16())
|
||||
return hash_murmur_32<DPP16_instruction>(instr);
|
||||
|
||||
|
|
@ -96,10 +93,15 @@ struct InstrHash {
|
|||
if (instr->isSDWA())
|
||||
return hash_murmur_32<SDWA_instruction>(instr);
|
||||
|
||||
if (instr->isVINTERP_INREG())
|
||||
return hash_murmur_32<VINTERP_inreg_instruction>(instr);
|
||||
|
||||
if (instr->isVALU())
|
||||
return hash_murmur_32<VALU_instruction>(instr);
|
||||
|
||||
switch (instr->format) {
|
||||
case Format::SMEM: return hash_murmur_32<SMEM_instruction>(instr);
|
||||
case Format::VINTRP: return hash_murmur_32<VINTRP_instruction>(instr);
|
||||
case Format::VINTERP_INREG: return hash_murmur_32<VINTERP_inreg_instruction>(instr);
|
||||
case Format::DS: return hash_murmur_32<DS_instruction>(instr);
|
||||
case Format::SOPP: return hash_murmur_32<SOPP_instruction>(instr);
|
||||
case Format::SOPK: return hash_murmur_32<SOPK_instruction>(instr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue