History log of /external/mesa3d/src/intel/vulkan/anv_image.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
afb19fd70a90a8bab4ae39c957d794bed632aa86 22-Mar-2017 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Return early when unbinding an image

Found by inspection.

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>

(cherry picked from commit c942faf8f37d14e7934a21c15ad2438dde2d501e)
/external/mesa3d/src/intel/vulkan/anv_image.c
0d7d4f973d17d74ea9a177c09a0b70bf7370b190 22-Feb-2017 Nanley Chery <nanley.g.chery@intel.com> anv/image: Remove extra dependency on HiZ-specific variable

surf_usage is only useful to image views that may use HiZ buffers.
Storage image views don't use HiZ buffers.

v2: Update commit message and add an assertion.

Fixes: 055ff2ec521 ("anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ")
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 258af3a856328934d30b7cdf626d5fdba76852f2)
[Emil Velikov: resolve trivial conflicts]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>

Conflicts:
src/intel/vulkan/anv_image.c
/external/mesa3d/src/intel/vulkan/anv_image.c
e3bfa959a836eae4460c4640158d01d4257c883a 19-Jan-2017 Lionel Landwerlin <lionel.g.landwerlin@intel.com> anv: don't require render target isl bit for depth/stencil surfaces

Blorp can deal with depth/stencil surfaces blits/copies without the
render target requirement. Also having both render target and
depth/stencil requirement is incompatible from isl's point of view.

This fixes an image creation issue in the high level quality settings
of the Unity3D player, which requires a depth texture with src/dst
transfer & 4x multisampling.

v2: Simply aspect checking condition (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 74c23bde5b8155a84233265c56bedac8f38de14e)
/external/mesa3d/src/intel/vulkan/anv_image.c
71334f494acea9ef0372fd4b3cd6557765669421 11-Jan-2017 Nanley Chery <nanley.g.chery@intel.com> anv: Enable sampling from HiZ

v2: Restrict ISL_AUX_USAGE_HIZ to depth aspects

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
2852efcda40274acf3272611c6a3b7731523a72d 12-Jan-2017 Nanley Chery <nanley.g.chery@intel.com> anv: Disable HiZ for input attachments

v2 (Jason Ekstrand):
- Add spec citation
- Drop conditional

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
055ff2ec52143f9d9110a27cea046087de7a0cb5 08-Jan-2017 Nanley Chery <nanley.g.chery@intel.com> anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ

The helper doesn't provide additional functionality over the current
infrastructure.

v2: Add comment to anv_image::aux_usage (Jason Ekstrand)
v3: Clarify comment for aux_usage (Jason Ekstrand)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
5857858aa6c869f4eed31029a376876f50bd6a62 05-Jan-2017 Nanley Chery <nanley.g.chery@intel.com> anv/image: Disable HiZ for depth buffer arrays

We currently don't perform clears or resolves on multiple array layers
with HiZ.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
3fd79558beb3ab156882a206d5a6027fa9db4af7 19-Nov-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Enable fast clears on gen7-8

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
1d5ac0a462ac8c7f41e1e1adb1fc5a7db6038d17 16-Nov-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Set up binding tables and surface states for input attachments

This commit adds the last remaining bits to support input attachments in
the Intel Vulkan driver. For color and depth attachments, we allocate an
input attachment surface state during vkCmdBeginRenderPass like we do for
the render target surface states. This is so that we can incorporate the
clear color and aux information as used in rendering. For stencil, we just
treat it like a regular texture because we don't there is no aux. Also,
only having to worry about at most one input attachment surface for each
attachment makes some of the vkCmdBeginRenderPass code simpler.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
4e91f158e66af03d754231736346839d3cdd638f 25-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Enable "permanent" compression for immutable format images

This commit extends our support of color compression to surfaces without
the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT set. These images will never have
an image view created with a different format then the one set at image
creation time so it's safe to always use compression. We still bail if the
image is used as a storage image because that sometimes ends up using a
different format.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
edb7f67bd9c320cd47af20dc0a854e65fced7d9b 25-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Add an aux_usage field for "default" aux

Initially, the field is set to ISL_AUX_USAGE_NONE so this commit shouldn't
bring any functional changes. Setting this field to something else will
cause all sampled and storage image views to be created with AUX and blorp
will start trying to respect it so set with care.
/external/mesa3d/src/intel/vulkan/anv_image.c
338cdc172a28266b062794084efb7745f07b02a7 25-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Add initial support for Sky Lake color compression

