From: Kenneth Graunke Date: Wed, 5 Dec 2018 11:30:42 +0000 (-0800) Subject: iris: Fix for PIPE_CAP_SIGNED_VERTEX_BUFFER_OFFSET X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=598a78849e344d824d1790618fde0310c6badc76;p=mesa.git 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 (?) --- 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; }