Lines Matching refs:commandIndex
202 s32 commandIndex = 0; in CalcSetupDeactivateVertexAttributeCommandSize_() local
227 commandIndex += 2; in CalcSetupDeactivateVertexAttributeCommandSize_()
230 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
235 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
238 return sizeof(u32) * commandIndex; in CalcSetupDeactivateVertexAttributeCommandSize_()
326 u32 commandIndex = 12; in SetupActivateVertexAttributeCommand_() local
354 command[commandIndex ] = bufferAddr - baseAddr; in SetupActivateVertexAttributeCommand_()
355 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 3 * arrayIndex, 3, … in SetupActivateVertexAttributeCommand_()
356 command[commandIndex + 2] = 0; in SetupActivateVertexAttributeCommand_()
357 command[commandIndex + 3] = (interleave.GetStride() << 16) | (streamCount << 28); in SetupActivateVertexAttributeCommand_()
359 u32* arraySetting = &command[commandIndex + 2]; in SetupActivateVertexAttributeCommand_()
360 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
412 command[commandIndex] = bufferAddr - baseAddr; in SetupActivateVertexAttributeCommand_()
413 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 3 * arrayIndex, 3, … in SetupActivateVertexAttributeCommand_()
414 command[commandIndex + 2] = inputIndex; in SetupActivateVertexAttributeCommand_()
415 …command[commandIndex + 3] = (CommandCacheHelper::GetVertexSize(dimension, format) << 16) + (1 << … in SetupActivateVertexAttributeCommand_()
418 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
453 command[commandIndex] = inputIndex; in SetupActivateVertexAttributeCommand_()
454 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupActivateVertexAttributeCommand_()
455 command[commandIndex + 2] = (data[3] << 8) | (data[2] >> 16); in SetupActivateVertexAttributeCommand_()
456 command[commandIndex + 3] = (data[2] << 16) | (data[1] >> 8); in SetupActivateVertexAttributeCommand_()
457 command[commandIndex + 4] = (data[1] << 24) | (data[0]); in SetupActivateVertexAttributeCommand_()
458 command[commandIndex + 5] = 0; in SetupActivateVertexAttributeCommand_()
463 commandIndex += 6; in SetupActivateVertexAttributeCommand_()
478 command[commandIndex] = inputIndex; in SetupActivateVertexAttributeCommand_()
479 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupActivateVertexAttributeCommand_()
480 command[commandIndex + 2] = (ut::Float24::Float32ToBits24( 1.0f ) << 8); in SetupActivateVertexAttributeCommand_()
481 command[commandIndex + 3] = 0; in SetupActivateVertexAttributeCommand_()
482 command[commandIndex + 4] = 0; in SetupActivateVertexAttributeCommand_()
483 command[commandIndex + 5] = 0; in SetupActivateVertexAttributeCommand_()
484 commandIndex += 6; in SetupActivateVertexAttributeCommand_()
497 command[commandIndex + 0] = 0x76543210; in SetupActivateVertexAttributeCommand_()
498 command[commandIndex + 1] = HEADER_GEOM_MAP_0; in SetupActivateVertexAttributeCommand_()
499 command[commandIndex + 2] = 0xfedcba98; in SetupActivateVertexAttributeCommand_()
500 command[commandIndex + 3] = HEADER_GEOM_MAP_1; in SetupActivateVertexAttributeCommand_()
501 commandIndex += 4; in SetupActivateVertexAttributeCommand_()
504 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand( commandIndex * sizeof(u32) ) ); in SetupActivateVertexAttributeCommand_()
506 return static_cast<s32>(commandIndex * sizeof(u32)); in SetupActivateVertexAttributeCommand_()
540 u32 commandIndex = 0; in SetupDeactivateVertexAttributeCommand_() local
559 command[commandIndex ] = 0; in SetupDeactivateVertexAttributeCommand_()
560 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 2 + 3 * arrayIndex,… in SetupDeactivateVertexAttributeCommand_()
561 commandIndex += 2; in SetupDeactivateVertexAttributeCommand_()
569 command[commandIndex ] = 0; in SetupDeactivateVertexAttributeCommand_()
570 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 2 + 3 * arrayIndex,… in SetupDeactivateVertexAttributeCommand_()
571 commandIndex += 2; in SetupDeactivateVertexAttributeCommand_()
585 command[commandIndex++] = INPUT_MAP0; in SetupDeactivateVertexAttributeCommand_()
586 … command[commandIndex++] = internal::MakeCommandHeader(REG_VTX_MAP_0, 2, true, 0xF); in SetupDeactivateVertexAttributeCommand_()
587 command[commandIndex++] = INPUT_MAP1; in SetupDeactivateVertexAttributeCommand_()
588 command[commandIndex++] = 0; in SetupDeactivateVertexAttributeCommand_()
591 …command[commandIndex++] = (static_cast<u32>(inputIndex - 1) << 28) | (((0x1 << inputIndex) - 2) <<… in SetupDeactivateVertexAttributeCommand_()
592 command[commandIndex++] = internal::MakeCommandHeader(REG_VTX_ARRAY_VTXMASK, 1, false, 0xF); in SetupDeactivateVertexAttributeCommand_()
599 command[commandIndex] = i; in SetupDeactivateVertexAttributeCommand_()
600 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupDeactivateVertexAttributeCommand_()
601 command[commandIndex + 2] = 0; in SetupDeactivateVertexAttributeCommand_()
602 command[commandIndex + 3] = 0; in SetupDeactivateVertexAttributeCommand_()
603 command[commandIndex + 4] = 0; in SetupDeactivateVertexAttributeCommand_()
604 command[commandIndex + 5] = 0; in SetupDeactivateVertexAttributeCommand_()
605 commandIndex += 6; in SetupDeactivateVertexAttributeCommand_()
608 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand( commandIndex * sizeof(u32) ) ); in SetupDeactivateVertexAttributeCommand_()
610 return static_cast<s32>( commandIndex * sizeof(u32) ); in SetupDeactivateVertexAttributeCommand_()
868 u32 commandIndex = 9; in SetupDrawIndexStreamCommand() local
870 command[commandIndex++] = internal::MakeCommandHeader(REG_ELEMENTS_MODE_3, 1, false, 0x2); in SetupDrawIndexStreamCommand()
871 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
872 command[commandIndex++] = internal::MakeCommandHeader(REG_TRIANGLE_INDEX_RESET, 1, false, 0xF); in SetupDrawIndexStreamCommand()
873 command[commandIndex++] = 0; in SetupDrawIndexStreamCommand()
874 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_READY, 1, false, 0xF); in SetupDrawIndexStreamCommand()
875 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
876 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_KICK, 1, false, 0xF); in SetupDrawIndexStreamCommand()
877 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
878 command[commandIndex++] = internal::MakeCommandHeader(REG_DRAW_READY, 1, false, 0xF); in SetupDrawIndexStreamCommand()
879 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
880 command[commandIndex++] = internal::MakeCommandHeader(REG_VERTEX_CACHE_CLEAR, 1, false, 0xF); 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++] = 0; in SetupDrawIndexStreamCommand()
884 command[commandIndex++] = internal::MakeCommandHeader(REG_ELEMENTS_MODE_3, 1, false, 0x8); in SetupDrawIndexStreamCommand()
885 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
886 … command[commandIndex++] = internal::MakeCommandHeader(REG_COLOR_DEPTH_CACHE_FLUSH, 1, false, 0xF); in SetupDrawIndexStreamCommand()
887 command[commandIndex++] = 1; in SetupDrawIndexStreamCommand()
888 … command[commandIndex++] = internal::MakeCommandHeader(REG_COLOR_DEPTH_CACHE_CLEAR, 1, false, 0xF); in SetupDrawIndexStreamCommand()
890 NW_ENSURE_AND_ASSERT( bufferInfo.ForwardCommand(commandIndex * sizeof(u32)) ); in SetupDrawIndexStreamCommand()
892 return commandIndex * sizeof(u32); in SetupDrawIndexStreamCommand()