diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-05-17 15:34:07 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-05-23 19:12:34 -0700 |
commit | 7c8dfa78b98a12c1c5f74d11433c8554d4c90657 (patch) | |
tree | 3113cd32c9c7eb769e6ed1d06aad861bc010abb8 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | a643bc62463efbd88e34a85cda50a19d8ace6292 (diff) | |
download | external_mesa3d-7c8dfa78b98a12c1c5f74d11433c8554d4c90657.zip external_mesa3d-7c8dfa78b98a12c1c5f74d11433c8554d4c90657.tar.gz external_mesa3d-7c8dfa78b98a12c1c5f74d11433c8554d4c90657.tar.bz2 |
i965/draw: Use the real size for vertex buffers
Previously, we were using the size of the BO which may be substantially
larger than the actual vertex buffer size.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 76ed1de..7a3afc9 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -569,6 +569,7 @@ struct brw_vertex_buffer { /** Buffer object containing the uploaded vertex data */ drm_intel_bo *bo; uint32_t offset; + uint32_t size; /** Byte stride between elements in the uploaded array */ GLuint stride; GLuint step_rate; |