<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Vulkan: fast clear isn't working on skl"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94406">94406</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Vulkan: fast clear isn't working on skl
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Vulkan/intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>notasas@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>notasas@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=122118" name="attach_122118" title="bad clear">attachment 122118</a> <a href="attachment.cgi?id=122118&action=edit" title="bad clear">[details]</a></span>
bad clear
On the vulkan branch fast clear isn't working in normal GL, works fine on
master. I couldn't properly bisect because GL isn't working at all in the early
history of the vulkan branch on skl.
>From what I was able to determine the problem shows up after master commit
8a0c85b "i965/gen9: Enable rep clears on gen9" gets merged into vulkan branch.
If I checkout at this commit in master branch it works fine, but at it's merge
point to vulkan branch (958fc04) there is already a problem.
This hack seems to help:
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c
b/src/mesa/drivers/dri/i965/brw_clear.c
index 841ba5d..dfd08de 100644
--- a/src/mesa/drivers/dri/i965/brw_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_clear.c
@@ -240,7 +240,7 @@ brw_clear(struct gl_context *ctx, GLbitfield mask)
}
/* Clear color buffers with fast clear or at least rep16 writes. */
- if (brw->gen >= 6 && (mask & BUFFER_BITS_COLOR)) {
+ if (0) { //brw->gen >= 6 && (mask & BUFFER_BITS_COLOR)) {
if (brw_meta_fast_clear(brw, fb, mask, partial_clear)) {
debug_mask("blorp color", mask & BUFFER_BITS_COLOR);
mask &= ~BUFFER_BITS_COLOR;
Mesa 11.3.0-devel (git-81f30e2)
Intel(R) HD Graphics 530 (Skylake GT2)
kernel: 4.5.0-rc5+</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>