projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ab0e4
)
swr: only store up to the LOD size
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Fri, 18 Nov 2016 23:53:05 +0000
(18:53 -0500)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Wed, 30 Nov 2016 01:54:36 +0000
(20:54 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_draw.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/swr/swr_draw.cpp
b/src/gallium/drivers/swr/swr_draw.cpp
index e8c5b23f11d230dac55e744e558d50dd4aacc4f5..c4d5e5c4495c255826e2588780ffc23d91544a56 100644
(file)
--- 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,