Lines Matching refs:command
110 u32* command = textureMapper.GetCommandCache(); in SetTextureMipmapCommand() local
118 internal::SetCmdValue( &command[CMD_INDEX], mipmapSize, CMD_MASK, CMD_SHIFT ); in SetTextureMipmapCommand()
695 u32* command = mapper.GetCommandCache(); in SetupTextureMapperCommand() local
699 command[0] &= ~FORMAT_MASK; // format in SetupTextureMapperCommand()
700 command[3] &= ~0x0FF00000; // コマンドヘッダ in SetupTextureMapperCommand()
701 command[4] &= ~(HEIGHT_MASK | WIDTH_MASK); // width, height in SetupTextureMapperCommand()
702 command[5] &= ~(FORMAT_ETC_MASK); // etc_format in SetupTextureMapperCommand()
703 command[6] &= ~(MIPMAP_SIZE_MASK); // mipmap in SetupTextureMapperCommand()
704 command[7] &= ~ADDRESS_MASK; // address in SetupTextureMapperCommand()
712 command[0] |= format & FORMAT_MASK; in SetupTextureMapperCommand()
716 command[3] |= 4 << 20; in SetupTextureMapperCommand()
717 command[1] |= 0x000F0000; // glの吐くコードと同じにしてみる。 in SetupTextureMapperCommand()
719 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
720 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
724 command[5] |= 2 << FORMAT_ETC_SHIFT; in SetupTextureMapperCommand()
732 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
735 command[7] |= (nngxGetPhysicalAddr( addr ) >> 3) & ADDRESS_MASK; in SetupTextureMapperCommand()
787 u32* command = mapper.GetCommandCache(); in SetupTextureMapperCommand() local
795 command[0] &= ~FORMAT_MASK; in SetupTextureMapperCommand()
796 command[3] &= ~0x0FF00000; in SetupTextureMapperCommand()
797 command[4] &= ~(HEIGHT_MASK | WIDTH_MASK); // width, height in SetupTextureMapperCommand()
798 command[5] &= ~(FORMAT_ETC_MASK); // etc_format in SetupTextureMapperCommand()
799 command[6] &= ~(MIPMAP_SIZE_MASK); // mipmap in SetupTextureMapperCommand()
800 command[7] &= ~ADDRESS_MASK; // address in SetupTextureMapperCommand()
801 command[8] &= ~CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
802 command[9] &= ~CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
803 command[10] &= ~CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
804 command[11] &= ~CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
805 command[12] &= ~CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
807 command[0] |= format & 0xF; in SetupTextureMapperCommand()
809 command[3] |= 9 << 20; in SetupTextureMapperCommand()
811 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
812 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
816 command[5] |= 2 << FORMAT_ETC_SHIFT; in SetupTextureMapperCommand()
826 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
836 command[7] |= (nngxGetPhysicalAddr( addr ) >> 3) & ADDRESS_MASK; in SetupTextureMapperCommand()
840 command[7 + face] |= (nngxGetPhysicalAddr( addr ) >> 3) & CUBE_ADDRESS_MASK; in SetupTextureMapperCommand()
854 u32* command = mapper.GetCommandCache(); in SetupTextureMapperCommand() local
858 command[0] &= ~FORMAT_MASK; // format in SetupTextureMapperCommand()
859 command[3] &= ~0x0FF00000; // コマンドヘッダ in SetupTextureMapperCommand()
860 command[4] &= ~(HEIGHT_MASK | WIDTH_MASK); // width, height in SetupTextureMapperCommand()
861 command[5] &= ~(FORMAT_ETC_MASK | SAMPLER_TYPE_MASK); // etc_format in SetupTextureMapperCommand()
862 command[6] &= ~(MIPMAP_SIZE_MASK); // mipmap in SetupTextureMapperCommand()
863 command[7] &= ~ADDRESS_MASK; // address in SetupTextureMapperCommand()
864 command[13] = 0x0; // shadow in SetupTextureMapperCommand()
872 command[0] |= format & FORMAT_MASK; in SetupTextureMapperCommand()
875 command[3] |= 10 << 20; in SetupTextureMapperCommand()
876 command[1] |= 0x000F0000; // glの吐くコードと同じにしてみる。 in SetupTextureMapperCommand()
878 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
879 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
881 command[5] |= SAMPLER_TYPE_SHADOW_2D << SAMPLER_TYPE_SHIFT; in SetupTextureMapperCommand()
888 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
891 command[7] |= (nngxGetPhysicalAddr( addr ) >> 3) & ADDRESS_MASK; in SetupTextureMapperCommand()
893 command[13] |= ((texture.IsPerspectiveShadow() ? 0 : 1) & 0x1) << 0; in SetupTextureMapperCommand()
894 … command[13] |= ((ut::FixedU24::Float32ToFixedU24(texture.GetShadowZBias()) >> 1) & 0x7FFFFF) << 1; in SetupTextureMapperCommand()
897 command[13] |= ((scaleU32 - 127) & 0xFF) << 24; in SetupTextureMapperCommand()