OSDN Git Service

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)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 2 Jun 2017 21:04:01 +0000 (23:04 +0200)
commit86a8854b118fd42d157a5b640fa7a3a1cad92301
tree6eee1dcab3200c7cb42666371a22b4382609fe01
parent0f042901e3cd451f9a7630376083a805328aebe3
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>
(cherry picked from commit 00df1cd9d6234cdfc9fb2bf3615196ff83a3c956)
[Juan A. Suarez: resolve trivial conflicts]
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Conflicts:
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_queue.c
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/genX_query.c