projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65a44a7
)
i965: Fix SURFACE_STATE to handle non-zero aux offsets
author
Ben Widawsky
<ben@bwidawsk.net>
Fri, 2 Dec 2016 19:10:47 +0000
(11:10 -0800)
committer
Ben Widawsky
<ben@bwidawsk.net>
Wed, 18 Jan 2017 17:38:18 +0000
(09:38 -0800)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Daniel Stone <daniels@collabora.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 02aea78e7265b492fc8e3a32f501e028a65088fe..c7c73774c3b3ea14cac4eabc3df47679574d13f9 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@
-143,7
+143,6
@@
brw_emit_surface_state(struct brw_context *brw,
aux_surf = &aux_surf_s;
if (mt->mcs_buf) {
- assert(mt->mcs_buf->offset == 0);
aux_bo = mt->mcs_buf->bo;
aux_offset = mt->mcs_buf->bo->offset64 + mt->mcs_buf->offset;
} else {
@@
-185,7
+184,7
@@
brw_emit_surface_state(struct brw_context *brw,
uint32_t *aux_addr = state + brw->isl_dev.ss.aux_addr_offset;
drm_intel_bo_emit_reloc(brw->batch.bo,
*surf_offset + brw->isl_dev.ss.aux_addr_offset,
- aux_bo, *aux_addr
& 0xfff
,
+ aux_bo, *aux_addr
- aux_bo->offset64
,
read_domains, write_domains);
}
}