Skip to content

Commit b9148aa

Browse files
committed
more cleanup
1 parent 3c5dbe5 commit b9148aa

File tree

6 files changed

+2
-19
lines changed

6 files changed

+2
-19
lines changed

src/shader_recompiler/backend/spirv/spirv_emit_context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ void EmitContext::DefineOutputs() {
510510
break;
511511
}
512512
case LogicalStage::TessellationEval: {
513-
// TODO copied from logical vertex, figure this out
514513
output_position = DefineVariable(F32[4], spv::BuiltIn::Position, spv::StorageClass::Output);
515514
const bool has_extra_pos_stores = info.stores.Get(IR::Attribute::Position1) ||
516515
info.stores.Get(IR::Attribute::Position2) ||

src/shader_recompiler/frontend/translate/translate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void Translator::EmitPrologue() {
129129
// [8:12]: output control point id
130130
ir.SetVectorReg(IR::VectorReg::V1,
131131
ir.GetAttributeU32(IR::Attribute::PackedHullInvocationInfo));
132-
// TODO need PrimitiveId also like TES? Havent seen it yet but probably V2
132+
// TODO PrimitiveId is probably V2 but haven't seen it yet
133133
break;
134134
}
135135
case LogicalStage::TessellationEval:

src/shader_recompiler/info.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ struct Info {
175175
PersistentSrtInfo srt_info;
176176
std::vector<u32> flattened_ud_buf;
177177

178-
// TODO handle indirection
179178
IR::ScalarReg tess_consts_ptr_base = IR::ScalarReg::Max;
180179
s32 tess_consts_dword_offset = -1;
181180

src/shader_recompiler/ir/passes/constant_propagation_pass.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,6 @@ void FoldReadLane(IR::Block& block, IR::Inst& inst) {
293293
}
294294
}
295295

296-
void FoldTessAttrAccess(IR::Inst& inst) {
297-
if (inst.GetOpcode() == IR::Opcode::GetTessGenericAttribute) {
298-
// Fold the vertex index
299-
}
300-
// Fold the attr index
301-
// Fold the component index
302-
}
303-
304296
void ConstantPropagation(IR::Block& block, IR::Inst& inst) {
305297
switch (inst.GetOpcode()) {
306298
case IR::Opcode::IAdd32:
@@ -481,9 +473,6 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) {
481473
return FoldConvert(inst, IR::Opcode::ConvertF16F32);
482474
case IR::Opcode::ConvertF16F32:
483475
return FoldConvert(inst, IR::Opcode::ConvertF32F16);
484-
case IR::Opcode::GetTessGenericAttribute:
485-
case IR::Opcode::SetTcsGenericAttribute:
486-
return FoldTessAttrAccess(inst);
487476
default:
488477
break;
489478
}

src/shader_recompiler/ir/pattern_matching.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ inline auto MakeInstPattern(Args&&... args) {
104104
return MatchInstObject<opcode, Args...>(std::forward<Args>(args)...);
105105
}
106106

107-
// Conveniences. TODO maybe delete
107+
// Conveniences. TODO probably simpler way of doing this
108108
#define M_READCONST(...) MakeInstPattern<IR::Opcode::ReadConst>(__VA_ARGS__)
109109
#define M_GETUSERDATA(...) MakeInstPattern<IR::Opcode::GetUserData>(__VA_ARGS__)
110110
#define M_BITFIELDUEXTRACT(...) MakeInstPattern<IR::Opcode::BitFieldUExtract>(__VA_ARGS__)

src/video_core/renderer_vulkan/vk_rasterizer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ void Rasterizer::CpSync() {
4949

5050
bool Rasterizer::FilterDraw() {
5151
const auto& regs = liverpool->regs;
52-
// Tessellation is unsupported so skip the draw to avoid locking up the driver.
53-
// if (regs.primitive_type == AmdGpu::PrimitiveType::PatchPrimitive) {
54-
// return false;
55-
// }
5652
// There are several cases (e.g. FCE, FMask/HTile decompression) where we don't need to do an
5753
// actual draw hence can skip pipeline creation.
5854
if (regs.color_control.mode == Liverpool::ColorControl::OperationMode::EliminateFastClear) {

0 commit comments

Comments
 (0)