Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
tinebp committed Sep 9, 2024
1 parent 203e03b commit a7f7a9c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions runtime/stub/vortex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
};
}
}

Expand Down

0 comments on commit a7f7a9c

Please sign in to comment.