} VkMemoryInputFlagBits;
typedef VkFlags VkMemoryInputFlags;
-typedef enum {
- VK_PROVOKING_VERTEX_FIRST = 0x00000000,
- VK_PROVOKING_VERTEX_LAST = 0x00000001,
-
- VK_ENUM_RANGE(PROVOKING_VERTEX, FIRST, LAST)
-} VkProvokingVertex;
-
-typedef enum {
- VK_COORDINATE_ORIGIN_UPPER_LEFT = 0x00000000,
- VK_COORDINATE_ORIGIN_LOWER_LEFT = 0x00000001,
-
- VK_ENUM_RANGE(COORDINATE_ORIGIN, UPPER_LEFT, LOWER_LEFT)
-} VkCoordinateOrigin;
-
-typedef enum {
- VK_DEPTH_MODE_ZERO_TO_ONE = 0x00000000,
- VK_DEPTH_MODE_NEGATIVE_ONE_TO_ONE = 0x00000001,
-
- VK_ENUM_RANGE(DEPTH_MODE, ZERO_TO_ONE, NEGATIVE_ONE_TO_ONE)
-} VkDepthMode;
-
typedef enum {
// Info type for vkGetPhysicalDeviceInfo()
VK_PHYSICAL_DEVICE_INFO_TYPE_PROPERTIES = 0x00000000,
VkStructureType sType;
const void* pNext;
VkPrimitiveTopology topology;
- bool32_t disableVertexReuse;
bool32_t primitiveRestartEnable;
} VkPipelineIaStateCreateInfo;
VkStructureType sType;
const void* pNext;
uint32_t viewportCount;
- VkCoordinateOrigin clipOrigin;
- VkDepthMode depthMode;
} VkPipelineVpStateCreateInfo;
typedef struct {
bool32_t depthClipEnable;
bool32_t rasterizerDiscardEnable;
bool32_t programPointSize;
- VkCoordinateOrigin pointOrigin;
- VkProvokingVertex provokingVertex;
VkFillMode fillMode;
VkCullMode cullMode;
VkFrontFace frontFace;
VkPipelineIaStateCreateInfo ia_create_info = {
.sType = VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO,
.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP,
- .disableVertexReuse = false,
.primitiveRestartEnable = false,
};
VkPipelineIaStateCreateInfo ia_create_info = {
.sType = VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO,
.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP,
- .disableVertexReuse = false,
.primitiveRestartEnable = false,
};
[VK_FRONT_FACE_CCW] = CounterClockwise,
[VK_FRONT_FACE_CW] = Clockwise
};
-
- static const uint32_t vk_to_gen_coordinate_origin[] = {
- [VK_COORDINATE_ORIGIN_UPPER_LEFT] = UPPERLEFT,
- [VK_COORDINATE_ORIGIN_LOWER_LEFT] = LOWERLEFT
- };
struct GEN8_3DSTATE_SF sf = {
GEN8_3DSTATE_SF_header,
.ViewportTransformEnable = !(extra && extra->disable_viewport),
- .TriangleStripListProvokingVertexSelect =
- info->provokingVertex == VK_PROVOKING_VERTEX_FIRST ? 0 : 2,
- .LineStripListProvokingVertexSelect =
- info->provokingVertex == VK_PROVOKING_VERTEX_FIRST ? 0 : 1,
- .TriangleFanProvokingVertexSelect =
- info->provokingVertex == VK_PROVOKING_VERTEX_FIRST ? 0 : 2,
+ .TriangleStripListProvokingVertexSelect = 0,
+ .LineStripListProvokingVertexSelect = 0,
+ .TriangleFanProvokingVertexSelect = 0,
.PointWidthSource = info->programPointSize ? Vertex : State,
};
anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_SBE,
.ForceVertexURBEntryReadLength = false,
.ForceVertexURBEntryReadOffset = false,
- .PointSpriteTextureCoordinateOrigin =
- vk_to_gen_coordinate_origin[info->pointOrigin],
+ .PointSpriteTextureCoordinateOrigin = UPPERLEFT,
.NumberofSFOutputAttributes =
pipeline->wm_prog_data.num_varying_inputs);
.MaximumNumberofThreads = device->info.max_vs_threads - 1,
.StatisticsEnable = false,
.SIMD8DispatchEnable = true,
- .VertexCacheDisable = ia_info->disableVertexReuse,
+ .VertexCacheDisable = false,
.FunctionEnable = true,
.VertexURBEntryOutputReadOffset = offset,