This commit adds basic support for color compression. For the moment,
color compression is only enabled within a render pass and a full resolve
is done before the render pass finishes. All texturing operations still
happen with CCS disabled.
/external/mesa3d/src/intel/vulkan/anv_image.c
a512565b2b9f991729d747a7fefc1f89d68894d2 25-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Memset all aux surfaces (not just HiZ) to 0

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
c3eb58664e5e537b21a75172916b42bd4b5504b3 25-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Rename hiz_surface to aux_surface
/external/mesa3d/src/intel/vulkan/anv_image.c
0c403df310fef209f764acd63a544178f8020247 21-Sep-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Stop force-disabling AUX

Auxiliary surfaces have to be created manually anyway so force-disabling it
does nothing whatsoever at the moment.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
49f08ad77f51cc344e4bfe60ba9f8d9fccfbd753 11-Nov-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Handle null in all destructors

This fixes a bunch of new CTS tests which look for exactly this. Even in
the cases where we just call vk_free to free a CPU data structure, we still
handle NULL explicitly. This way we're less likely to forget to handle
NULL later should we actually do something less trivial.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
d2b4a9da038a200db3c5c61a11d5ea451cc6cc98 19-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Rework the way render target surfaces are allocated

This commit moves the allocation and filling out of surface state from
CreateImageView time to BeginRenderPass time. Instead of allocating the
render target surface state as part of the image view, we allocate it in
the command buffer state at the same time that we set up clears. For
secondary command buffers, we allocate memory for the surface states in
BeginCommandBuffer but don't fill them out; instead, we use our new
SOL-based memcpy function to copy the surface states from the primary
command buffer. This allows us to handle secondary command buffers without
the user specifying the framebuffer ahead-of-time.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04 14-Oct-2016 Dave Airlie <airlied@redhat.com> anv: move to using vk_alloc helpers.

This moves all the alloc/free in anv to the generic helpers.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
2c6d8bff0315716afcdad0156e288bd34eff72bb 14-Oct-2016 Dave Airlie <airlied@redhat.com> anv: drop local MIN/MAX macros.

Use the ones from mesa, most places already did.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
69b2e931d49ff0d0cac1aa39753a447c6d2c059a 08-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Create views directly in VkCreate*View

Without meta, we no longer need the _init helpers and the ability to back
an image view with surface states allocated out of the command buffer.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
0a2c375af95953e5d36da243457f40d458077f50 08-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Get rid of the usage hacks for meta

Now that meta is gone and we're using blorp, we don't need all of the usage
hacks. Instead, the usage provided by the app is exactly the usage that we
want because the app is the only thing creating image views.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
29e289fa655938f7814bdbb3de7996a8a0f04b60 20-Sep-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Add an isl_view to anv_image_view

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
0340548c8e89d724fe6752fe7a665787c4adf361 20-Sep-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Rework our handling of 3-D image array ranges

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
9919a2d34deca437bfbb95d7a869616758bb69fd 07-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Memset hiz surfaces to 0 when binding memory

Nanley Chery (amend):
- Change memset value from 0xff to 0 (a defined value for HiZ).

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
b4bbabf21b5a80e9ee1700cb9d3306666aa244a4 07-Oct-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Move BindImageMemory to anv_image.c

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
917814dccd4354db09a1b7bf977ef2352b74c917 07-Oct-2016 Chad Versace <chad.versace@intel.com> anv: Allocate hiz surface

Nanley Chery:
(rebase)
- Use isl_surf_get_hiz_surf()
(amend)
- Only add a HiZ surface onto a depth/stencil attachment
- Add comment above HiZ surface addition
- Hide HiZ behind INTEL_VK_HIZ prior to BDW
- Disable HiZ for untested cases
- Remove DISABLE_AUX_BIT instead of preventing it from being added

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
/external/mesa3d/src/intel/vulkan/anv_image.c
1eebb60917d0d4462eb16c72d17050d5d21d438a 13-Sep-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Set correct base_array_layer and array_len for storage images

Since Vulkan doesn't allow single-slice 3D storage images, we need to just
set the base_array_layer and array_len to the full size of the 3-D LOD.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
52fa3e83472ff6ad2652bfebc67b9f6860d64f24 31-Aug-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Make image_get_surface_for_aspect_mask const

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
7ddb21708c800dfbe3cea2df6aaaf7aed852761b 28-Aug-2016 Jason Ekstrand <jason.ekstrand@intel.com> intel/isl: Add an isl_swizzle structure and use it for isl_view swizzles

This should be more compact than the enum isl_channel_select[4] that we
were using before. It's also very convenient because we already had such a
structure in the Vulkan driver we just needed to pull it over.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
954c0bfb209c96b05f01bac8cdbead8d306505bb 27-Jul-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Don't create invalid render target surfaces

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
b0d56f2f4f1f4f7ecdf96f0a0246d0db5392e075 28-Jul-2016 Emil Velikov <emil.velikov@collabora.com> anv: remove internal 'validate' layer

