nak: Use is_volta() instead of sm == 70
This is a bug fix but Volta is currently disabled by default and it only affects fp64 and fp16. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34302>
This commit is contained in:
committed by
Marge Bot
parent
77eb070465
commit
e612e840d2
@@ -40,7 +40,7 @@ impl ShaderModel70 {
|
||||
| Op::HMul2(_)
|
||||
| Op::HSet2(_)
|
||||
| Op::HSetP2(_)
|
||||
| Op::HMnMx2(_) => if self.sm == 70 {
|
||||
| Op::HMnMx2(_) => if self.is_volta() {
|
||||
// Volta is even slower
|
||||
(13, 15)
|
||||
} else {
|
||||
@@ -197,7 +197,7 @@ impl ShaderModel for ShaderModel70 {
|
||||
}
|
||||
|
||||
fn paw_latency(&self, write: &Op, _dst_idx: usize) -> u32 {
|
||||
if self.sm == 70 {
|
||||
if self.is_volta() {
|
||||
match write {
|
||||
Op::DSetP(_) | Op::HSetP2(_) => 15,
|
||||
_ => 13,
|
||||
|
||||
Reference in New Issue
Block a user