anv/cmd_buffer: Fix a pointer-cast typo
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 20:07:10 +0000 (12:07 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 20:07:43 +0000 (12:07 -0800)
src/vulkan/anv_cmd_buffer.c

index 1eaa3df633ce73e0b2288b405bbc585422ae6584..2f19c75e7ccdb1623c92692cb848e7020f276f23 100644 (file)
@@ -538,7 +538,7 @@ void anv_CmdBindDescriptorSets(
                for (unsigned j = 0; j < array_size; j++) {
                   uint32_t range = 0;
                   if (desc->buffer_view)
-                     range = desc->buffer_view;
+                     range = desc->buffer_view->range;
                   push->dynamic[d].offset = *(offsets++);
                   push->dynamic[d].range = range;
                   desc++;