Presently the layer has only a single entry point. As mentioned by Jason the
function does not validate anything that isn't checked elsewhere, thus we can
drop the whole thing.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
c8da91aa243dd5dcb4b529ce5be15b45384a50d2 21-Jul-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Assert that the image format is actually supported

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-dev@lists.freedesktop.org>
/external/mesa3d/src/intel/vulkan/anv_image.c
593731ea3cc1aa9385e43ebc18c67574f181e1c3 15-Jul-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Handle VK_WHOLE_SIZE properly for buffer views

The old calculation, which used view->offset, encorporated buffer->offset
into the size calculation where it doesn't belong. This meant that, if
buffer->offset > buffer->size, you would always get a negative size. This
fixes 170 dEQP-VK.renderpass.attachment.* Vulkan CTS tests on Haswell.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
/external/mesa3d/src/intel/vulkan/anv_image.c
1ef80b26d7488c1ac3174d4725d736ae3de9b4fd 25-Jun-2016 Nanley Chery <nanley.g.chery@intel.com> anv/image: Fix initialization of the ISL tiling

If an internal user creates an image with Vulkan tiling VK_IMAGE_TILING_OPTIMAL
and an ISL tiling that isn't set, ISL will fail to create the image as
anv_image_create_info::isl_tiling_flags will be an invalid value.

Correct this by making anv_image_create_info::isl_tiling_flags an opt-in,
filtering bitmask, that allows the caller to specify which ISL tilings are
acceptable, but not contradictory to the Vulkan tiling.

Opt-out of filtering for vkCreateImage.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
fc3650a0a9eca29a9498f663d489ab729f55f65f 09-Jul-2016 Jason Ekstrand <jason.ekstrand@intel.com> isl: Kill off isl_format_layout::bs

Reviewed-by: Chad Versace <chad.versace@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
d82322eb188f258a7dca9ea2b59cc0332dbc4d61 09-Jun-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv,isl: Lower storage image formats in anv

ISL was being a bit too clever for its own good and lowering the format for
us. This is all well and good *if* we always want to lower it. However,
the GL driver selectively lowers the format depending on whether the
surface is write-only or not.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
/external/mesa3d/src/intel/vulkan/anv_image.c
45c93384e519aefba1d28388955b2638f4d26ea3 16-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Add a devinfo argument to the get_format functions
/external/mesa3d/src/intel/vulkan/anv_image.c
7cae59012d98959a997ef96c217adba0dc8b3ed7 16-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/formats: Use the isl_channel_select enum for the swizzle
/external/mesa3d/src/intel/vulkan/anv_image.c
8ed429a4f0d58eafe3e3212552af6fb0cb78feeb 16-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/formats: Add an anv_get_format helper

This commit removes anv_format_for_vk_format and adds an anv_get_format
helper. The anv_get_format helper returns the anv_format by-value. Unlike
anv_format_for_vk_format the format returned by anv_get_format is 100%
accurate and includes any tweaks needed for tiled vs. linear.
anv_get_isl_format is now just a wrapper around anv_get_format that picks
off just the isl_format.
/external/mesa3d/src/intel/vulkan/anv_image.c
aad56f3ee782d3c2682172e5b068119fd2fa7c32 14-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Use aspects for computing full usage
/external/mesa3d/src/intel/vulkan/anv_image.c
fbc23d93e08165e74ad40915bd3ead68b454d4d3 14-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Remove the anv_format member from anv_image
/external/mesa3d/src/intel/vulkan/anv_image.c
c87429c5f1d31d8a95e1173c432775001f8b38a0 14-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Stop using anv_format for image create validation
/external/mesa3d/src/intel/vulkan/anv_image.c
990a7420b6cd6408fb13aa84d9b2a159a11eafc4 14-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Make heavier use of aspects
/external/mesa3d/src/intel/vulkan/anv_image.c
97ba402cc3d5db37778d2bec284df32316cae6d1 13-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Use get_isl_format when creating buffer views
/external/mesa3d/src/intel/vulkan/anv_image.c
234ecf26c65a8909e91313a8b35e2a8a8bbfc0ef 13-May-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Add an aspects field

This makes several checks easier and allows us to avoid calling
anv_format_for_vk_format in a number of cases.
/external/mesa3d/src/intel/vulkan/anv_image.c
d14778656bf818bfb58b8a0ed2c2037b80d91ccb 16-Apr-2016 Grazvydas Ignotas <notasas@gmail.com> anv: fix warnings in release build

