vk/0.210.0: Rename origin fields of VkViewport
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Dec 2015 01:26:32 +0000 (17:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 3 Dec 2015 21:43:52 +0000 (13:43 -0800)
include/vulkan/vulkan.h
src/vulkan/anv_meta.c
src/vulkan/anv_meta_clear.c
src/vulkan/gen8_cmd_buffer.c

index 34470999bbf5dcecc0d1b6d8c3f96ed52e1a6be5..49241de1863468934ed1ae2712955efbd0b37a3f 100644 (file)
@@ -1646,8 +1646,8 @@ typedef struct VkPipelineTessellationStateCreateInfo {
 } VkPipelineTessellationStateCreateInfo;
 
 typedef struct VkViewport {
-    float                                       originX;
-    float                                       originY;
+    float                                       x;
+    float                                       y;
     float                                       width;
     float                                       height;
     float                                       minDepth;
index f28775e0f7ae7bf9bc1382d231e4c17a357c98b8..7a9d631e876af1340801cf83b89785963350bedc 100644 (file)
@@ -601,8 +601,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
 
    anv_CmdSetViewport(anv_cmd_buffer_to_handle(cmd_buffer), 1,
                       &(VkViewport) {
-                        .originX = 0.0f,
-                        .originY = 0.0f,
+                        .x = 0.0f,
+                        .y = 0.0f,
                         .width = dest_iview->extent.width,
                         .height = dest_iview->extent.height,
                         .minDepth = 0.0f,
index 1403d7d0c3dcc2015eff7ac23abb5b88302ba7c1..091f7632e975a90bcb81015211670ffeaa3b4d29 100644 (file)
@@ -355,8 +355,8 @@ emit_load_color_clear(struct anv_cmd_buffer *cmd_buffer,
    ANV_CALL(CmdSetViewport)(cmd_buffer_h, 1,
       (VkViewport[]) {
          {
-            .originX = 0,
-            .originY = 0,
+            .x = 0,
+            .y = 0,
             .width = fb->width,
             .height = fb->height,
             .minDepth = 0.0,
@@ -523,8 +523,8 @@ emit_load_depthstencil_clear(struct anv_cmd_buffer *cmd_buffer,
    ANV_CALL(CmdSetViewport)(cmd_buffer_h, 1,
       (VkViewport[]) {
          {
-            .originX = 0,
-            .originY = 0,
+            .x = 0,
+            .y = 0,
             .width = fb->width,
             .height = fb->height,
 
index c4ac28373e545071b7b96398d5c7b77f08b6c578..bdccee8a7b78f1d7e5c9c4000e985abedd0d8f4a 100644 (file)
@@ -85,17 +85,17 @@ emit_viewport_state(struct anv_cmd_buffer *cmd_buffer,
          .ViewportMatrixElementm00 = vp->width / 2,
          .ViewportMatrixElementm11 = vp->height / 2,
          .ViewportMatrixElementm22 = (vp->maxDepth - vp->minDepth) / 2,
-         .ViewportMatrixElementm30 = vp->originX + vp->width / 2,
-         .ViewportMatrixElementm31 = vp->originY + vp->height / 2,
+         .ViewportMatrixElementm30 = vp->x + vp->width / 2,
+         .ViewportMatrixElementm31 = vp->y + vp->height / 2,
          .ViewportMatrixElementm32 = (vp->maxDepth + vp->minDepth) / 2,
          .XMinClipGuardband = -1.0f,
          .XMaxClipGuardband = 1.0f,
          .YMinClipGuardband = -1.0f,
          .YMaxClipGuardband = 1.0f,
-         .XMinViewPort = vp->originX,
-         .XMaxViewPort = vp->originX + vp->width - 1,
-         .YMinViewPort = vp->originY,
-         .YMaxViewPort = vp->originY + vp->height - 1,
+         .XMinViewPort = vp->x,
+         .XMaxViewPort = vp->x + vp->width - 1,
+         .YMinViewPort = vp->y,
+         .YMaxViewPort = vp->y + vp->height - 1,
       };
 
       struct GENX(CC_VIEWPORT) cc_viewport = {
@@ -126,8 +126,8 @@ gen8_cmd_buffer_emit_viewport(struct anv_cmd_buffer *cmd_buffer)
       /* If viewport count is 0, this is taken to mean "use the default" */
       emit_viewport_state(cmd_buffer, 1,
                           &(VkViewport) {
-                             .originX = 0.0f,
-                             .originY = 0.0f,
+                             .x = 0.0f,
+                             .y = 0.0f,
                              .width = cmd_buffer->state.framebuffer->width,
                              .height = cmd_buffer->state.framebuffer->height,
                              .minDepth = 0.0f,