mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
agx: add unit test for pcopy lowering bug
hit by test_basic.local_kernel_scope Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
parent
5b50040c51
commit
96cd467559
1 changed files with 15 additions and 0 deletions
|
|
@ -185,6 +185,21 @@ TEST_F(LowerParallelCopy, Cycle3)
|
|||
});
|
||||
}
|
||||
|
||||
TEST_F(LowerParallelCopy, Immediate64)
|
||||
{
|
||||
agx_index imm = agx_immediate(10);
|
||||
imm.size = AGX_SIZE_64;
|
||||
|
||||
struct agx_copy test_1[] = {
|
||||
{.dest = 4, .src = imm},
|
||||
};
|
||||
|
||||
CASE(test_1, {
|
||||
agx_mov_imm_to(b, agx_register(4, AGX_SIZE_32), 10);
|
||||
agx_mov_imm_to(b, agx_register(6, AGX_SIZE_32), 0);
|
||||
});
|
||||
}
|
||||
|
||||
/* Test case from Hack et al */
|
||||
TEST_F(LowerParallelCopy, TwoSwaps)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue