public NvGpuFifo(NvGpu Gpu) { this.Gpu = Gpu; SubChannels = new NvGpuEngine[8]; Macros = new CachedMacro[MacrosCount]; Mme = new int[MmeWords]; }
public NvGpuEngine3d(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0xe00]; Methods = new Dictionary <int, NvGpuMethod>(); void AddMethod(int Meth, int Count, int Stride, NvGpuMethod Method) { while (Count-- > 0) { Methods.Add(Meth, Method); Meth += Stride; } } AddMethod(0x585, 1, 1, VertexEndGl); AddMethod(0x674, 1, 1, ClearBuffers); AddMethod(0x6c3, 1, 1, QueryControl); AddMethod(0x8e4, 16, 1, CbData); AddMethod(0x904, 5, 8, CbBind); ConstBuffers = new ConstBuffer[6][]; for (int Index = 0; Index < ConstBuffers.Length; Index++) { ConstBuffers[Index] = new ConstBuffer[18]; } UploadedKeys = new List <long> [(int)NvGpuBufferType.Count]; for (int i = 0; i < UploadedKeys.Length; i++) { UploadedKeys[i] = new List <long>(); } //Ensure that all components are enabled by default. //FIXME: Is this correct? WriteRegister(NvGpuEngine3dReg.ColorMaskN, 0x1111); for (int Index = 0; Index < GalPipelineState.RenderTargetsCount; Index++) { WriteRegister(NvGpuEngine3dReg.IBlendNEquationRgb + Index * 8, (int)GalBlendEquation.FuncAdd); WriteRegister(NvGpuEngine3dReg.IBlendNFuncSrcRgb + Index * 8, (int)GalBlendFactor.One); WriteRegister(NvGpuEngine3dReg.IBlendNFuncDstRgb + Index * 8, (int)GalBlendFactor.Zero); WriteRegister(NvGpuEngine3dReg.IBlendNEquationAlpha + Index * 8, (int)GalBlendEquation.FuncAdd); WriteRegister(NvGpuEngine3dReg.IBlendNFuncSrcAlpha + Index * 8, (int)GalBlendFactor.One); WriteRegister(NvGpuEngine3dReg.IBlendNFuncDstAlpha + Index * 8, (int)GalBlendFactor.Zero); } }
public GpuResourceManager(NvGpu Gpu) { this.Gpu = Gpu; UploadedKeys = new HashSet <long> [(int)NvGpuBufferType.Count]; for (int Index = 0; Index < UploadedKeys.Length; Index++) { UploadedKeys[Index] = new HashSet <long>(); } ImageTypes = new Dictionary <long, ImageType>(); }
public GpuResourceManager(NvGpu gpu) { _gpu = gpu; _uploadedKeys = new HashSet <long> [(int)NvGpuBufferType.Count]; for (int index = 0; index < _uploadedKeys.Length; index++) { _uploadedKeys[index] = new HashSet <long>(); } _imageTypes = new Dictionary <long, ImageType>(); _mirroredTextures = new Dictionary <long, int>(); }
public NvGpuEngine3d(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0xe00]; Methods = new Dictionary <int, NvGpuMethod>(); void AddMethod(int Meth, int Count, int Stride, NvGpuMethod Method) { while (Count-- > 0) { Methods.Add(Meth, Method); Meth += Stride; } } AddMethod(0x585, 1, 1, VertexEndGl); AddMethod(0x674, 1, 1, ClearBuffers); AddMethod(0x6c3, 1, 1, QueryControl); AddMethod(0x8e4, 16, 1, CbData); AddMethod(0x904, 5, 8, CbBind); ConstBuffers = new ConstBuffer[6][]; for (int Index = 0; Index < ConstBuffers.Length; Index++) { ConstBuffers[Index] = new ConstBuffer[18]; } UploadedKeys = new List <long> [(int)NvGpuBufferType.Count]; for (int i = 0; i < UploadedKeys.Length; i++) { UploadedKeys[i] = new List <long>(); } //Ensure that all components are enabled by default. //FIXME: Is this correct? WriteRegister(NvGpuEngine3dReg.ColorMaskN, 0x1111); }
public NvGpuEngine2d(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0xe00]; Methods = new Dictionary<int, NvGpuMethod>(); void AddMethod(int Meth, int Count, int Stride, NvGpuMethod Method) { while (Count-- > 0) { Methods.Add(Meth, Method); Meth += Stride; } } AddMethod(0xb5, 1, 1, TextureCopy); }
public NvGpuEngineM2mf(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0x1d6]; Methods = new Dictionary <int, NvGpuMethod>(); void AddMethod(int Meth, int Count, int Stride, NvGpuMethod Method) { while (Count-- > 0) { Methods.Add(Meth, Method); Meth += Stride; } } AddMethod(0xc0, 1, 1, Execute); }
public NvGpuEngine3d(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0xe00]; Methods = new Dictionary <int, NvGpuMethod>(); void AddMethod(int Meth, int Count, int Stride, NvGpuMethod Method) { while (Count-- > 0) { Methods.Add(Meth, Method); Meth += Stride; } } AddMethod(0x585, 1, 1, VertexEndGl); AddMethod(0x674, 1, 1, ClearBuffers); AddMethod(0x6c3, 1, 1, QueryControl); AddMethod(0x8e4, 16, 1, CbData); AddMethod(0x904, 5, 8, CbBind); ConstBuffers = new ConstBuffer[6][]; for (int Index = 0; Index < ConstBuffers.Length; Index++) { ConstBuffers[Index] = new ConstBuffer[18]; } UploadedKeys = new List <long> [(int)NvGpuBufferType.Count]; for (int i = 0; i < UploadedKeys.Length; i++) { UploadedKeys[i] = new List <long>(); } }
public NvGpuEngine2d(NvGpu Gpu) { this.Gpu = Gpu; Registers = new int[0x238]; }
public CdmaProcessor(NvGpu Gpu) { this.Gpu = Gpu; }
public CdmaProcessor(NvGpu gpu) { _gpu = gpu; }