From 7647666a697a944dcaf4593c51459f4871525f71 Mon Sep 17 00:00:00 2001 From: Matthew William Cox Date: Tue, 24 Aug 2010 17:15:42 -0400 Subject: [PATCH] evergreen: fix initialization of vs_const_conf --- src/evergreen_textured_videofuncs.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/evergreen_textured_videofuncs.c b/src/evergreen_textured_videofuncs.c index 3ff4d61..22a0b73 100644 --- a/src/evergreen_textured_videofuncs.c +++ b/src/evergreen_textured_videofuncs.c @@ -476,6 +476,10 @@ EVERGREENDisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) /* VS alu constants */ vs_const_conf.size_bytes = 256; vs_const_conf.type = SHADER_TYPE_VS; + vs_const_conf.bo = accel_state->cbuf.vb_bo; + vs_const_conf.const_addr = accel_state->cbuf.vb_mc_addr + accel_state->cbuf.vb_start_op; + evergreen_set_alu_consts(pScrn, &vs_const_conf, RADEON_GEM_DOMAIN_GTT); + vs_alu_consts = radeon_vbo_space(pScrn, &accel_state->cbuf, 256); vs_alu_consts = (float *)vs_const_conf.bo->ptr; @@ -486,11 +490,6 @@ EVERGREENDisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) radeon_vbo_commit(pScrn, &accel_state->cbuf); - /* VS alu constants */ - vs_const_conf.bo = accel_state->cbuf.vb_bo; - vs_const_conf.const_addr = accel_state->cbuf.vb_mc_addr + accel_state->cbuf.vb_start_op; - evergreen_set_alu_consts(pScrn, &vs_const_conf, RADEON_GEM_DOMAIN_GTT); - if (pPriv->vsync) { xf86CrtcPtr crtc; if (pPriv->desired_crtc) -- 1.7.2.2