<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [BDW, BSW] piglit sampling-2d-array-as-2d-layer fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92609#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [BDW, BSW] piglit sampling-2d-array-as-2d-layer fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92609">bug 92609</a>
from <span class="vcard"><a class="email" href="mailto:ben@bwidawsk.net" title="Ben Widawsky <ben@bwidawsk.net>"> <span class="fn">Ben Widawsky</span></a>
</span></b>
<pre>All layers > 0 are failing. The test attempts to create a texture view with a
2d surface from a source texture 2d array. It writes red to all layers, then
sets a green pixel in layer n, and finally creates a texture view of layer n.
It checks if the texture view has the green pixel. I tried to change the test
to not use a texture view to verify the write to the source texture 2d array is
working but failed to make that pass. I am not sure if there is a bug in the
test modification, or that the 2d array writes or sampling is failing - which
is causing the test to fail. I need to dig more here.
I've compared a batch dump to a dump from SKL (which works according to Mark),
and the only substantive I can find is qpitch. That's interesting because
qpitch might impact such a test. Random qpitch hacking hasn't helped yet.
Here is a patch to simplify the test
diff --git a/tests/spec/arb_texture_view/sampling-2d-array-as-2d-layer.c
b/tests/spec/arb_texture_view/sampling-2d-array-as-2d-layer.c
index 8189044..95f3c64 100644
--- a/tests/spec/arb_texture_view/sampling-2d-array-as-2d-layer.c
+++ b/tests/spec/arb_texture_view/sampling-2d-array-as-2d-layer.c
@@ -51,7 +51,8 @@ typedef struct Params {
/* test a few size combinations that tend to require particular alignment
requirements by the hardware */
static const Params testparams[] = {
- { 8, 1, 1, "1x1" },
+ { 2, 1, 1, "1x1" },
+#if 0
{ 3, 2, 1, "2x1" },
{ 3, 8, 1, "8x1" },
{ 1, 16, 1, "16x1" },
@@ -60,6 +61,7 @@ static const Params testparams[] = {
{ 2, 64, 64, "64x64" },
{ 4, 128, 64, "128x64" },
{ 3, 35, 67, "35x67" }
+#endif
};</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>