anv: Stop setting BO flags in bo_init_new
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 May 2017 18:31:02 +0000 (11:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 May 2017 23:46:38 +0000 (16:46 -0700)
commit00df1cd9d6234cdfc9fb2bf3615196ff83a3c956
treee7260f8407a3baf89680ef6a6cabe84c9392af8d
parent10fad58b31ee2354330152ca4072327d228fc2e7
anv: Stop setting BO flags in bo_init_new

The idea behind doing this was to make it easier to set various flags.
However, we have enough custom flag settings floating around the driver
that this is more of a nuisance than a help.  This commit has the
following functional changes:

 1) The workaround_bo created in anv_CreateDevice loses both flags.
    This shouldn't matter because it's very small and entirely internal
    to the driver.

 2) The bo created in anv_CreateDmaBufImageINTEL loses the
    EXEC_OBJECT_ASYNC flag.  In retrospect, it never should have gotten
    EXEC_OBJECT_ASYNC in the first place.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "17.1" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_queue.c
src/intel/vulkan/genX_query.c