iris: Fix for PIPE_CAP_SIGNED_VERTEX_BUFFER_OFFSET
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Dec 2018 11:30:42 +0000 (03:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
This fixes ext_transform_feedback-builtin-varyings gl_Position after the
combination of my transform feedback reworks and my vertex buffer
reworks (?)

src/gallium/drivers/iris/iris_state.c

index fb32cb60d7fbec06abc69d5a56b0122defa449cd..cc3060c1bbaac1bbd907ceef40295a79e263ff37 100644 (file)
@@ -2379,7 +2379,7 @@ iris_set_vertex_buffers(struct pipe_context *ctx,
          if (res) {
             vb.BufferSize = res->bo->size;
             vb.BufferStartingAddress =
-               ro_bo(NULL, res->bo->gtt_offset + buffer->buffer_offset);
+               ro_bo(NULL, res->bo->gtt_offset + (int) buffer->buffer_offset);
          } else {
             vb.NullVertexBuffer = true;
          }