|
|
|
@ -7,6 +7,7 @@
|
|
|
|
|
#include "shader_recompiler/backend/glasm/glasm_emit_context.h"
|
|
|
|
|
#include "shader_recompiler/frontend/ir/value.h"
|
|
|
|
|
#include "shader_recompiler/profile.h"
|
|
|
|
|
#include "shader_recompiler/runtime_info.h"
|
|
|
|
|
#include "shader_recompiler/shader_info.h"
|
|
|
|
|
|
|
|
|
|
namespace Shader::Backend::GLASM {
|
|
|
|
@ -406,6 +407,10 @@ void EmitInvocationInfo(EmitContext& ctx, IR::Inst& inst) {
|
|
|
|
|
case Stage::TessellationEval:
|
|
|
|
|
ctx.Add("SHL.U {}.x,primitive.vertexcount,16;", inst);
|
|
|
|
|
break;
|
|
|
|
|
case Stage::Geometry:
|
|
|
|
|
ctx.Add("SHL.U {}.x,{},16;", inst,
|
|
|
|
|
InputTopologyVertices::vertices(ctx.runtime_info.input_topology));
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
LOG_WARNING(Shader, "(STUBBED) called");
|
|
|
|
|
ctx.Add("MOV.S {}.x,0x00ff0000;", inst);
|
|
|
|
|