Chad Versace
5f46c4608f
vk: Fix indentation of anv_dynamic_cb_state
2015-07-14 18:19:10 -07:00
Chad Versace
0eeba6b80c
vk: Add finishmes for VkDescriptorPool
...
VkDescriptorPool is a stub object. As a consequence, it's impossible to
free descriptor set memory.
2015-07-14 18:19:00 -07:00
Jason Ekstrand
2b5a4dc5f3
vk: Add vulkan-138 and remove vulkan-0.132
...
Now, 138 is the target and not 132. Once object destruction is finished,
we can delete 138 as it will be identical to vulkan.h
2015-07-14 17:54:13 -07:00
Jason Ekstrand
1f658bed70
vk/device: Add stub support for command pools
...
Real support isn't really that far away. We just need a data structure
with a linked list and a few tests.
2015-07-14 17:40:00 -07:00
Jason Ekstrand
ca7243b54e
vk/vulkan.h: Add the stuff for cross-queue resource sharing
...
We only have one queue, so this is currently a no-op on our implementation.
2015-07-14 17:20:50 -07:00
Jason Ekstrand
553b4434ca
vk/vulkan.h: Add a couple of size fields for specialization constants
2015-07-14 17:12:39 -07:00
Jason Ekstrand
e5db209d54
vk/vulkan.h: Move around buffer image granularities
2015-07-14 17:10:37 -07:00
Jason Ekstrand
c7fcfebd5b
vk: Add stubs for all the sparse resource stuff
2015-07-14 17:06:11 -07:00
Jason Ekstrand
2a9136feb4
vk/image: Add a stub for the new ImageFormatProperties function
...
This lets the client query about things like multisample. We don't do
multisample right now, so I'll let Chad deal with that when he gets to it.
2015-07-14 17:05:30 -07:00
Jason Ekstrand
2c4dc92f40
vk/vulkan.h: Rename FormatInfo to FormatProperties
2015-07-14 17:04:46 -07:00
Jason Ekstrand
d7f44852be
vk/vulkan.h: Re-order some #define's
2015-07-14 16:41:39 -07:00
Jason Ekstrand
1fd3bc818a
vk/vulkan.h: Rename a function parameter
2015-07-14 16:39:01 -07:00
Jason Ekstrand
2e2f48f840
vk: Remove abreviations
2015-07-14 16:34:31 -07:00
Jason Ekstrand
02db21ae11
vk: Add the new extension/layer enumeration entrypoints
2015-07-14 16:11:21 -07:00
Eric Anholt
7124feba1b
vc4: Cache the texture p1 for the sampler.
...
Cuts another 12% of vc4_uniforms.o, in exchange for computing it at
CSO creation time.
2015-07-14 15:17:58 -07:00
Eric Anholt
0f4d2b0a2d
vc4: Cache texture p0/p1 setup for the sampler view.
...
In exchange for a bit of space and computation in CSO setup, we cut
vc4_uniform.c (draw time) code size by 4.8%.
2015-07-14 15:17:58 -07:00
Eric Anholt
1835ce6e35
vc4: Move uniforms handling to a separate file.
...
The rest of vc4_program.c is about compiling, while this is about
uniform emit at draw time.
2015-07-14 15:17:58 -07:00
Eric Anholt
9476b11d6e
vc4: Fix some -Wdouble-promotion warnings.
...
No code generation changes from this, but it'll be useful to have this
next time I go checking -Wdouble-promotion.
2015-07-14 15:17:58 -07:00
Jason Ekstrand
a463eacb8f
vk/vulkan.h: Change maxAnisotropy to a float
2015-07-14 15:04:11 -07:00
Jason Ekstrand
98957b18d2
vk/vulkan.h: Add the VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT flag
2015-07-14 15:03:39 -07:00
Jason Ekstrand
a35811d086
vk/vulkan.h: Rename a couple of function parameters
...
No functional change.
2015-07-14 15:03:01 -07:00
Jason Ekstrand
55723e97f1
vk: Split the memory requirements/binding functions
2015-07-14 14:59:39 -07:00
Jason Ekstrand
ccb2e5cd62
vk: Make barriers more precise (rev. 133)
2015-07-14 14:50:35 -07:00
Jordan Justen
320089dbd6
i965/cs: Initialize GPGPU Thread Count
...
This field should always be set for gen8. In the bdw PRM, Volume 2d:
Command Reference: Structures under INTERFACE_DESCRIPTOR_DATA, DWORD
6, Bits 9:0, Number of Threads in GPGPU Thread Group:
"This field should not be set to 0 even if the barrier is disabled,
since an accurate value is needed for proper pre-emption."
In the HSW PRM, the it doesn't mention that it must always be set, but
it should not hurt.
Reported-by: Kristian Høgsberg <krh@bitplanet.net >
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Ben Widawsky <ben@bwidawsk.net >
2015-07-14 14:44:48 -07:00
Jason Ekstrand
30445f8f7a
vk: Split the dynamic state binding function into one per state
2015-07-14 14:26:10 -07:00
Jason Ekstrand
d2c0870ff3
vk/vulkan.h: Rename a function parameter to match 132
2015-07-14 14:11:04 -07:00
Eric Anholt
cd7dd45bfe
vc4: Fix compiler warnings on release builds.
2015-07-14 11:39:28 -07:00
Jason Ekstrand
8478350992
vk: Implement Multipass
2015-07-14 11:37:14 -07:00
Eric Anholt
1e80c9fab9
vc4: Add better debug for register allocation failure.
2015-07-14 11:33:54 -07:00
Jason Ekstrand
68768c40be
vk/vulkan.h: Re-arrange some enums and definitions in preparation for 131
2015-07-14 11:32:15 -07:00
Eric Anholt
3df7892878
vc4: Drop reloc_count tracking for debug asserts on non-debug builds.
...
Cuts another 88 bytes of compiled code.
2015-07-14 11:31:57 -07:00
Eric Anholt
7432017f65
vc4: Rework cl handling to be friendlier to the compiler.
...
Drops 680 bytes of code, from avoiding a bunch of extra updates to the
next pointer in the struct.
2015-07-14 11:31:57 -07:00
Eric Anholt
a0d3915663
vc4: Make a helper function for getting the current offset in the CL.
...
I needed to rewrite this a bit for safety checking in the next commit.
Despite being a static inline of the same thing that was being done, we
lose 36 bytes of code for some reason.
2015-07-14 11:31:57 -07:00
Eric Anholt
748bf459b4
vc4: Drop separate cl*_reloc_hindex().
...
Now that RCL generation is in the kernel, we don't have any other
callers. Oddly, the compiler generates another 8 bytes of code for
this, but the simplification is worth it.
2015-07-14 11:31:57 -07:00
Eric Anholt
e4c540f6d0
vc4: Store reloc pointers as pointers, not offsets.
...
Now that we don't resize the CL as we build (it's set up at the top by
vc4_start_draw()), we can store the pointers instead of offsets from
the base. Saves a bit of math in emitting relocs (about 60 bytes of
code).
2015-07-14 11:31:57 -07:00
Eric Anholt
ab80519b3c
vc4: Add perf debug for when we wait on BOs.
2015-07-14 11:31:57 -07:00
Chad Versace
66cbb7f76d
vk/0.132: Add vkDestroyRenderPass()
2015-07-14 11:21:31 -07:00
Chad Versace
6d0ed38db5
vk/0.132: Add vkDestroy*View()
...
vkDestroyColorAttachmentView
vkDestroyDepthStencilView
These functions are not in the 0.132 header, but adding them will help
us attain the type-safety API updates more quickly.
2015-07-14 11:19:22 -07:00
Chad Versace
1ca611cbad
vk/0.132: Add vkDestroyCommandBuffer()
2015-07-14 11:11:41 -07:00
Chad Versace
6eec0b186c
vk/0.132: Add vkDestroyImageView()
...
Just declare it in vulkan.h. Jason defined the function earlier
in image.c.
2015-07-14 11:09:14 -07:00
Chad Versace
4b2c5a98f0
vk/0.132: Add vkDestroyBufferView()
...
Just declare it in vulkan.h. Jason already defined the function
earlier in vulkan.c.
2015-07-14 11:06:57 -07:00
Chad Versace
08f7731f67
vk/0.132: Add vkDestroyFramebuffer()
2015-07-14 10:59:30 -07:00
Chad Versace
0c8456ef1e
vk/0.132: Add vkDestroyDynamicDepthStencilState()
2015-07-14 10:54:51 -07:00
Chad Versace
b29c929e8e
vk/0.132: Add vkDestroyDynamicColorBlendState()
2015-07-14 10:52:45 -07:00
Chad Versace
5e1737c42f
vk/0.132: Add vkDestroyDynamicRasterState()
2015-07-14 10:51:08 -07:00
Chad Versace
d80fea1af6
vk/0.132: Add vkDestroyDynamicViewportState()
2015-07-14 10:42:45 -07:00
Chad Versace
9250e1e9e5
vk/0.132: Add vkDestroyDescriptorPool()
2015-07-14 10:38:22 -07:00
Chad Versace
f925ea31e7
vk/0.132: Add vkDestroyDescriptorSetLayout()
2015-07-14 10:36:49 -07:00
Chad Versace
ec5e2f4992
vk/0.132: Add vkDestroySampler()
2015-07-14 10:34:00 -07:00
Chad Versace
a684198935
vk/0.132: Add vkDestroyPipelineLayout()
2015-07-14 10:29:47 -07:00