Add exceptions for some more unimplemented maxwell draw regs

This commit is contained in:
Billy Laws 2023-02-20 17:48:04 +00:00
parent 7150ce0d1d
commit 6ce5202b8e
2 changed files with 17 additions and 0 deletions

View file

@ -271,6 +271,18 @@ namespace skyline::soc::gm20b::engine::maxwell3d {
throw exception("drawInlineIndex2X16 not implemented!");
})
ENGINE_STRUCT_CASE(drawZeroIndex, count, {
throw exception("drawZeroIndex not implemented!");
})
ENGINE_STRUCT_CASE(drawAuto, byteCount, {
throw exception("drawAuto not implemented!");
})
ENGINE_CASE(drawInlineIndex, {
throw exception("drawInlineIndex not implemented!");
})
ENGINE_STRUCT_CASE(drawIndexBuffer, count, {
// Defer the draw until the first non-draw operation to allow for detecting instanced draws (see DeferredDrawState comment)
deferredDraw.Set(count, registers.indexBuffer->first,

View file

@ -198,6 +198,11 @@ namespace skyline::soc::gm20b::engine::maxwell3d {
Register<0x48A, type::ZtSize> ztSize;
struct DrawAuto {
u32 byteCount;
};
Register<0x48F, DrawAuto> drawAuto;
Register<0x48D, type::SamplerBinding> samplerBinding; //!< If enabled, the TSC index in a bindless texture handle is ignored and the TIC index is used as the TSC index, otherwise the TSC index from the bindless texture handle is used
Register<0x490, std::array<u32, 8>> postVtgShaderAttributeSkipMask;