Kristian Høgsberg Kristensen
00494c6cb7
vk: Document how depth/stencil formats work in anv_image_create()
...
This reverts commits
e17ed04 * vk/image: Don't double-allocate stencil buffers
1ee2d1c * vk/image: Teach anv_image_choose_tile_mode about WMAJOR
and instead adds a comment to describe the subtlety of how we create
images for stencil only formats.
2015-06-11 22:07:16 -07:00
Kristian Høgsberg Kristensen
a5b49d2799
vk: Use generated headers with fixed point support
...
The generated headers now convert float in the template struct to the
correct fixed point format.
2015-06-11 09:25:04 -07:00
Jason Ekstrand
2a3c29698c
vk/image: Add a bunch of asserts
2015-06-10 21:04:51 -07:00
Chad Versace
e17ed04b03
vk/image: Don't double-allocate stencil buffers
...
If the main surface has format S8_UINT, then don't allocate the
auxiliary stencil surface.
2015-06-09 16:39:28 -07:00
Chad Versace
1ee2d1c3fc
vk/image: Teach anv_image_choose_tile_mode about WMAJOR
2015-06-09 16:38:55 -07:00
Chad Versace
f1db3b3869
vk/image: Factor tile mode selection into separate function
...
Because it will eventually need to get smarter.
2015-06-09 16:38:42 -07:00
Chad Versace
081f617b5a
vk/image: Stop hardcoding alignment of stencil surfaces
...
Look up the alignment from anv_tile_info_table.
2015-06-09 14:16:56 -07:00
Chad Versace
e6bd568f36
vk/image: Rewrite tile info table
...
- Reduce the number of table lookups in anv_image_create from 4 to 1.
- Add field for surface alignment.
- Shorten field names tile_width, tile_height -> width, height.
2015-06-09 14:16:45 -07:00
Chad Versace
5b777e2bcf
vk/image: Delete an old comment
2015-06-09 14:14:29 -07:00
Jason Ekstrand
9d6f55dedf
vk/surface_view: Add a destructor
2015-06-09 12:36:23 -07:00
Chad Versace
e6162c2fef
vk/image: Add anv_image::h_align,v_align
...
Use the new fields to compute RENDER_SURFACE_STATE.Surface*Alignment.
We still hardcode them to 4, though.
2015-06-09 12:19:24 -07:00
Kristian Høgsberg Kristensen
52637c0996
vk: Quiet a few warnings
2015-06-08 08:51:40 -07:00
Kristian Høgsberg Kristensen
5caa408579
vk: Indent tables to align '=' at column 48
2015-05-31 22:36:26 -07:00
Chad Versace
fab9011c44
vk/image: Assert that VkImageTiling is valid
2015-05-27 16:21:04 -07:00
Chad Versace
c0739043b3
vk/image: Remove trailing whitespace
2015-05-27 16:15:47 -07:00
Kristian Høgsberg
0dbed616af
vk: Add support for texture component swizzle
...
This also drops the share create_surface_state helper and moves filling
out SURFACE_STATE directly into anv_image_view_init() and
anv_color_attachment_view_init().
2015-05-26 11:27:29 -07:00
Kristian Høgsberg
37743f90bc
vk: Set up depth and stencil buffers
2015-05-25 20:20:31 -07:00
Kristian Høgsberg
0997a7b2e3
vk: Add basic MOCS settings
...
This matches what we do for GL.
2015-05-25 20:20:31 -07:00
Kristian Høgsberg
a29df71dd2
vk: Add WSI implementation
2015-05-20 20:34:52 -07:00
Jason Ekstrand
4668bbb161
vk/image: Factor view creation out into separate *_init functions
...
The *_init functions work basically the same as the Vulkan entrypoints
except that they act on an already-created view and take an optional
command buffer option. If a command buffer is given, the surface state is
allocated out of the command buffer's state stream.
2015-05-18 20:57:43 -07:00
Kristian Høgsberg
60ebcbed54
vk: Start Implementing vkGetFormatInfo()
...
We move the format table and vkGetFormatInfo to their own file in the
process.
2015-05-18 10:27:07 -07:00
Kristian Høgsberg
454345da1e
vk: Add script for generating ifunc entry points
...
This lets us generate a hash table for vkGetProcAddress and lets us call
public functions internally without the public entrypoint overhead.
2015-05-18 10:27:02 -07:00
Kristian Høgsberg
f5b0f1351f
vk: Consolidate image, buffer and color attachment views
...
These are all just surface state, offset and a bo.
2015-05-15 15:22:29 -07:00
Jason Ekstrand
1f7dcf9d75
vk/image: Stash more information in images and views
2015-05-13 22:22:59 -07:00
Jason Ekstrand
ffe9f60358
vk: Add stub() and stub_return() macros and mark piles of functions as stubs
2015-05-12 13:45:02 -07:00
Kristian Høgsberg
6a895c6681
vk: Add 32 bpc signed and unsigned integer formats
2015-05-11 23:25:29 -07:00
Kristian Høgsberg
099faa1a2b
vk: Store bo pointer in anv_image and anv_buffer
...
We don't need to point back to the memory object the bo came from.
Pointing directly to a bo lets us bind images and buffers to other
bos - like our allocator bos.
2015-05-11 23:25:28 -07:00
Kristian Høgsberg
769785c497
Add vulkan driver for BDW
2015-05-09 11:38:32 -07:00