[Mesa-dev] [PATCH 1/6] swr: only store up to the LOD size
Rowley, Timothy O
timothy.o.rowley at intel.com
Tue Nov 29 19:10:40 UTC 2016
Reviewed-by: Tim Rowley <timothy.o.rowley at intel.com<mailto:timothy.o.rowley at intel.com>>
On Nov 22, 2016, at 7:37 PM, Ilia Mirkin <imirkin at alum.mit.edu<mailto:imirkin at alum.mit.edu>> wrote:
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu<mailto:imirkin at alum.mit.edu>>
---
src/gallium/drivers/swr/swr_draw.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/swr_draw.cpp b/src/gallium/drivers/swr/swr_draw.cpp
index e8c5b23..c4d5e5c 100644
--- a/src/gallium/drivers/swr/swr_draw.cpp
+++ b/src/gallium/drivers/swr/swr_draw.cpp
@@ -259,7 +259,9 @@ swr_store_render_target(struct pipe_context *pipe,
if (renderTarget->pBaseAddress) {
swr_update_draw_context(ctx);
SWR_RECT full_rect =
- {0, 0, (int32_t)renderTarget->width, (int32_t)renderTarget->height};
+ {0, 0,
+ (int32_t)u_minify(renderTarget->width, renderTarget->lod),
+ (int32_t)u_minify(renderTarget->height, renderTarget->lod)};
SwrStoreTiles(ctx->swrContext,
1 << attachment,
post_tile_state,
--
2.7.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161129/27b61e8c/attachment.html>
More information about the mesa-dev
mailing list