diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 4 |
1 files changed, 2 insertions, 2 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 61031d29db3..f2aaa0b178e 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -948,7 +948,7 @@ brw_upload_ubo_surfaces(struct brw_context *brw, binding->Offset, binding->BufferObject->Size - binding->Offset); brw_create_constant_surface(brw, bo, binding->Offset, - bo->size - binding->Offset, + binding->BufferObject->Size - binding->Offset, &surf_offsets[i], dword_pitch); } @@ -965,7 +965,7 @@ brw_upload_ubo_surfaces(struct brw_context *brw, binding->Offset, binding->BufferObject->Size - binding->Offset); brw_create_buffer_surface(brw, bo, binding->Offset, - bo->size - binding->Offset, + binding->BufferObject->Size - binding->Offset, &surf_offsets[i], dword_pitch); } |