summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-14 14:45:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-14 14:45:45 +0200
commitc209f5ce26214aabc11743cf71e84668c135585c (patch)
tree01fa59343eda6ecdd0ed9a61de850139282245b3 /src/lib
parentb970cd6521bcb7bc1ed3d03c210c5fad809bd8b0 (diff)
driver: get rid of caching of gpu/cpu pointers
No longer cache logical and GPU address for resource levels but store offsets and query only when needed. This is the first step toward submitting bo's with relocations (just search for `etna_bo_gpu_address` to find all places where GPU addresses are used).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/fbdemos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fbdemos.c b/src/lib/fbdemos.c
index 3885149..7b83096 100644
--- a/src/lib/fbdemos.c
+++ b/src/lib/fbdemos.c
@@ -293,7 +293,7 @@ int etna_fb_bind_resource(struct fb_info *fb, struct pipe_resource *rt_resource_
etna_compile_rs_state(&fb->copy_to_screen[bi], &(struct rs_state){
.source_format = translate_rt_format(rt_resource->base.format, false),
.source_tiling = rt_resource->layout,
- .source_addr = rt_resource->levels[0].address,
+ .source_addr = etna_bo_gpu_address(rt_resource->bo) + rt_resource->levels[0].offset,
.source_stride = rt_resource->levels[0].stride,
.dest_format = fb->rs_format,
.dest_tiling = ETNA_LAYOUT_LINEAR,