From 598a78849e344d824d1790618fde0310c6badc76 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 5 Dec 2018 03:30:42 -0800 Subject: [PATCH] iris: Fix for PIPE_CAP_SIGNED_VERTEX_BUFFER_OFFSET 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index fb32cb60d7f..cc3060c1bba 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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; } -- 2.30.2