Lines Matching refs:commandIndex

200     s32 commandIndex = 0;  in CalcSetupDeactivateVertexAttributeCommandSize_()  local
225 commandIndex += 2; in CalcSetupDeactivateVertexAttributeCommandSize_()
228 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
233 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
236 return sizeof(u32) * commandIndex; in CalcSetupDeactivateVertexAttributeCommandSize_()
324 u32 commandIndex = 12; in SetupActivateVertexAttributeCommand_() local
352 command[commandIndex ] = bufferAddr - baseAddr; in SetupActivateVertexAttributeCommand_()
353 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 3 * arrayIndex, 3, … in SetupActivateVertexAttributeCommand_()
354 command[commandIndex + 2] = 0; in SetupActivateVertexAttributeCommand_()
355 command[commandIndex + 3] = (interleave.GetStride() << 16) | (streamCount << 28); in SetupActivateVertexAttributeCommand_()
357 u32* arraySetting = &command[commandIndex + 2]; in SetupActivateVertexAttributeCommand_()
358 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
410 command[commandIndex] = bufferAddr - baseAddr; in SetupActivateVertexAttributeCommand_()
411 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 3 * arrayIndex, 3, … in SetupActivateVertexAttributeCommand_()
412 command[commandIndex + 2] = inputIndex; in SetupActivateVertexAttributeCommand_()
413 …command[commandIndex + 3] = (CommandCacheHelper::GetVertexSize(dimension, format) << 16) + (1 << … in SetupActivateVertexAttributeCommand_()
416 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
451 command[commandIndex] = inputIndex; in SetupActivateVertexAttributeCommand_()
452 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupActivateVertexAttributeCommand_()
453 command[commandIndex + 2] = (data[3] << 8) | (data[2] >> 16); in SetupActivateVertexAttributeCommand_()
454 command[commandIndex + 3] = (data[2] << 16) | (data[1] >> 8); in SetupActivateVertexAttributeCommand_()
455 command[commandIndex + 4] = (data[1] << 24) | (data[0]); in SetupActivateVertexAttributeCommand_()
456 command[commandIndex + 5] = 0; in SetupActivateVertexAttributeCommand_()
461 commandIndex += 6; in SetupActivateVertexAttributeCommand_()
476 command[commandIndex] = inputIndex; in SetupActivateVertexAttributeCommand_()
477 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupActivateVertexAttributeCommand_()
478 command[commandIndex + 2] = (ut::Float24::Float32ToBits24( 1.0f ) << 8); in SetupActivateVertexAttributeCommand_()
479 command[commandIndex + 3] = 0; in SetupActivateVertexAttributeCommand_()
480 command[commandIndex + 4] = 0; in SetupActivateVertexAttributeCommand_()
481 command[commandIndex + 5] = 0; in SetupActivateVertexAttributeCommand_()
482 commandIndex += 6; in SetupActivateVertexAttributeCommand_()
495 command[commandIndex + 0] = 0x76543210; in SetupActivateVertexAttributeCommand_()
496 command[commandIndex + 1] = HEADER_GEOM_MAP_0; in SetupActivateVertexAttributeCommand_()
497 command[commandIndex + 2] = 0xfedcba98; in SetupActivateVertexAttributeCommand_()
498 command[commandIndex + 3] = HEADER_GEOM_MAP_1; in SetupActivateVertexAttributeCommand_()
499 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
502 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand( commandIndex * sizeof(u32) ) ); in SetupActivateVertexAttributeCommand_()
504 return static_cast<s32>(commandIndex * sizeof(u32)); in SetupActivateVertexAttributeCommand_()
538 u32 commandIndex = 0; in SetupDeactivateVertexAttributeCommand_() local
557 command[commandIndex ] = 0; in SetupDeactivateVertexAttributeCommand_()
558 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 2 + 3 * arrayIndex,… in SetupDeactivateVertexAttributeCommand_()
559 commandIndex += 2; in SetupDeactivateVertexAttributeCommand_()
567 command[commandIndex ] = 0; in SetupDeactivateVertexAttributeCommand_()
568 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 2 + 3 * arrayIndex,… in SetupDeactivateVertexAttributeCommand_()
569 commandIndex += 2; in SetupDeactivateVertexAttributeCommand_()
583 command[commandIndex++] = INPUT_MAP0; in SetupDeactivateVertexAttributeCommand_()
584 … command[commandIndex++] = internal::MakeCommandHeader(REG_VTX_MAP_0, 2, true, 0xF); in SetupDeactivateVertexAttributeCommand_()
585 command[commandIndex++] = INPUT_MAP1; in SetupDeactivateVertexAttributeCommand_()
586 command[commandIndex++] = 0; in SetupDeactivateVertexAttributeCommand_()
589 …command[commandIndex++] = (static_cast<u32>(inputIndex - 1) << 28) | (((0x1 << inputIndex) - 2) <<… in SetupDeactivateVertexAttributeCommand_()
590 command[commandIndex++] = internal::MakeCommandHeader(REG_VTX_ARRAY_VTXMASK, 1, false, 0xF); in SetupDeactivateVertexAttributeCommand_()
597 command[commandIndex] = i; in SetupDeactivateVertexAttributeCommand_()
598 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupDeactivateVertexAttributeCommand_()
599 command[commandIndex + 2] = 0; in SetupDeactivateVertexAttributeCommand_()
600 command[commandIndex + 3] = 0; in SetupDeactivateVertexAttributeCommand_()
601 command[commandIndex + 4] = 0; in SetupDeactivateVertexAttributeCommand_()
602 command[commandIndex + 5] = 0; in SetupDeactivateVertexAttributeCommand_()
603 commandIndex += 6; in SetupDeactivateVertexAttributeCommand_()
606 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand( commandIndex * sizeof(u32) ) ); in SetupDeactivateVertexAttributeCommand_()
608 return static_cast<s32>( commandIndex * sizeof(u32) ); in SetupDeactivateVertexAttributeCommand_()
866 u32 commandIndex = 9; in SetupDrawIndexStreamCommand() local
868 command[commandIndex++] = internal::MakeCommandHeader(REG_ELEMENTS_MODE_3, 1, false, 0x2); in SetupDrawIndexStreamCommand()
869 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
870 command[commandIndex++] = internal::MakeCommandHeader(REG_TRIANGLE_INDEX_RESET, 1, false, 0xF); in SetupDrawIndexStreamCommand()
871 command[commandIndex++] = 0; in SetupDrawIndexStreamCommand()
872 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_READY, 1, false, 0xF); in SetupDrawIndexStreamCommand()
873 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
874 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_KICK, 1, false, 0xF); in SetupDrawIndexStreamCommand()
875 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
876 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_READY, 1, false, 0xF); in SetupDrawIndexStreamCommand()
877 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
878 command[commandIndex++] = internal::MakeCommandHeader(REG_VERTEX_CACHE_CLEAR, 1, false, 0xF); in SetupDrawIndexStreamCommand()
879 command[commandIndex++] = 0; in SetupDrawIndexStreamCommand()
880 command[commandIndex++] = internal::MakeCommandHeader(REG_ELEMENTS_MODE_3, 1, false, 0x8); in SetupDrawIndexStreamCommand()
881 command[commandIndex++] = 0; in SetupDrawIndexStreamCommand()
882 command[commandIndex++] = internal::MakeCommandHeader(REG_ELEMENTS_MODE_3, 1, false, 0x8); in SetupDrawIndexStreamCommand()
883 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
884 … command[commandIndex++] = internal::MakeCommandHeader(REG_COLOR_DEPTH_CACHE_FLUSH, 1, false, 0xF); in SetupDrawIndexStreamCommand()
885 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
886 … command[commandIndex++] = internal::MakeCommandHeader(REG_COLOR_DEPTH_CACHE_CLEAR, 1, false, 0xF); in SetupDrawIndexStreamCommand()
888 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand(commandIndex * sizeof(u32)) ); in SetupDrawIndexStreamCommand()
890 return commandIndex * sizeof(u32); in SetupDrawIndexStreamCommand()