Always defer memory free in swr_resource_destroy
authorGeorge Kyriazis <george.kyriazis@intel.com>
Tue, 10 Jan 2017 23:12:03 +0000 (17:12 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 12 Jan 2017 15:10:15 +0000 (09:10 -0600)
commita61528fa33f8d7f39167e62da6d9317ed84c43b8
tree0b49587ed687f5966570be913eebc5cad7f1fe38
parentce44501ea87ff66267c9cf280e4596065ffebd46
Always defer memory free in swr_resource_destroy

Defer delete on regular resources.  This ensures that any work being done
on the resource is completed before freeing up the resource's memory.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_screen.cpp