summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-05-14 15:15:02 -0700
committerMatt Turner <[email protected]>2014-05-15 10:35:55 -0700
commit006232bcdec77363cc5d123caffac4807871c7b3 (patch)
tree323d739451d2f22fd12f4038c7a48f53d5d0755e /src/mesa/drivers/dri/i965
parent39ae284a6941df5942602c027d4a8863ca35e654 (diff)
i965: Remove blorp unit tests.
They've served their purpose (in transitioning blorp to using fs_generator) and now they just necessitate large amounts of manual labor to regenerate if the disassembler changes. Reviewed-by: Topi Pohjolainen <[email protected]> Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/.gitignore1
-rw-r--r--src/mesa/drivers/dri/i965/Makefile.am7
-rw-r--r--src/mesa/drivers/dri/i965/test_blorp_blit_eu_gen.cpp1092
3 files changed, 1 insertions, 1099 deletions
diff --git a/src/mesa/drivers/dri/i965/.gitignore b/src/mesa/drivers/dri/i965/.gitignore
index 3cf4ba03dbf..cb66728fe31 100644
--- a/src/mesa/drivers/dri/i965/.gitignore
+++ b/src/mesa/drivers/dri/i965/.gitignore
@@ -2,4 +2,3 @@ i965_symbols_test
test_eu_compact
test_vec4_copy_propagation
test_vec4_register_coalesce
-test_blorp_blit_eu_gen
diff --git a/src/mesa/drivers/dri/i965/Makefile.am b/src/mesa/drivers/dri/i965/Makefile.am
index 7ab376cc12f..5809dc65dd6 100644
--- a/src/mesa/drivers/dri/i965/Makefile.am
+++ b/src/mesa/drivers/dri/i965/Makefile.am
@@ -56,8 +56,7 @@ TEST_LIBS = \
TESTS = \
test_eu_compact \
test_vec4_copy_propagation \
- test_vec4_register_coalesce \
- test_blorp_blit_eu_gen
+ test_vec4_register_coalesce
check_PROGRAMS = $(TESTS)
@@ -77,7 +76,3 @@ test_eu_compact_SOURCES = \
test_eu_compact.c
nodist_EXTRA_test_eu_compact_SOURCES = dummy.cpp
test_eu_compact_LDADD = $(TEST_LIBS)
-
-test_blorp_blit_eu_gen_SOURCES = \
- test_blorp_blit_eu_gen.cpp
-test_blorp_blit_eu_gen_LDADD = $(TEST_LIBS)
diff --git a/src/mesa/drivers/dri/i965/test_blorp_blit_eu_gen.cpp b/src/mesa/drivers/dri/i965/test_blorp_blit_eu_gen.cpp
deleted file mode 100644
index aff477bb0d3..00000000000
--- a/src/mesa/drivers/dri/i965/test_blorp_blit_eu_gen.cpp
+++ /dev/null
@@ -1,1092 +0,0 @@
-/*
- * Copyright © 2013 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- */
-
-#include "brw_context.h"
-#include "brw_blorp.h"
-#include "brw_reg.h"
-#include <stdio.h>
-
-const unsigned *
-brw_blorp_blit_test_compile(struct brw_context *brw,
- const brw_blorp_blit_prog_key *key,
- FILE *out);
-
-static char *
-fcopy(FILE *f, size_t *len)
-{
- char *res;
- *len = (size_t)ftell(f);
-
- if (!*len)
- return NULL;
-
- res = (char *)malloc(*len);
-
- (void)fseek(f, 0L, SEEK_SET);
-
- if (fread(res, 1, *len, f) != *len) {
- fclose(f);
- free(res);
- return NULL;
- }
-
- fclose(f);
-
- return res;
-}
-
-static bool
-check(struct brw_context *brw, const brw_blorp_blit_prog_key *key,
- const char *expected, size_t expected_len)
-{
- char *s;
- size_t len;
- FILE *tmp = tmpfile();
-
- if (!tmp) {
- printf("failed to create temporary file for the dump\n");
- return false;
- }
-
- brw_blorp_blit_test_compile(brw, key, tmp);
-
- s = fcopy(tmp, &len);
- if (!s)
- return false;
-
- if (expected_len != len) {
- printf("length (%lu) mismatch (%lu expected)\n", len, expected_len);
- fwrite(s, 1, len, stdout);
- free(s);
- return false;
- }
-
- if (memcmp(s, expected, len)) {
- printf("content mismatch\n");
- fwrite(s, 1, len, stdout);
- free(s);
- return false;
- }
-
- return true;
-}
-
-/**
- * One of the flavours gotten when running piglit test:
- * "ext_framebuffer_multisample-blit-scaled 8"
- */
-static bool
-test_gen7_blend_scaled_msaa_8(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mul(16) g48<1>F g48<8,8,1>F 2F { align1 WE_normal 1H };\n"
- "0x000000b0: mul(16) g50<1>F g50<8,8,1>F 4F { align1 WE_normal 1H };\n"
- "0x000000c0: add(16) g48<1>F g48<8,8,1>F -0.5F { align1 WE_normal 1H };\n"
- "0x000000d0: add(16) g50<1>F g50<8,8,1>F -0.5F { align1 WE_normal 1H };\n"
- "0x000000e0: cmp.l.f0(16) null g48<8,8,1>F 0F { align1 WE_normal 1H switch };\n"
- "0x000000f0: (+f0) mov(16) g48<1>F 0F { align1 WE_normal 1H };\n"
- "0x00000100: cmp.g.f0(16) null g48<8,8,1>F g2.4<0,1,0>F { align1 WE_normal 1H switch };\n"
- "0x00000110: (+f0) mov(16) g48<1>F g2.4<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000120: cmp.l.f0(16) null g50<8,8,1>F 0F { align1 WE_normal 1H switch };\n"
- "0x00000130: (+f0) mov(16) g50<1>F 0F { align1 WE_normal 1H };\n"
- "0x00000140: cmp.g.f0(16) null g50<8,8,1>F g2.5<0,1,0>F { align1 WE_normal 1H switch };\n"
- "0x00000150: (+f0) mov(16) g50<1>F g2.5<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000160: frc(16) g56<1>F g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000170: frc(16) g58<1>F g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000180: rndd(16) g44<1>F g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000190: rndd(16) g46<1>F g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001a0: mul(16) g48<1>F g44<8,8,1>F 0.5F { align1 WE_normal 1H };\n"
- "0x000001b0: mul(16) g50<1>F g46<8,8,1>F 0.25F { align1 WE_normal 1H };\n"
- "0x000001c0: add(16) g52<1>F g48<8,8,1>F 0F { align1 WE_normal 1H };\n"
- "0x000001d0: add(16) g54<1>F g50<8,8,1>F 0F { align1 WE_normal 1H };\n"
- "0x000001e0: mov(16) g44<1>UD g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001f0: mov(16) g46<1>UD g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000200: frc(16) g62<1>F g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000210: frc(16) g64<1>F g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000220: mul(16) g62<1>F g62<8,8,1>F 2F { align1 WE_normal 1H };\n"
- "0x00000230: mul(16) g64<1>F g64<8,8,1>F 8F { align1 WE_normal 1H };\n"
- "0x00000240: add(16) g62<1>F g62<8,8,1>F g64<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000250: mov(16) g60<1>UD g62<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000260: cmp.l.f0(16) null g60<8,8,1>UD 4D { align1 WE_normal 1H switch };\n"
- "0x00000270: (+f0) if(16) 32 18 null 0x00200012UD { align1 WE_normal 1H switch };\n"
- "0x00000280: mov(16) g64<1>UD 5D { align1 WE_normal 1H };\n"
- "0x00000290: cmp.e.f0(16) null g60<8,8,1>UD 1D { align1 WE_normal 1H switch };\n"
- "0x000002a0: (+f0) mov(16) g64<1>UD 2D { align1 WE_normal 1H };\n"
- "0x000002b0: cmp.e.f0(16) null g60<8,8,1>UD 2D { align1 WE_normal 1H switch };\n"
- "0x000002c0: (+f0) mov(16) g64<1>UD 4D { align1 WE_normal 1H };\n"
- "0x000002d0: cmp.e.f0(16) null g60<8,8,1>UD 3D { align1 WE_normal 1H switch };\n"
- "0x000002e0: (+f0) mov(16) g64<1>UD 6D { align1 WE_normal 1H };\n"
- "0x000002f0: else(16) 16 null 0x00000010UD { align1 WE_normal 1H switch };\n"
- "0x00000300: mov(16) g64<1>UD 0D { align1 WE_normal 1H };\n"
- "0x00000310: cmp.e.f0(16) null g60<8,8,1>UD 5D { align1 WE_normal 1H switch };\n"
- "0x00000320: (+f0) mov(16) g64<1>UD 3D { align1 WE_normal 1H };\n"
- "0x00000330: cmp.e.f0(16) null g60<8,8,1>UD 6D { align1 WE_normal 1H switch };\n"
- "0x00000340: (+f0) mov(16) g64<1>UD 7D { align1 WE_normal 1H };\n"
- "0x00000350: cmp.e.f0(16) null g60<8,8,1>UD 7D { align1 WE_normal 1H switch };\n"
- "0x00000360: (+f0) mov(16) g64<1>UD 1D { align1 WE_normal 1H };\n"
- "0x00000370: endif(16) 50 null 0x00000032UD { align1 WE_normal 1H switch };\n"
- "0x00000380: mov(16) g60<1>UD g64<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000390: mov(16) g114<1>UD g60<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003a0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003b0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003c0: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x000003d0: add(16) g52<1>F g48<8,8,1>F 0.5F { align1 WE_normal 1H };\n"
- "0x000003e0: add(16) g54<1>F g50<8,8,1>F 0F { align1 WE_normal 1H };\n"
- "0x000003f0: mov(16) g44<1>UD g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000400: mov(16) g46<1>UD g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000410: frc(16) g62<1>F g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000420: frc(16) g64<1>F g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000430: mul(16) g62<1>F g62<8,8,1>F 2F { align1 WE_normal 1H };\n"
- "0x00000440: mul(16) g64<1>F g64<8,8,1>F 8F { align1 WE_normal 1H };\n"
- "0x00000450: add(16) g62<1>F g62<8,8,1>F g64<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000460: mov(16) g60<1>UD g62<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000470: cmp.l.f0(16) null g60<8,8,1>UD 4D { align1 WE_normal 1H switch };\n"
- "0x00000480: (+f0) if(16) 32 18 null 0x00200012UD { align1 WE_normal 1H switch };\n"
- "0x00000490: mov(16) g64<1>UD 5D { align1 WE_normal 1H };\n"
- "0x000004a0: cmp.e.f0(16) null g60<8,8,1>UD 1D { align1 WE_normal 1H switch };\n"
- "0x000004b0: (+f0) mov(16) g64<1>UD 2D { align1 WE_normal 1H };\n"
- "0x000004c0: cmp.e.f0(16) null g60<8,8,1>UD 2D { align1 WE_normal 1H switch };\n"
- "0x000004d0: (+f0) mov(16) g64<1>UD 4D { align1 WE_normal 1H };\n"
- "0x000004e0: cmp.e.f0(16) null g60<8,8,1>UD 3D { align1 WE_normal 1H switch };\n"
- "0x000004f0: (+f0) mov(16) g64<1>UD 6D { align1 WE_normal 1H };\n"
- "0x00000500: else(16) 16 null 0x00000010UD { align1 WE_normal 1H switch };\n"
- "0x00000510: mov(16) g64<1>UD 0D { align1 WE_normal 1H };\n"
- "0x00000520: cmp.e.f0(16) null g60<8,8,1>UD 5D { align1 WE_normal 1H switch };\n"
- "0x00000530: (+f0) mov(16) g64<1>UD 3D { align1 WE_normal 1H };\n"
- "0x00000540: cmp.e.f0(16) null g60<8,8,1>UD 6D { align1 WE_normal 1H switch };\n"
- "0x00000550: (+f0) mov(16) g64<1>UD 7D { align1 WE_normal 1H };\n"
- "0x00000560: cmp.e.f0(16) null g60<8,8,1>UD 7D { align1 WE_normal 1H switch };\n"
- "0x00000570: (+f0) mov(16) g64<1>UD 1D { align1 WE_normal 1H };\n"
- "0x00000580: endif(16) 50 null 0x00000032UD { align1 WE_normal 1H switch };\n"
- "0x00000590: mov(16) g60<1>UD g64<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005a0: mov(16) g114<1>UD g60<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005b0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005c0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005d0: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x000005e0: add(16) g52<1>F g48<8,8,1>F 0F { align1 WE_normal 1H };\n"
- "0x000005f0: add(16) g54<1>F g50<8,8,1>F 0.25F { align1 WE_normal 1H };\n"
- "0x00000600: mov(16) g44<1>UD g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000610: mov(16) g46<1>UD g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000620: frc(16) g62<1>F g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000630: frc(16) g64<1>F g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000640: mul(16) g62<1>F g62<8,8,1>F 2F { align1 WE_normal 1H };\n"
- "0x00000650: mul(16) g64<1>F g64<8,8,1>F 8F { align1 WE_normal 1H };\n"
- "0x00000660: add(16) g62<1>F g62<8,8,1>F g64<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000670: mov(16) g60<1>UD g62<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000680: cmp.l.f0(16) null g60<8,8,1>UD 4D { align1 WE_normal 1H switch };\n"
- "0x00000690: (+f0) if(16) 32 18 null 0x00200012UD { align1 WE_normal 1H switch };\n"
- "0x000006a0: mov(16) g64<1>UD 5D { align1 WE_normal 1H };\n"
- "0x000006b0: cmp.e.f0(16) null g60<8,8,1>UD 1D { align1 WE_normal 1H switch };\n"
- "0x000006c0: (+f0) mov(16) g64<1>UD 2D { align1 WE_normal 1H };\n"
- "0x000006d0: cmp.e.f0(16) null g60<8,8,1>UD 2D { align1 WE_normal 1H switch };\n"
- "0x000006e0: (+f0) mov(16) g64<1>UD 4D { align1 WE_normal 1H };\n"
- "0x000006f0: cmp.e.f0(16) null g60<8,8,1>UD 3D { align1 WE_normal 1H switch };\n"
- "0x00000700: (+f0) mov(16) g64<1>UD 6D { align1 WE_normal 1H };\n"
- "0x00000710: else(16) 16 null 0x00000010UD { align1 WE_normal 1H switch };\n"
- "0x00000720: mov(16) g64<1>UD 0D { align1 WE_normal 1H };\n"
- "0x00000730: cmp.e.f0(16) null g60<8,8,1>UD 5D { align1 WE_normal 1H switch };\n"
- "0x00000740: (+f0) mov(16) g64<1>UD 3D { align1 WE_normal 1H };\n"
- "0x00000750: cmp.e.f0(16) null g60<8,8,1>UD 6D { align1 WE_normal 1H switch };\n"
- "0x00000760: (+f0) mov(16) g64<1>UD 7D { align1 WE_normal 1H };\n"
- "0x00000770: cmp.e.f0(16) null g60<8,8,1>UD 7D { align1 WE_normal 1H switch };\n"
- "0x00000780: (+f0) mov(16) g64<1>UD 1D { align1 WE_normal 1H };\n"
- "0x00000790: endif(16) 50 null 0x00000032UD { align1 WE_normal 1H switch };\n"
- "0x000007a0: mov(16) g60<1>UD g64<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000007b0: mov(16) g114<1>UD g60<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000007c0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000007d0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000007e0: send(16) g20<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x000007f0: add(16) g52<1>F g48<8,8,1>F 0.5F { align1 WE_normal 1H };\n"
- "0x00000800: add(16) g54<1>F g50<8,8,1>F 0.25F { align1 WE_normal 1H };\n"
- "0x00000810: mov(16) g44<1>UD g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000820: mov(16) g46<1>UD g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000830: frc(16) g62<1>F g52<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000840: frc(16) g64<1>F g54<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000850: mul(16) g62<1>F g62<8,8,1>F 2F { align1 WE_normal 1H };\n"
- "0x00000860: mul(16) g64<1>F g64<8,8,1>F 8F { align1 WE_normal 1H };\n"
- "0x00000870: add(16) g62<1>F g62<8,8,1>F g64<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000880: mov(16) g60<1>UD g62<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000890: cmp.l.f0(16) null g60<8,8,1>UD 4D { align1 WE_normal 1H switch };\n"
- "0x000008a0: (+f0) if(16) 32 18 null 0x00200012UD { align1 WE_normal 1H switch };\n"
- "0x000008b0: mov(16) g64<1>UD 5D { align1 WE_normal 1H };\n"
- "0x000008c0: cmp.e.f0(16) null g60<8,8,1>UD 1D { align1 WE_normal 1H switch };\n"
- "0x000008d0: (+f0) mov(16) g64<1>UD 2D { align1 WE_normal 1H };\n"
- "0x000008e0: cmp.e.f0(16) null g60<8,8,1>UD 2D { align1 WE_normal 1H switch };\n"
- "0x000008f0: (+f0) mov(16) g64<1>UD 4D { align1 WE_normal 1H };\n"
- "0x00000900: cmp.e.f0(16) null g60<8,8,1>UD 3D { align1 WE_normal 1H switch };\n"
- "0x00000910: (+f0) mov(16) g64<1>UD 6D { align1 WE_normal 1H };\n"
- "0x00000920: else(16) 16 null 0x00000010UD { align1 WE_normal 1H switch };\n"
- "0x00000930: mov(16) g64<1>UD 0D { align1 WE_normal 1H };\n"
- "0x00000940: cmp.e.f0(16) null g60<8,8,1>UD 5D { align1 WE_normal 1H switch };\n"
- "0x00000950: (+f0) mov(16) g64<1>UD 3D { align1 WE_normal 1H };\n"
- "0x00000960: cmp.e.f0(16) null g60<8,8,1>UD 6D { align1 WE_normal 1H switch };\n"
- "0x00000970: (+f0) mov(16) g64<1>UD 7D { align1 WE_normal 1H };\n"
- "0x00000980: cmp.e.f0(16) null g60<8,8,1>UD 7D { align1 WE_normal 1H switch };\n"
- "0x00000990: (+f0) mov(16) g64<1>UD 1D { align1 WE_normal 1H };\n"
- "0x000009a0: endif(16) 2 null 0x00000002UD { align1 WE_normal 1H switch };\n"
- "0x000009b0: mov(16) g60<1>UD g64<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000009c0: mov(16) g114<1>UD g60<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000009d0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000009e0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000009f0: send(16) g28<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000a00: lrp(8) g20<1>F g56<4,4,1>F g28<4,4,1>F g20<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000a10: lrp(8) g21<1>F g57<4,4,1>F g29<4,4,1>F g21<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000a20: lrp(8) g22<1>F g56<4,4,1>F g30<4,4,1>F g22<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000a30: lrp(8) g23<1>F g57<4,4,1>F g31<4,4,1>F g23<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000a40: lrp(8) g24<1>F g56<4,4,1>F g32<4,4,1>F g24<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000a50: lrp(8) g25<1>F g57<4,4,1>F g33<4,4,1>F g25<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000a60: lrp(8) g26<1>F g56<4,4,1>F g34<4,4,1>F g26<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000a70: lrp(8) g27<1>F g57<4,4,1>F g35<4,4,1>F g27<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000a80: lrp(8) g4<1>F g56<4,4,1>F g12<4,4,1>F g4<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000a90: lrp(8) g5<1>F g57<4,4,1>F g13<4,4,1>F g5<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000aa0: lrp(8) g6<1>F g56<4,4,1>F g14<4,4,1>F g6<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000ab0: lrp(8) g7<1>F g57<4,4,1>F g15<4,4,1>F g7<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000ac0: lrp(8) g8<1>F g56<4,4,1>F g16<4,4,1>F g8<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000ad0: lrp(8) g9<1>F g57<4,4,1>F g17<4,4,1>F g9<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000ae0: lrp(8) g10<1>F g56<4,4,1>F g18<4,4,1>F g10<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000af0: lrp(8) g11<1>F g57<4,4,1>F g19<4,4,1>F g11<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000b00: lrp(8) g4<1>F g58<4,4,1>F g20<4,4,1>F g4<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000b10: lrp(8) g5<1>F g59<4,4,1>F g21<4,4,1>F g5<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000b20: lrp(8) g6<1>F g58<4,4,1>F g22<4,4,1>F g6<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000b30: lrp(8) g7<1>F g59<4,4,1>F g23<4,4,1>F g7<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000b40: lrp(8) g8<1>F g58<4,4,1>F g24<4,4,1>F g8<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000b50: lrp(8) g9<1>F g59<4,4,1>F g25<4,4,1>F g9<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000b60: lrp(8) g10<1>F g58<4,4,1>F g26<4,4,1>F g10<4,4,1>F { align16 WE_normal 1Q };\n"
- "0x00000b70: lrp(8) g11<1>F g59<4,4,1>F g27<4,4,1>F g11<4,4,1>F { align16 WE_normal 2Q };\n"
- "0x00000b80: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000b90: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000ba0: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000bb0: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000bc0: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_UMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_UMS;
- key.rt_samples = 0;
- key.dst_samples = 0;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = true;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = true;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * One of the flavours gotten when running piglit test:
- * "ext_framebuffer_multisample-blit-scaled 8"
- */
-static bool
-test_gen7_msaa_8_ums_to_cms(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: and(1) g54<1>UD g0<0,1,0>UD 0x000000c0UD { align1 WE_normal };\n"
- "0x00000050: shr(1) g54<1>UD g54<0,1,0>UD 0x00000005UD { align1 WE_normal };\n"
- "0x00000060: mov(16) g56<1>UW 0x00003210V { align1 WE_normal 1H };\n"
- "0x00000070: add(16) g52<1>UD g54<0,1,0>UW g56<1,4,0>UW { align1 WE_normal 1H };\n"
- "0x00000080: add(8) g53<1>UD g54<0,1,0>UW g56.2<1,4,0>UW { align1 WE_normal 1Q };\n"
- "0x00000090: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000b0: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000c0: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000d0: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000e0: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000130: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000140: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000150: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000160: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000170: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000180: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000190: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_UMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_UMS;
- key.rt_samples = 8;
- key.rt_layout = INTEL_MSAA_LAYOUT_CMS;
- key.dst_samples = 8;
- key.dst_layout = INTEL_MSAA_LAYOUT_CMS;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = true;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-static bool
-test_gen7_msaa_8_cms_to_cms(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: and(1) g54<1>UD g0<0,1,0>UD 0x000000c0UD { align1 WE_normal };\n"
- "0x00000050: shr(1) g54<1>UD g54<0,1,0>UD 0x00000005UD { align1 WE_normal };\n"
- "0x00000060: mov(16) g56<1>UW 0x00003210V { align1 WE_normal 1H };\n"
- "0x00000070: add(16) g52<1>UD g54<0,1,0>UW g56<1,4,0>UW { align1 WE_normal 1H };\n"
- "0x00000080: add(8) g53<1>UD g54<0,1,0>UW g56.2<1,4,0>UW { align1 WE_normal 1Q };\n"
- "0x00000090: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000b0: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000c0: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000d0: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000e0: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g114<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) g116<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000130: send(16) g36<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 29, 2) mlen 4 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000140: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000150: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000160: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000170: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000180: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000190: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001a0: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001b0: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001c0: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001d0: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_CMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_CMS;
- key.rt_samples = 8;
- key.rt_layout = INTEL_MSAA_LAYOUT_CMS;
- key.dst_samples = 8;
- key.dst_layout = INTEL_MSAA_LAYOUT_CMS;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = true;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * * One of the flavours gotten when running piglit test:
- * * "ext_framebuffer_multisample-blit-scaled 4"
- * */
-static bool
-test_gen7_msaa_4_ums_to_cms(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g54<1>UW 0x00003210V { align1 WE_normal 1H };\n"
- "0x00000050: mov(8) g52<1>UD g54<1,4,0>UW { align1 WE_normal 1Q };\n"
- "0x00000060: mov(8) g53<1>UD g54.2<1,4,0>UW { align1 WE_normal 1Q };\n"
- "0x00000070: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000080: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000090: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000b0: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000c0: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000e0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000130: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000140: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000150: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000160: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000170: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 4;
- key.tex_layout = INTEL_MSAA_LAYOUT_UMS;
- key.src_samples = 4;
- key.src_layout = INTEL_MSAA_LAYOUT_UMS;
- key.rt_samples = 4;
- key.rt_layout = INTEL_MSAA_LAYOUT_CMS;
- key.dst_samples = 4;
- key.dst_layout = INTEL_MSAA_LAYOUT_CMS;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = true;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 2.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * Gotten when running piglit test:
- * "ext_framebuffer_multisample-alpha-blending"
- */
-static bool
-test_gen7_alpha_blend(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: mov(16) g114<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) g116<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000e0: send(16) g36<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 29, 2) mlen 4 rlen 8 { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) g114<1>UD 0x00000000UD { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000130: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000140: cmp.ne.f0(16) null g36<8,8,1>UD 0x00000000UD { align1 WE_normal 1H switch };\n"
- "0x00000150: (+f0) if(16) 150 150 null 0x00960096UD { align1 WE_normal 1H switch };\n"
- "0x00000160: mov(16) g52<1>UD 0x00000001UD { align1 WE_normal 1H };\n"
- "0x00000170: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000180: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000190: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001a0: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001b0: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x000001c0: add(16) g4<1>F g4<8,8,1>F g12<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001d0: add(16) g6<1>F g6<8,8,1>F g14<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001e0: add(16) g8<1>F g8<8,8,1>F g16<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000001f0: add(16) g10<1>F g10<8,8,1>F g18<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000200: mov(16) g52<1>UD 0x00000002UD { align1 WE_normal 1H };\n"
- "0x00000210: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000220: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000230: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000240: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000250: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000260: mov(16) g52<1>UD 0x00000003UD { align1 WE_normal 1H };\n"
- "0x00000270: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000280: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000290: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000002a0: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000002b0: send(16) g20<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x000002c0: add(16) g12<1>F g12<8,8,1>F g20<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000002d0: add(16) g14<1>F g14<8,8,1>F g22<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000002e0: add(16) g16<1>F g16<8,8,1>F g24<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000002f0: add(16) g18<1>F g18<8,8,1>F g26<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000300: add(16) g4<1>F g4<8,8,1>F g12<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000310: add(16) g6<1>F g6<8,8,1>F g14<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000320: add(16) g8<1>F g8<8,8,1>F g16<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000330: add(16) g10<1>F g10<8,8,1>F g18<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000340: mov(16) g52<1>UD 0x00000004UD { align1 WE_normal 1H };\n"
- "0x00000350: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000360: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000370: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000380: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000390: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x000003a0: mov(16) g52<1>UD 0x00000005UD { align1 WE_normal 1H };\n"
- "0x000003b0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003c0: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003d0: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003e0: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003f0: send(16) g20<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000400: add(16) g12<1>F g12<8,8,1>F g20<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000410: add(16) g14<1>F g14<8,8,1>F g22<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000420: add(16) g16<1>F g16<8,8,1>F g24<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000430: add(16) g18<1>F g18<8,8,1>F g26<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000440: mov(16) g52<1>UD 0x00000006UD { align1 WE_normal 1H };\n"
- "0x00000450: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000460: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000470: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000480: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000490: send(16) g20<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x000004a0: mov(16) g52<1>UD 0x00000007UD { align1 WE_normal 1H };\n"
- "0x000004b0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000004c0: mov(16) g116<1>UD g36<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000004d0: mov(16) g118<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000004e0: mov(16) g120<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000004f0: send(16) g28<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000500: add(16) g20<1>F g20<8,8,1>F g28<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000510: add(16) g22<1>F g22<8,8,1>F g30<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000520: add(16) g24<1>F g24<8,8,1>F g32<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000530: add(16) g26<1>F g26<8,8,1>F g34<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000540: add(16) g12<1>F g12<8,8,1>F g20<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000550: add(16) g14<1>F g14<8,8,1>F g22<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000560: add(16) g16<1>F g16<8,8,1>F g24<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000570: add(16) g18<1>F g18<8,8,1>F g26<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000580: add(16) g4<1>F g4<8,8,1>F g12<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000590: add(16) g6<1>F g6<8,8,1>F g14<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000005a0: add(16) g8<1>F g8<8,8,1>F g16<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000005b0: add(16) g10<1>F g10<8,8,1>F g18<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000005c0: mul(16) g4<1>F g4<8,8,1>F 0.125F { align1 WE_normal 1H };\n"
- "0x000005d0: mul(16) g6<1>F g6<8,8,1>F 0.125F { align1 WE_normal 1H };\n"
- "0x000005e0: mul(16) g8<1>F g8<8,8,1>F 0.125F { align1 WE_normal 1H };\n"
- "0x000005f0: mul(16) g10<1>F g10<8,8,1>F 0.125F { align1 WE_normal 1H };\n"
- "0x00000600: endif(16) 2 null 0x00000002UD { align1 WE_normal 1H switch };\n"
- "0x00000610: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000620: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000630: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000640: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000650: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_CMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_CMS;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = true;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * Gotten when running piglit test:
- * "ext_framebuffer_multisample-unaligned-blit 8 stencil msaa"
- */
-static bool
-test_gen7_unaligned_8_msaa(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: and(16) g54<1>UD g48<8,8,1>UD 0xfff4UW { align1 WE_normal 1H };\n"
- "0x00000050: shr(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000060: and(16) g56<1>UD g50<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000070: shl(16) g56<1>UD g56<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000080: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000090: and(16) g56<1>UD g48<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000000a0: or(16) g44<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000b0: and(16) g54<1>UD g50<8,8,1>UD 0xfffeUW { align1 WE_normal 1H };\n"
- "0x000000c0: shl(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000000d0: and(16) g56<1>UD g48<8,8,1>UD 0x0008UW { align1 WE_normal 1H };\n"
- "0x000000e0: shr(16) g56<1>UD g56<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000000f0: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000100: and(16) g56<1>UD g48<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000110: shr(16) g56<1>UD g56<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000120: or(16) g46<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000130: and(16) g54<1>UD g44<8,8,1>UD 0xfff8UW { align1 WE_normal 1H };\n"
- "0x00000140: shr(16) g54<1>UD g54<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000150: and(16) g56<1>UD g44<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000160: or(16) g48<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000170: and(16) g54<1>UD g46<8,8,1>UD 0xfffcUW { align1 WE_normal 1H };\n"
- "0x00000180: shr(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000190: and(16) g56<1>UD g46<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000001a0: or(16) g50<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001b0: and(16) g54<1>UD g44<8,8,1>UD 0x0004UW { align1 WE_normal 1H };\n"
- "0x000001c0: and(16) g56<1>UD g46<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000001d0: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001e0: and(16) g56<1>UD g44<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000001f0: shr(16) g56<1>UD g56<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000200: or(16) g52<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000210: cmp.ge.f0(16) null g48<8,8,1>UD g2<0,1,0>UD { align1 WE_normal 1H switch };\n"
- "0x00000220: (+f0) cmp.ge.f0(16) null g50<8,8,1>UD g2.2<0,1,0>UD { align1 WE_normal 1H switch };\n"
- "0x00000230: (+f0) cmp.l.f0(16) null g48<8,8,1>UD g2.1<0,1,0>UD { align1 WE_normal 1H switch };\n"
- "0x00000240: (+f0) cmp.l.f0(16) null g50<8,8,1>UD g2.3<0,1,0>UD { align1 WE_normal 1H switch };\n"
- "0x00000250: and(1) g1.14<1>UW f0<0,1,0>UW g1.14<0,1,0>UW { align1 WE_all };\n"
- "0x00000260: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000270: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000280: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000290: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000002a0: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000002b0: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000002c0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000002d0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000002e0: and(16) g54<1>UD g44<8,8,1>UD 0xfffeUW { align1 WE_normal 1H };\n"
- "0x000002f0: shl(16) g54<1>UD g54<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000300: and(16) g56<1>UD g52<8,8,1>UD 0x0004UW { align1 WE_normal 1H };\n"
- "0x00000310: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000320: and(16) g56<1>UD g52<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000330: shl(16) g56<1>UD g56<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000340: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000350: and(16) g56<1>UD g44<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000360: or(16) g48<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000370: and(16) g54<1>UD g46<8,8,1>UD 0xfffeUW { align1 WE_normal 1H };\n"
- "0x00000380: shl(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000390: and(16) g56<1>UD g52<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000003a0: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003b0: and(16) g56<1>UD g46<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000003c0: or(16) g50<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000003d0: and(16) g54<1>UD g48<8,8,1>UD 0xfffaUW { align1 WE_normal 1H };\n"
- "0x000003e0: shl(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000003f0: and(16) g56<1>UD g50<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000400: shl(16) g56<1>UD g56<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000410: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000420: and(16) g56<1>UD g50<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000430: shl(16) g56<1>UD g56<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000440: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000450: and(16) g56<1>UD g48<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000460: or(16) g44<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000470: and(16) g54<1>UD g50<8,8,1>UD 0xfffcUW { align1 WE_normal 1H };\n"
- "0x00000480: shr(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000490: and(16) g56<1>UD g48<8,8,1>UD 0x0004UW { align1 WE_normal 1H };\n"
- "0x000004a0: shr(16) g56<1>UD g56<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000004b0: or(16) g46<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000004c0: and(16) g54<1>UD g44<8,8,1>UD 0xfff8UW { align1 WE_normal 1H };\n"
- "0x000004d0: shr(16) g54<1>UD g54<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x000004e0: and(16) g56<1>UD g44<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x000004f0: or(16) g48<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000500: and(16) g54<1>UD g46<8,8,1>UD 0xfffcUW { align1 WE_normal 1H };\n"
- "0x00000510: shr(16) g54<1>UD g54<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000520: and(16) g56<1>UD g46<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000530: or(16) g50<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000540: and(16) g54<1>UD g44<8,8,1>UD 0x0004UW { align1 WE_normal 1H };\n"
- "0x00000550: and(16) g56<1>UD g46<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000560: or(16) g54<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000570: and(16) g56<1>UD g44<8,8,1>UD 0x0002UW { align1 WE_normal 1H };\n"
- "0x00000580: shr(16) g56<1>UD g56<8,8,1>UD 0x0001UW { align1 WE_normal 1H };\n"
- "0x00000590: or(16) g52<1>UD g54<8,8,1>UD g56<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005a0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005b0: mov(16) g118<1>UD g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005c0: mov(16) g120<1>UD g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005d0: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 30, 2) mlen 8 rlen 8 { align1 WE_normal 1H };\n"
- "0x000005e0: mov(16) g114<1>UD g0<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000005f0: mov(16) g116<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000600: mov(16) g118<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000610: mov(16) g120<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000620: mov(16) g122<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000630: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 10 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_IMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_IMS;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 8;
- key.dst_layout = INTEL_MSAA_LAYOUT_IMS;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = true;
- key.dst_tiled_w = true;
- key.blend = false;
- key.use_kill = true;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * One of the most common flavours gotten running piglit tests:
- * "ext_framebuffer_multisample-*"
- */
-static bool
-test_gen7_simple_src_samples_zero(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: mov(16) g114<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) g116<1>UD 0x00000000UD { align1 WE_normal 1H };\n"
- "0x000000e0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000f0: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 7, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000130: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000140: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 0;
- key.tex_layout = INTEL_MSAA_LAYOUT_NONE;
- key.src_samples = 0;
- key.src_layout = INTEL_MSAA_LAYOUT_NONE;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 0.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-static bool
-test_gen7_bilinear(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g114<1>F g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g116<1>F g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 0, 2) mlen 4 rlen 8 { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) g114<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000e0: mov(16) g116<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) g118<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g120<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000110: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 0;
- key.tex_layout = INTEL_MSAA_LAYOUT_NONE;
- key.src_samples = 0;
- key.src_layout = INTEL_MSAA_LAYOUT_NONE;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = true;
- key.x_scale = 2.000000;
- key.y_scale = 0.000000;
- key.bilinear_filter = true;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-static bool
-test_gen6_alpha_blend(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: shl(16) g54<1>UD g44<8,8,1>UD 1W { align1 WE_normal 1H };\n"
- "0x000000d0: shl(16) g56<1>UD g46<8,8,1>UD 1W { align1 WE_normal 1H };\n"
- "0x000000e0: add(16) g48<1>UD g54<8,8,1>UD 1W { align1 WE_normal 1H };\n"
- "0x000000f0: add(16) g50<1>UD g56<8,8,1>UD 1W { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) m2<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) m4<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: send(16) g4<1>UW m2<8,8,1>F\n"
- " sampler (0, 0, 0, 2) mlen 4 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000130: mov(16) m2<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000140: mov(16) m4<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000150: mov(16) m6<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000160: mov(16) m8<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000170: sendc(16) null m2<8,8,1>F\n"
- " render ( RT write, 1, 0, 12, 0) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 8;
- key.tex_layout = INTEL_MSAA_LAYOUT_UMS;
- key.src_samples = 8;
- key.src_layout = INTEL_MSAA_LAYOUT_UMS;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = true;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 4.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-static bool
-test_gen6_simple_src_samples_zero(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: mov(16) m2<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) m4<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000e0: send(16) g4<1>UW m2<8,8,1>F\n"
- " sampler (0, 0, 7, 2) mlen 4 rlen 8 { align1 WE_normal 1H };\n"
- "0x000000f0: mov(16) m2<1>F g4<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) m4<1>F g6<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) m6<1>F g8<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) m8<1>F g10<8,8,1>F { align1 WE_normal 1H };\n"
- "0x00000130: sendc(16) null m2<8,8,1>F\n"
- " render ( RT write, 1, 0, 12, 0) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 0;
- key.tex_layout = INTEL_MSAA_LAYOUT_NONE;
- key.src_samples = 0;
- key.src_layout = INTEL_MSAA_LAYOUT_NONE;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_F;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = false;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 0.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-/**
- * Gotten by running piglit test:
- * "ext_framebuffer_multisample-int-draw-buffers-alpha-to-one 4 -auto"
- */
-static bool
-test_gen7_multisample_int(struct brw_context *brw)
-{
- static const char expected[] =
- "0x00000000: add(16) g44<1>UW g1.4<2,4,0>UW 0x10101010V { align1 WE_normal 1H };\n"
- "0x00000010: add(16) g46<1>UW g1.5<2,4,0>UW 0x11001100V { align1 WE_normal 1H };\n"
- "0x00000020: mov(16) g48<1>UD g44<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000030: mov(16) g50<1>UD g46<8,8,1>UW { align1 WE_normal 1H };\n"
- "0x00000040: mov(16) g44<1>F g48<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000050: mov(16) g46<1>F g50<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000060: mul(16) g48<1>F g44<8,8,1>F g2.6<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000070: mul(16) g50<1>F g46<8,8,1>F g3<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000080: add(16) g48<1>F g48<8,8,1>F g2.7<0,1,0>F { align1 WE_normal 1H };\n"
- "0x00000090: add(16) g50<1>F g50<8,8,1>F g3.1<0,1,0>F { align1 WE_normal 1H };\n"
- "0x000000a0: mov(16) g44<1>UD g48<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000b0: mov(16) g46<1>UD g50<8,8,1>F { align1 WE_normal 1H };\n"
- "0x000000c0: mov(16) g114<1>UD 0x00000000UD { align1 WE_normal 1H };\n"
- "0x000000d0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000e0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000000f0: send(16) g4<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000100: mov(16) g52<1>UD 0x00000001UD { align1 WE_normal 1H };\n"
- "0x00000110: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000120: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000130: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000140: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000150: avg(16) g4<1>D g4<8,8,1>D g12<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000160: avg(16) g6<1>D g6<8,8,1>D g14<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000170: avg(16) g8<1>D g8<8,8,1>D g16<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000180: avg(16) g10<1>D g10<8,8,1>D g18<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000190: mov(16) g52<1>UD 0x00000002UD { align1 WE_normal 1H };\n"
- "0x000001a0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001b0: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001c0: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x000001d0: send(16) g12<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x000001e0: mov(16) g52<1>UD 0x00000003UD { align1 WE_normal 1H };\n"
- "0x000001f0: mov(16) g114<1>UD g52<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000200: mov(16) g116<1>UD g44<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000210: mov(16) g118<1>UD g46<8,8,1>UD { align1 WE_normal 1H };\n"
- "0x00000220: send(16) g20<1>UW g114<8,8,1>F\n"
- " sampler (0, 0, 31, 2) mlen 6 rlen 8 { align1 WE_normal 1H };\n"
- "0x00000230: avg(16) g12<1>D g12<8,8,1>D g20<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000240: avg(16) g14<1>D g14<8,8,1>D g22<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000250: avg(16) g16<1>D g16<8,8,1>D g24<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000260: avg(16) g18<1>D g18<8,8,1>D g26<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000270: avg(16) g4<1>D g4<8,8,1>D g12<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000280: avg(16) g6<1>D g6<8,8,1>D g14<8,8,1>D { align1 WE_normal 1H };\n"
- "0x00000290: avg(16) g8<1>D g8<8,8,1>D g16<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002a0: avg(16) g10<1>D g10<8,8,1>D g18<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002b0: mov(16) g114<1>D g4<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002c0: mov(16) g116<1>D g6<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002d0: mov(16) g118<1>D g8<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002e0: mov(16) g120<1>D g10<8,8,1>D { align1 WE_normal 1H };\n"
- "0x000002f0: sendc(16) null g114<8,8,1>F\n"
- " render ( RT write, 1, 0, 12) mlen 8 rlen 0 { align1 WE_normal 1H EOT };\n";
- struct brw_blorp_blit_prog_key key;
-
- key.tex_samples = 4;
- key.tex_layout = INTEL_MSAA_LAYOUT_UMS;
- key.src_samples = 4;
- key.src_layout = INTEL_MSAA_LAYOUT_UMS;
- key.rt_samples = 0;
- key.rt_layout = INTEL_MSAA_LAYOUT_NONE;
- key.dst_samples = 0;
- key.dst_layout = INTEL_MSAA_LAYOUT_NONE;
- key.texture_data_type = BRW_REGISTER_TYPE_D;
- key.src_tiled_w = false;
- key.dst_tiled_w = false;
- key.blend = true;
- key.use_kill = false;
- key.persample_msaa_dispatch = false;
- key.blit_scaled = false;
- key.x_scale = 2.000000;
- key.y_scale = 2.000000;
- key.bilinear_filter = false;
-
- return check(brw, &key, expected, sizeof(expected) - 1);
-}
-
-int
-main(int argc, char **argv)
-{
- bool pass = true;
- struct brw_context brw;
-
- memset(&brw, 0, sizeof(brw));
- brw.gen = 7;
-
- pass = test_gen7_blend_scaled_msaa_8(&brw) && pass;
- pass = test_gen7_msaa_8_ums_to_cms(&brw) && pass;
- pass = test_gen7_msaa_8_cms_to_cms(&brw) && pass;
- pass = test_gen7_msaa_4_ums_to_cms(&brw) && pass;
- pass = test_gen7_alpha_blend(&brw) && pass;
- pass = test_gen7_unaligned_8_msaa(&brw) && pass;
- pass = test_gen7_simple_src_samples_zero(&brw) && pass;
- pass = test_gen7_bilinear(&brw) && pass;
- pass = test_gen7_multisample_int(&brw) && pass;
-
- brw.gen = 6;
- pass = test_gen6_alpha_blend(&brw) && pass;
- pass = test_gen6_simple_src_samples_zero(&brw) && pass;
-
- /* Test suite expects zero for success */
- return !pass;
-}