diff options
author | Chad Versace <[email protected]> | 2015-12-09 16:59:02 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-12-14 10:46:27 -0800 |
commit | ee57062e1ec5d1d4666239c5a9c426982861f375 (patch) | |
tree | 414c27925118fb115dd524e2b8c03644ee88730e /src/vulkan/anv_private.h | |
parent | f0d11d5a814b792eb5f5161e9332123aaaf689fb (diff) |
anv: Remove anv_image::surface_type
When building RENDER_SURFACE_STATE, the driver set
SurfaceType = anv_image::surface_type, which was calculated during
anv_image_init(). This was bad because the value of
anv_image::surface_type was taken from a gen-specific header,
gen8_pack.h, even though the anv_image structure is used for all gens.
Replace anv_image::surface_type with a gen-specific lookup function,
anv_surftype(), defined in gen${x}_state.c.
The lookup function contains some useful asserts that caught some nasty
bugs in anv meta, which were fixed in the previous commit.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 3b5a4be8355..07854d3e357 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -1429,8 +1429,6 @@ struct anv_image { struct anv_bo *bo; VkDeviceSize offset; - uint8_t surface_type; /**< RENDER_SURFACE_STATE.SurfaceType */ - bool needs_nonrt_surface_state:1; bool needs_color_rt_surface_state:1; bool needs_storage_surface_state:1; |