diff options
author | Kenneth Graunke <[email protected]> | 2018-03-26 16:10:02 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-03-27 18:41:44 -0700 |
commit | fb18d0dbe42150af57c562cea08eed10be6efaa5 (patch) | |
tree | c90d8ca4968178c9c68f22b33da35c71eb763ec1 /src/mesa/drivers/dri/i965/intel_batchbuffer.c | |
parent | 037d738a23d626f23107f7190592d575aabe17fd (diff) |
i965: Drop unnecessary bo->align field.
bo->align is always 0; there's no need to waste 8 bytes storing it.
Thanks to C99 initializers zeroing fields, we can completely drop the
only read of the field altogether.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 9147ff82939..ebc02ff3897 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -170,7 +170,6 @@ add_exec_bo(struct intel_batchbuffer *batch, struct brw_bo *bo) batch->validation_list[batch->exec_count] = (struct drm_i915_gem_exec_object2) { .handle = bo->gem_handle, - .alignment = bo->align, .offset = bo->gtt_offset, .flags = bo->kflags, }; |