vk/vulkan.h: Rename VkRect to VkRect2D
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Jul 2015 00:47:18 +0000 (17:47 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Jul 2015 00:47:18 +0000 (17:47 -0700)
include/vulkan/vulkan.h
src/vulkan/device.c
src/vulkan/private.h

index a0f50e0f024dba9b1c4adae8695132d812b316d4..6711ba2ab448e487b8aa18ce047a7c8dd50027cc 100644 (file)
@@ -1619,14 +1619,14 @@ typedef struct {
 typedef struct {
     VkOffset2D                                  offset;
     VkExtent2D                                  extent;
-} VkRect;
+} VkRect2D;
 
 typedef struct {
     VkStructureType                             sType;
     const void*                                 pNext;
     uint32_t                                    viewportAndScissorCount;
     const VkViewport*                           pViewports;
-    const VkRect*                               pScissors;
+    const VkRect2D*                             pScissors;
 } VkDynamicVpStateCreateInfo;
 
 typedef struct {
@@ -1694,8 +1694,7 @@ typedef struct {
 typedef struct {
     VkStructureType                             sType;
     const void*                                 pNext;
-
-    VkRect                                      renderArea;
+    VkRect2D                                    renderArea;
     uint32_t                                    colorAttachmentCount;
     VkExtent2D                                  extent;
     uint32_t                                    sampleCount;
index cfe9201e2e684458b5bb01082b39827b5f73dc88..b1cc618fdd37bd21c8edecb0dd98c7e09a3684fe 100644 (file)
@@ -1956,7 +1956,7 @@ VkResult anv_CreateDynamicViewportState(
 
    for (uint32_t i = 0; i < pCreateInfo->viewportAndScissorCount; i++) {
       const VkViewport *vp = &pCreateInfo->pViewports[i];
-      const VkRect *s = &pCreateInfo->pScissors[i];
+      const VkRect2D *s = &pCreateInfo->pScissors[i];
 
       struct GEN8_SF_CLIP_VIEWPORT sf_clip_viewport = {
          .ViewportMatrixElementm00 = vp->width / 2,
@@ -3585,7 +3585,7 @@ VkResult anv_CreateFramebuffer(
                .maxDepth = 1
             },
          },
-         .pScissors = (VkRect[]) {
+         .pScissors = (VkRect2D[]) {
             { {  0,  0 },
               { pCreateInfo->width, pCreateInfo->height } },
          }
index a0ccb903224c380b9895ad63ed202c8b5040ed52..cb290ffea994b9c05a60b210854420e31005b423 100644 (file)
@@ -909,7 +909,7 @@ struct anv_render_pass_layer {
 };
 
 struct anv_render_pass {
-   VkRect                                       render_area;
+   VkRect2D                                     render_area;
 
    uint32_t                                     num_clear_layers;
    uint32_t                                     num_layers;