From a7f7a9c037be700af527c8ed4e5a3ffdbeea0501 Mon Sep 17 00:00:00 2001 From: Blaise Tine <tinebp@yahoo.com> Date: Mon, 9 Sep 2024 01:42:38 -0700 Subject: [PATCH] minor update --- runtime/stub/vortex.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/runtime/stub/vortex.cpp b/runtime/stub/vortex.cpp index 9b78006a..7ff05296 100644 --- a/runtime/stub/vortex.cpp +++ b/runtime/stub/vortex.cpp @@ -52,10 +52,30 @@ static int dcr_initialize(vx_device_h hdevice) { // initialize texture unit DCRs if ((isa_flags & VX_ISA_EXT_TEX) != 0) { - for (uint32_t state = VX_DCR_TEX_STATE_BEGIN; state < VX_DCR_TEX_STATE_END; ++state) { - CHECK_ERR(vx_dcr_write(hdevice, state, 0), { + for (uint32_t stage = 0; stage < VX_TEX_STAGE_COUNT; ++stage) { + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_STAGE, 0), { + return err; + }); + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_LOGDIM, 0), { + return err; + }); + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_FORMAT, 0), { + return err; + }); + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_WRAP, 0), { + return err; + }); + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_FILTER, 0), { + return err; + }); + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_ADDR, 0), { return err; }); + for (uint32_t m = 0; m < VX_TEX_LOD_MAX; ++m) { + CHECK_ERR(vx_dcr_write(hdevice, VX_DCR_TEX_MIPOFF(m), 0), { + return err; + }); + }; } }