Jason Ekstrand
79ace6def6
vk/meta: Add a magic GLSL shader source macro
2015-05-14 19:07:34 -07:00
Jason Ekstrand
018a0c1741
vk/meta: Add a better comment about the VS for blits
2015-05-14 11:39:32 -07:00
Jason Ekstrand
8c92701a69
vk/test: Use VK_IMAGE_TILING_OPTIMAL for the render target
2015-05-13 22:27:38 -07:00
Jason Ekstrand
4fb8bddc58
vk/test: Do a copy of the RT into a linear buffer and write that to a PNG
2015-05-13 22:23:30 -07:00
Jason Ekstrand
bd5b76d6d0
vk/meta: Add the start of a blit implementation
...
Currently, we only implement CopyImageToBuffer
2015-05-13 22:23:30 -07:00
Jason Ekstrand
94b8c0b810
vk/pipeline: Default to a SamplerCount of 1 for PS
2015-05-13 22:23:30 -07:00
Jason Ekstrand
d3d4776202
vk/pipeline: Add an extra flag for force-disabling the vertex shader
...
This way we can pass in a vertex shader and yet have the pipeline emit an
empty 3DSTATE_VS packet. We need this for meta because we need to trick
the compiler into not deleting our inputs but at the same time disable the
VS so that we can use a rectlist. This should go away once we actually get
SPIR-V.
2015-05-13 22:23:30 -07:00
Jason Ekstrand
a1309c5255
vk/pass: Emit a flushing pipe control at the end of the pass
...
This is rather crude but it at least makes sure that all the render targets
get flushed at the end of the pass. We probably actually want to do
somthing based on image layout traansitions, but this will work for now.
2015-05-13 22:23:30 -07:00
Jason Ekstrand
07943656a7
vk/compiler: Set the binding table texture_start
...
This is by no means a complete solution to the binding table problems.
However, it does make texturing actually work. Before, we were texturing
from the render target since they were both starting at 0.
2015-05-13 22:23:30 -07:00
Jason Ekstrand
cd197181f2
vk/compiler: Zero the prog data
...
We use prog_data[stage] != NULL to determine whether or not we need to
clean up that stage. Make sure it default to NULL.
2015-05-13 22:22:59 -07:00
Jason Ekstrand
1f7dcf9d75
vk/image: Stash more information in images and views
2015-05-13 22:22:59 -07:00
Jason Ekstrand
43126388cd
vk/meta: Save/restore more stuff in cmd_buffer_restore
2015-05-13 22:22:59 -07:00
Chad Versace
50806e8dec
vk: Install headers
...
I need this for building a testsuite.
2015-05-13 17:49:26 -07:00
Kristian Høgsberg
83c7e1f1db
vk: Add support for sampler descriptors
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
4f9eaf77a5
vk: Use a typesafe anv_descriptor struct
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
5c9d77600b
vk: Create and bind a sampler in vk.c
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
18acfa7301
vk: Fix copy-n-paste sType in vkCreateSampler
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
a1ec789b0b
vk: Add a dynamic state stream to anv_cmd_buffer
...
We'll need this for sampler state.
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
3f52c016fa
vk: Move struct anv_sampler to private.h
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
a77229c979
vk: Allocate layout->count number of descriptors
...
layout->count is the number of descriptors the application
requested. layout->total is the number of entries we need across all
stages.
2015-05-13 14:47:11 -07:00
Kristian Høgsberg
a3fd136509
vk: Fill out sampler state from API values
2015-05-13 14:47:11 -07:00
Chad Versace
828817b88f
vk: Ignore vk executable
2015-05-13 12:05:38 -07:00
Kristian Høgsberg
2b7a060178
vk: Fix stale error handling in vkQueueSubmit
2015-05-12 14:38:58 -07:00
Kristian Høgsberg
cb986ef597
vk: Submit all cmd buffers passed to vkQueueSubmit
2015-05-12 14:38:12 -07:00
Kristian Høgsberg
9905481552
vk: Add generated header for HSW and IVB (GEN75 and GEN7)
2015-05-12 14:29:04 -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
Jason Ekstrand
d3b374ce59
vk/util: Add a anv_finishme function/macro
2015-05-12 13:43:36 -07:00
Jason Ekstrand
7727720585
vk/meta: Break setting up meta clear state into it's own functin
2015-05-12 13:03:50 -07:00
Jason Ekstrand
4336a1bc00
vk/pipeline: Add support for disabling the scissor in "extra"
2015-05-12 12:53:01 -07:00
Kristian Høgsberg
d77c34d1d2
vk: Add clear load-op for render passes
2015-05-11 23:25:29 -07:00
Kristian Høgsberg
b734e0bcc5
vk: Add support for driver-internal custom pipelines
...
This lets us disable the viewport, use rect lists and repclear.
2015-05-11 23:25:29 -07:00
Kristian Høgsberg
ad132bbe48
vk: Fix 3DSTATE_VERTEX_BUFFER emission
...
Set VertexBufferIndex to the attribute binding, not the location.
2015-05-11 23:25:29 -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
55b9b703ea
vk: Add anv_batch_emit_merge() helper macro
...
This lets us emit a state packet by merging to half-backed versions,
typically one from the pipeline object and one from a dynamic state
objects.
2015-05-11 23:25:28 -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
4f25f5d86c
vk: Support not having a vertex shader
...
This lets us bypass the vertex shader and pass data straight into
the rasterizer part of the pipeline.
2015-05-11 23:25:28 -07:00
Kristian Høgsberg
20ad071190
vk: Allow NULL as a valid pipeline layout
...
Vertex buffers and render targets aren't part of the layout so having
an empty layout is pretty common.
2015-05-11 22:12:56 -07:00
Kristian Høgsberg
769785c497
Add vulkan driver for BDW
2015-05-09 11:38:32 -07:00