<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">On Nov 22, 2016, at 7:37 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/swr_state.cpp | 13 +------------<br class="">
1 file changed, 1 insertion(+), 12 deletions(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp<br class="">
index 4119379..8541aca 100644<br class="">
--- a/src/gallium/drivers/swr/swr_state.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_state.cpp<br class="">
@@ -617,18 +617,7 @@ swr_set_framebuffer_state(struct pipe_context *pipe,<br class="">
assert(fb->height <= KNOB_GUARDBAND_HEIGHT);<br class="">
<br class="">
if (changed) {<br class="">
- unsigned i;<br class="">
- for (i = 0; i < fb->nr_cbufs; ++i)<br class="">
- pipe_surface_reference(&ctx->framebuffer.cbufs[i], fb->cbufs[i]);<br class="">
- for (; i < ctx->framebuffer.nr_cbufs; ++i)<br class="">
- pipe_surface_reference(&ctx->framebuffer.cbufs[i], NULL);<br class="">
-<br class="">
- ctx->framebuffer.nr_cbufs = fb->nr_cbufs;<br class="">
-<br class="">
- ctx->framebuffer.width = fb->width;<br class="">
- ctx->framebuffer.height = fb->height;<br class="">
-<br class="">
- pipe_surface_reference(&ctx->framebuffer.zsbuf, fb->zsbuf);<br class="">
+ util_copy_framebuffer_state(&ctx->framebuffer, fb);<br class="">
<br class="">
ctx->dirty |= SWR_NEW_FRAMEBUFFER;<br class="">
}<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>