pan/va: Default valhall compiler tests to arch v10

Some compiler tests were not specifying arch, which will not work once
v15 support lands. Therefore, default these to v10.
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2026-04-13 17:00:43 +02:00
parent 4d341937b1
commit 64504422ab
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@
static inline void
add_imm(bi_context *ctx)
{
ctx->arch = 10;
struct hash_table_u64 *stats = _mesa_hash_table_u64_create(ctx);
bi_foreach_instr_global(ctx, I) {
va_lower_constants(ctx, I, stats, UINT32_MAX);

View file

@ -26,7 +26,9 @@ strip_discard(bi_context *ctx)
do { \
void *mem_ctx = ralloc_context(NULL); \
bi_builder *A = bit_builder(mem_ctx); \
A->shader->arch = 10; \
bi_builder *B = bit_builder(mem_ctx); \
B->shader->arch = 10; \
{ \
UNUSED bi_builder *b = A; \
test; \