Mark variables MAYBE_UNUSED to avoid unused-but-set-variable warnings
in release build.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
ca8c5993bf75cd627115d8545f14dda1e330d189 16-Apr-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Use the has_matching_typed_storage_image_format helper from isl

Reviewed-by: Chad Versace <chad.versace@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
90576ac96303941ffefe50e56aad15ba09459aa8 16-Apr-2016 Jason Ekstrand <jason.ekstrand@intel.com> isl: Take a devinfo in lower_storage_image_format instead of an isl_device

We want to call this function from the shader compiler and having a full
isl_device available at that point isn't practical.

Reviewed-by: Chad Versace <chad.versace@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
b377c1d08ed16ca0abeabc86e8d651036eea3145 31-Mar-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Remove the offset parameter from image_view_init

The only place we were using this was in meta_blit2d which always creates a
new image anyway so we can just use the image offset.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
4caba940869602b750e21a444523b068b1bea339 31-Mar-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Expose the guts of CreateBufferView for meta

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
4eab37d6cda54a4ac600347f764ef223c3a7459f 21-Mar-2016 Nanley Chery <nanley.g.chery@intel.com> anv/image: Enable specifying a surface's minimum pitch

This is required to create multiple, horizontally adjacent, max-width
images from one blit2d surface. This is also required for more accurate
width specification of surfaces within a larger surface (which is seen
as the smaller surface's enclosing region).

Note that anv_image_create_info::stride has been unused since commit,
b36938964063a4072abfd779f5607743dbc3b6f1 .

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
/external/mesa3d/src/intel/vulkan/anv_image.c
a5dc3c0f02aa523d1d3d123b62b9a187821079fe 22-Mar-2016 Nanley Chery <nanley.g.chery@intel.com> anv: Sanitize Image extents and offsets

Prepare Image extents and offsets for internal consumption by assigning
the default values implicitly defned by the spec. Fixes textures on
several Vulkan demos in which the VkImageCopy depth is set to zero when
copying a 2D image.

v2 (Jason Ekstrand):
Replace "prep" with "sanitize"
Make function static inline
Pass structs instead of pointers

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
4e75f9b219f674ea79e6d521dd8a6b1ccd8b3c10 05-Mar-2016 Nanley Chery <nanley.g.chery@intel.com> anv: Implement VK_REMAINING_{MIP_LEVELS,ARRAY_LAYERS}

v2: Subtract the baseMipLevel and baseArrayLayer (Jason)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
b80c8ebc4587a15c823b5223419eadb0ca51cdd1 04-Mar-2016 Nanley Chery <nanley.g.chery@intel.com> isl: Get rid of isl_surf_fill_state_info::level0_extent_px

This field is no longer needed.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
1d9d90d9a6323c37e80b7870946597b470d8dec0 02-Mar-2016 Nanley Chery <nanley.g.chery@intel.com> anv/image: Create a linear image when requested

If a linear image is requested, the only possible result should be a
linearly-tiled surface.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
/external/mesa3d/src/intel/vulkan/anv_image.c
4b34f2ccb8b97aaf46b2dadb8098463969064753 24-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Use isl for filling brw_image_param
/external/mesa3d/src/intel/vulkan/anv_image.c
7363024cbda0c513ad76d22580ce363f30ae1eda 24-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Fill out image_param structs at view creation time
/external/mesa3d/src/intel/vulkan/anv_image.c
e9d126f23b66751ae644c3125668ecf5d1e0f86b 25-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv/image: Add a ussage_mask field to image_view_init

This allows us to avoid doing some unneeded work on the meta paths where we
know that the image view will be used for exactly one thing. The meta
paths also sometimes do things that aren't quite valid like setting the
array slice on a 3-D texture and we want to limit the number of paths that
need to be able to sensibly handle the lies.
/external/mesa3d/src/intel/vulkan/anv_image.c
9d5b8f7709d7cce1493cc0b38c750ad1173f7327 21-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Remove unneeded fiels from anv_image_view
/external/mesa3d/src/intel/vulkan/anv_image.c
ded57c3ccaf79d139ec64ce6711f4de0fea681c7 20-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> anv: Use ISL to fill out surface states
/external/mesa3d/src/intel/vulkan/anv_image.c
9851c8285f7bf70a6cb4bede2ee94110c14acc19 18-Feb-2016 Jason Ekstrand <jason.ekstrand@intel.com> Move the intel vulkan driver to src/intel/vulkan
/external/mesa3d/src/intel/vulkan/anv_image.c