summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-11-05 16:24:58 -0800
committerEric Anholt <[email protected]>2013-11-12 15:04:28 -0800
commit9b3e1592c26a183580342282e509d906d78bb6f6 (patch)
tree607643881001eeb643c4ae898ec9026a82edf365
parent8bd45a7e7ed8be3f5bb13689d249fc886cf73067 (diff)
i965: Fix undefined value usage in ABO setup.
Fixes a compiler warning. Cc: "10.0" <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c2
1 files changed, 1 insertions, 1 deletions
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 20886888ef4..662c975edc1 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -890,7 +890,7 @@ brw_upload_abo_surfaces(struct brw_context *brw,
struct intel_buffer_object *intel_bo =
intel_buffer_object(binding->BufferObject);
drm_intel_bo *bo = intel_bufferobj_buffer(
- brw, intel_bo, binding->Offset, bo->size - binding->Offset);
+ brw, intel_bo, binding->Offset, intel_bo->Base.Size - binding->Offset);
brw->vtbl.create_raw_surface(brw, bo, binding->Offset,
bo->size - binding->Offset,