vk: Fix the build
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jul 2015 01:59:05 +0000 (18:59 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jul 2015 01:59:08 +0000 (18:59 -0700)
src/vulkan/device.c
src/vulkan/private.h

index d8adfe0e159f5c928652742f47225687486f6bb9..bc3bdb64a10434a0c40a5fdc6c9bea2ef87b4810 100644 (file)
@@ -1219,7 +1219,7 @@ VkResult anv_GetObjectMemoryRequirements(
       break;
    }
    case VK_OBJECT_TYPE_IMAGE: {
-      struct anv_image *image = anv_buffer_from_handle(object);
+      struct anv_image *image = anv_image_from_handle(object);
       pMemoryRequirements->size = image->size;
       pMemoryRequirements->alignment = image->alignment;
       break;
@@ -1926,7 +1926,7 @@ VkResult anv_UpdateDescriptorSets(
       case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
          for (uint32_t j = 0; j < write->count; j++) {
             set->descriptors[write->destBinding + j].view =
-               anv_surface_view_from_handle(write->pDescriptors[j].imageView);
+               (struct anv_surface_view *)write->pDescriptors[j].imageView;
          }
          break;
 
@@ -1941,7 +1941,7 @@ VkResult anv_UpdateDescriptorSets(
       case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC:
          for (uint32_t j = 0; j < write->count; j++) {
             set->descriptors[write->destBinding + j].view =
-               anv_surface_view_from_handle(write->pDescriptors[j].bufferView);
+               (struct anv_surface_view *)write->pDescriptors[j].bufferView;
          }
 
       default:
@@ -2073,7 +2073,7 @@ VkResult anv_CreateDynamicViewportState(
       }
    }
 
-   *pState = anv_descriptor_set_to_handle(state);
+   *pState = anv_dynamic_vp_state_to_handle(state);
 
    return VK_SUCCESS;
 }
@@ -2337,7 +2337,7 @@ VkResult anv_CreateCommandBuffer(
    cmd_buffer->rs_state = NULL;
    cmd_buffer->ds_state = NULL;
 
-   *pState = anv_cmd_buffer_to_handle(cmd_buffer);
+   *pCmdBuffer = anv_cmd_buffer_to_handle(cmd_buffer);
 
    return VK_SUCCESS;
 
index baa2e7f7901fc83321b06c1a62af3083612fbd73..635ec287712be8b0007d45c3ef9d5a9094c1ed80 100644 (file)
@@ -977,6 +977,7 @@ ANV_DEFINE_CASTS(anv_shader_module, VkShaderModule)
 ANV_DEFINE_CASTS(anv_shader, VkShader)
 ANV_DEFINE_CASTS(anv_pipeline, VkPipeline)
 ANV_DEFINE_CASTS(anv_image, VkImage)
+ANV_DEFINE_CASTS(anv_sampler, VkSampler)
 ANV_DEFINE_CASTS(anv_depth_stencil_view, VkDepthStencilView)
 ANV_DEFINE_CASTS(anv_framebuffer, VkFramebuffer)
 ANV_DEFINE_CASTS(anv_render_pass, VkRenderPass)