mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
[intel] Remove useless intel_region_idle.
The idling it was trying to ensure was covered by the intel_miptree_image_map()->intel_region_map() that immediately followed it.
This commit is contained in:
parent
84a076079d
commit
c5456a6b24
4 changed files with 0 additions and 27 deletions
|
|
@ -49,23 +49,6 @@
|
|||
|
||||
#define FILE_DEBUG_FLAG DEBUG_REGION
|
||||
|
||||
void
|
||||
intel_region_idle(struct intel_context *intel, struct intel_region *region)
|
||||
{
|
||||
DBG("%s\n", __FUNCTION__);
|
||||
/* XXX: Using this function is likely bogus -- it ought to only have been
|
||||
* used before a map, anyway, but leave this cheap implementation of it
|
||||
* for now.
|
||||
*/
|
||||
if (region && region->buffer) {
|
||||
/* Mapping it for read will ensure that any acceleration to the region
|
||||
* would have landed already.
|
||||
*/
|
||||
dri_bo_map(region->buffer, GL_TRUE);
|
||||
dri_bo_unmap(region->buffer);
|
||||
}
|
||||
}
|
||||
|
||||
/* XXX: Thread safety?
|
||||
*/
|
||||
GLubyte *
|
||||
|
|
|
|||
|
|
@ -73,9 +73,6 @@ void intel_region_release(struct intel_region **ib);
|
|||
|
||||
void intel_recreate_static_regions(struct intel_context *intel);
|
||||
|
||||
void intel_region_idle(struct intel_context *intel,
|
||||
struct intel_region *ib);
|
||||
|
||||
/* Map/unmap regions. This is refcounted also:
|
||||
*/
|
||||
GLubyte *intel_region_map(struct intel_context *intel,
|
||||
|
|
|
|||
|
|
@ -457,10 +457,6 @@ intelTexImage(GLcontext * ctx,
|
|||
if (!pixels)
|
||||
return;
|
||||
|
||||
|
||||
if (intelImage->mt)
|
||||
intel_region_idle(intel, intelImage->mt->region);
|
||||
|
||||
LOCK_HARDWARE(intel);
|
||||
|
||||
if (intelImage->mt) {
|
||||
|
|
|
|||
|
|
@ -64,9 +64,6 @@ intelTexSubimage(GLcontext * ctx,
|
|||
if (!pixels)
|
||||
return;
|
||||
|
||||
if (intelImage->mt)
|
||||
intel_region_idle(intel, intelImage->mt->region);
|
||||
|
||||
LOCK_HARDWARE(intel);
|
||||
|
||||
/* Map buffer if necessary. Need to lock to prevent other contexts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue