diff options
author | Paul Berry <[email protected]> | 2012-01-23 16:11:05 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-01-25 09:42:49 -0800 |
commit | 6bc08ee56991ac3ca0fa0728c3907835282332b8 (patch) | |
tree | e2a23e7986389f4497787d2f62fd9ca5e2d257e1 /src/gallium | |
parent | 33f8a3cfbe85db6514231d8ebc622af1f2139a13 (diff) |
i965/gen6: Fix segfault in transform feedback to DYNAMIC_DRAW buffers.
When storing data in a buffer of type DYNAMIC_DRAW, we don't create a
drm_intel_bo for it; instead we store the data in system memory and
defer allocation of the GPU buffer until it is needed. Therefore, in
brw_update_sol_surface(), we can't just consult the "buffer" field of
the intel_buffer_object structure; we need to call
intel_bufferobj_buffer() to ensure that the deferred allocation
occurs.
This parallels a similar fix for gen7 (see commit ba6f4c9).
Fixes piglit test EXT_transform_feedback/buffer-usage on gen6.
This is a candidate for the 8.0 release branch.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions