pan/bi: Avoid masked writes for now
Our swizzle lowering optimizations depend on replication of scalar fp16. This holds on Bifrost (at least for now), but not on Valhall which has proper support for write masks. For now, enforce Bifrost-compatible behaviour as we do not make use of the write masks on Valhall yet. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15793>
This commit is contained in:

committed by
Marge Bot

parent
ba5b63f642
commit
170d5a012e
@@ -259,6 +259,12 @@ bi_lower_swizzle(bi_context *ctx)
|
||||
ins->op = BI_OPCODE_MOV_I32;
|
||||
ins->src[0].swizzle = BI_SWIZZLE_H01;
|
||||
}
|
||||
|
||||
/* The above passes rely on replicating destinations. For
|
||||
* Valhall, we will want to optimize this. For now, default
|
||||
* to Bifrost compatible behaviour.
|
||||
*/
|
||||
ins->dest[0].swizzle = BI_SWIZZLE_H01;
|
||||
}
|
||||
|
||||
free(replicates_16);
|
||||
|
Reference in New Issue
Block a user