i965: revert part of commit 4f4907d69f
The drm_intel_gem_bo_map_gtt() call that replaced dri_bo_map() is producing errors like: intel_bufmgr_gem.c:689: Error preparing buffer map 39 (vp_const_buffer): Invalid argument . and returning NULL, causing a segfault in the memcpy(). Just reverting until we can get to the root issue...
This commit is contained in:
parent
ae69a04650
commit
a9a363f829
|
@ -353,10 +353,10 @@ update_constant_buffer(struct brw_context *brw,
|
||||||
assert(const_buffer);
|
assert(const_buffer);
|
||||||
assert(const_buffer->size >= size);
|
assert(const_buffer->size >= size);
|
||||||
|
|
||||||
drm_intel_gem_bo_map_gtt(const_buffer);
|
dri_bo_map(const_buffer, GL_TRUE);
|
||||||
map = const_buffer->virtual;
|
map = const_buffer->virtual;
|
||||||
memcpy(map, params->ParameterValues, size);
|
memcpy(map, params->ParameterValues, size);
|
||||||
drm_intel_gem_bo_unmap_gtt(const_buffer);
|
dri_bo_unmap(const_buffer);
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue