name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
deqp::gls::BuiltinPrecisionTests::Apply<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doGetUsedFuncs(std::set<deqp::gls::BuiltinPrecisionTests::FuncBase const*, std::less<deqp::gls::BuiltinPrecisionTests::FuncBase const*>, std::allocator<deqp::gls::BuiltinPrecisionTests::FuncBase const*>>&) const
void doGetUsedFuncs (FuncSet& dst) const { m_func.getUsedFuncs(dst); m_args.a->getUsedFuncs(dst); m_args.b->getUsedFuncs(dst); m_args.c->getUsedFuncs(dst); m_args.d->getUsedFuncs(dst); }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x38(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x20(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x30(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x40(%r14), %rdi movq (%rdi), %rax movq 0x18(%rax), %rax movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::ApplyVar<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doEvaluate(deqp::gls::BuiltinPrecisionTests::EvalContext const&) const
IVal doEvaluate (const EvalContext& ctx) const { const Variable<Arg0>& var0 = static_cast<const Variable<Arg0>&>(*this->m_args.a); const Variable<Arg1>& var1 = static_cast<const Variable<Arg1>&>(*this->m_args.b); const Variable<Arg2>& var2 = static_cast<const Variable<Arg2>&>(*this->m_args.c); const Variable<Arg3>& var3 = static_cast<const Variable<Arg3>&>(*this->m_args.d); return this->m_func.apply(ctx, ctx.env.lookup(var0), ctx.env.lookup(var1), ctx.env.lookup(var2), ctx.env.lookup(var3)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r14 movq %rdi, %rbx movq 0x8(%rsi), %r15 movq 0x10(%rsi), %rax movq 0x20(%rsi), %r12 movq 0x30(%rsi), %r13 movq 0x40(%rsi), %rcx movq %rcx, (%rsp) movq 0x30(%rdx), %rdi movq %rax, %rsi callq 0x6b6ac6 movq %rax, %rbp movq 0x30(%r14), %rdi movq %r12, %rsi callq 0x6bdea6 movq %rax, %r12 movq 0x30(%r14), %rdi movq %r13, %rsi callq 0x6b0800 movq %rax, %r13 movq 0x30(%r14), %rdi movq (%rsp), %rsi callq 0x6b0800 leaq 0x8(%rsp), %rcx movq %rbp, (%rcx) movq %r12, 0x8(%rcx) movq %r13, 0x10(%rcx) movq %rax, 0x18(%rcx) movq (%r15), %rax movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq *0x40(%rax) movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Apply<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doEvaluate(deqp::gls::BuiltinPrecisionTests::EvalContext const&) const
IVal doEvaluate (const EvalContext& ctx) const { return m_func.apply(ctx, m_args.a->evaluate(ctx), m_args.b->evaluate(ctx), m_args.c->evaluate(ctx), m_args.d->evaluate(ctx)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx movq 0x8(%rsi), %r15 movq 0x10(%rsi), %rsi movq (%rsi), %rax leaq 0x30(%rsp), %r13 movq %r13, %rdi callq *0x20(%rax) movq 0x20(%r12), %rsi movq (%rsi), %rax leaq 0x60(%rsp), %rbp movq %rbp, %rdi movq %r14, %rdx callq *0x20(%rax) movq 0x30(%r12), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x20(%rax) movq 0x40(%r12), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x20(%rax) leaq 0x10(%rsp), %rcx movq %r13, (%rcx) movq %rbp, 0x8(%rcx) leaq 0xf(%rsp), %rax movq %rax, 0x10(%rcx) leaq 0xe(%rsp), %rax movq %rax, 0x18(%rcx) movq (%r15), %rax movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq *0x40(%rax) movq %rbx, %rax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::InOutFuncCase<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::runTest()
void InOutFuncCase<Sig>::runTest (void) { const Inputs<In> inputs (generateInputs(getSamplings(), m_ctx.floatFormat, m_ctx.precision, m_ctx.numRandoms, m_rnd)); Variables<In, Out> variables; variables.out0 = variable<Ret>("out0"); variables.out1 = variable<Arg1>("out1"); variables.in0 = variable<Arg0>("in0"); variables.in1 = variable<Arg2>("in1"); variables.in2 = variable<Arg3>("in2"); variables.in3 = variable<Void>("in3"); { ExprP<Ret> expr = applyVar(m_func, variables.in0, variables.out1, variables.in1, variables.in2); StatementP stmt = variableAssignment(variables.out0, expr); this->testStatement(variables, inputs, *stmt); } }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf0, %rsp movq %rdi, %rbx movq (%rdi), %rax callq *0x30(%rax) leaq 0xa0(%rbx), %rdx movl 0xf0(%rbx), %ecx movq 0xf8(%rbx), %r8 leaq 0x150(%rbx), %r9 leaq 0x90(%rsp), %rdi movq %rax, %rsi callq 0x6b4b3b xorps %xmm0, %xmm0 movaps %xmm0, 0x80(%rsp) movaps %xmm0, 0x70(%rsp) movaps %xmm0, 0x60(%rsp) movaps %xmm0, 0x50(%rsp) movaps %xmm0, 0x40(%rsp) movaps %xmm0, 0x30(%rsp) leaq 0x20(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x2b63c8(%rip), %rsi # 0xa443b2 leaq 0x2b63c5(%rip), %rdx # 0xa443b6 leaq 0x10(%rsp), %rdi callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x750b02 movq 0x78(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e07c testq %rax, %rax je 0x78e057 lock decl 0x8(%rax) jne 0x78e033 movq $0x0, 0x70(%rsp) movq 0x78(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x78(%rsp), %rax lock decl 0xc(%rax) jne 0x78e057 movq 0x78(%rsp), %rdi testq %rdi, %rdi je 0x78e04e movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x78(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) testq %rax, %rax je 0x78e07c lock incl 0x8(%rax) movq 0x78(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e0c3 lock decl 0x8(%rax) jne 0x78e09f movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e0c3 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e0ba movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e0da movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2b6882(%rip), %rsi # 0xa4496b leaq 0x2b687f(%rip), %rdx # 0xa4496f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6bc46d movq 0x88(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e195 testq %rax, %rax je 0x78e167 lock decl 0x8(%rax) jne 0x78e13a movq $0x0, 0x80(%rsp) movq 0x88(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x88(%rsp), %rax lock decl 0xc(%rax) jne 0x78e167 movq 0x88(%rsp), %rdi testq %rdi, %rdi je 0x78e15b movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x88(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x80(%rsp) movq %rax, 0x88(%rsp) testq %rax, %rax je 0x78e195 lock incl 0x8(%rax) movq 0x88(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e1dc lock decl 0x8(%rax) jne 0x78e1b8 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e1dc movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e1d3 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e1f3 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27f35a(%rip), %rsi # 0xa0d55c leaq 0x27f356(%rip), %rdx # 0xa0d55f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6b5060 movq 0x38(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e28f testq %rax, %rax je 0x78e26a lock decl 0x8(%rax) jne 0x78e246 movq $0x0, 0x30(%rsp) movq 0x38(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x38(%rsp), %rax lock decl 0xc(%rax) jne 0x78e26a movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x78e261 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x38(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x30(%rsp) movq %rax, 0x38(%rsp) testq %rax, %rax je 0x78e28f lock incl 0x8(%rax) movq 0x38(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e2d6 lock decl 0x8(%rax) jne 0x78e2b2 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e2d6 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e2cd movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e2ed movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27f867(%rip), %rsi # 0xa0db63 leaq 0x27f863(%rip), %rdx # 0xa0db66 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x48(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e389 testq %rax, %rax je 0x78e364 lock decl 0x8(%rax) jne 0x78e340 movq $0x0, 0x40(%rsp) movq 0x48(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x48(%rsp), %rax lock decl 0xc(%rax) jne 0x78e364 movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x78e35b movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x48(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x40(%rsp) movq %rax, 0x48(%rsp) testq %rax, %rax je 0x78e389 lock incl 0x8(%rax) movq 0x48(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e3d0 lock decl 0x8(%rax) jne 0x78e3ac movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e3d0 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e3c7 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e3e7 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x283dfc(%rip), %rsi # 0xa121f2 leaq 0x283df8(%rip), %rdx # 0xa121f5 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x58(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e483 testq %rax, %rax je 0x78e45e lock decl 0x8(%rax) jne 0x78e43a movq $0x0, 0x50(%rsp) movq 0x58(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x58(%rsp), %rax lock decl 0xc(%rax) jne 0x78e45e movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x78e455 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x58(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x50(%rsp) movq %rax, 0x58(%rsp) testq %rax, %rax je 0x78e483 lock incl 0x8(%rax) movq 0x58(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e4ca lock decl 0x8(%rax) jne 0x78e4a6 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e4ca movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e4c1 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e4e1 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2d959f(%rip), %rsi # 0xa67a8f leaq 0x2d959b(%rip), %rdx # 0xa67a92 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x68(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x78e57d testq %rax, %rax je 0x78e558 lock decl 0x8(%rax) jne 0x78e534 movq $0x0, 0x60(%rsp) movq 0x68(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x68(%rsp), %rax lock decl 0xc(%rax) jne 0x78e558 movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0x78e54f movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x68(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x60(%rsp) movq %rax, 0x68(%rsp) testq %rax, %rax je 0x78e57d lock incl 0x8(%rax) movq 0x68(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e5c4 lock decl 0x8(%rax) jne 0x78e5a0 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e5c4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e5bb movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) leaq 0x80(%rsp), %r14 leaq 0x40(%rsp), %r15 leaq 0x50(%rsp), %r12 movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e5ed movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x180(%rbx), %rsi leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rdx movq %r14, %rcx movq %r15, %r8 movq %r12, %r9 callq 0x78bf07 leaq 0x70(%rsp), %rsi movq %rsp, %rdi leaq 0x10(%rsp), %rdx xorl %ecx, %ecx callq 0x753391 movq (%rsp), %rcx leaq 0x30(%rsp), %rsi leaq 0x90(%rsp), %rdx movq %rbx, %rdi callq 0x78e7ce movq 0x8(%rsp), %rax testq %rax, %rax je 0x78e680 lock decl 0x8(%rax) jne 0x78e65c movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x78e680 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x78e677 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x18(%rsp), %rax testq %rax, %rax je 0x78e6c8 lock decl 0x8(%rax) jne 0x78e6a4 movq $0x0, 0x10(%rsp) movq 0x18(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x18(%rsp), %rax lock decl 0xc(%rax) jne 0x78e6c8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x78e6bf movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x18(%rsp) leaq 0x30(%rsp), %rdi callq 0x78fe26 movq 0xd8(%rsp), %rdi testq %rdi, %rdi je 0x78e6ef movq 0xe8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xc0(%rsp), %rdi testq %rdi, %rdi je 0x78e70c movq 0xd0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi testq %rdi, %rdi je 0x78e729 movq 0xb8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x90(%rsp), %rdi testq %rdi, %rdi je 0x78e746 movq 0xa0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0xf0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x6aceae jmp 0x78e767 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x752034 jmp 0x78e7a8 jmp 0x78e7a5 jmp 0x78e789 jmp 0x78e7a5 jmp 0x78e789 jmp 0x78e7a5 jmp 0x78e789 jmp 0x78e7a5 jmp 0x78e789 jmp 0x78e7a5 jmp 0x78e789 jmp 0x78e7a5 movq %rax, %rbx movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x78e7a8 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x78e7a8 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x78fe26 leaq 0x90(%rsp), %rdi callq 0x6b6674 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
void deqp::gls::BuiltinPrecisionTests::PrecisionCase::testStatement<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 2>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 3>>>(deqp::gls::BuiltinPrecisionTests::Variables<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 2>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 3>>> const&, deqp::gls::BuiltinPrecisionTests::Inputs<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 2>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>> const&, deqp::gls::BuiltinPrecisionTests::Statement const&)
void PrecisionCase::testStatement (const Variables<In, Out>& variables, const Inputs<In>& inputs, const Statement& stmt) { using namespace ShaderExecUtil; typedef typename In::In0 In0; typedef typename In::In1 In1; typedef typename In::In2 In2; typedef typename In::In3 In3; typedef typename Out::Out0 Out0; typedef typename Out::Out1 Out1; const FloatFormat& fmt = getFormat(); const int inCount = numInputs<In>(); const int outCount = numOutputs<Out>(); const size_t numValues = (inCount > 0) ? inputs.in0.size() : 1; Outputs<Out> outputs (numValues); ShaderSpec spec; const FloatFormat highpFmt = m_ctx.highpFormat; const int maxMsgs = 100; int numErrors = 0; Environment env; // Hoisted out of the inner loop for optimization. switch (inCount) { case 4: DE_ASSERT(inputs.in3.size() == numValues); case 3: DE_ASSERT(inputs.in2.size() == numValues); case 2: DE_ASSERT(inputs.in1.size() == numValues); case 1: DE_ASSERT(inputs.in0.size() == numValues); default: break; } // Print out the statement and its definitions log() << TestLog::Message << "Statement: " << stmt << TestLog::EndMessage; { ostringstream oss; FuncSet funcs; stmt.getUsedFuncs(funcs); for (FuncSet::const_iterator it = funcs.begin(); it != funcs.end(); ++it) { (*it)->printDefinition(oss); } if (!funcs.empty()) log() << TestLog::Message << "Reference definitions:\n" << oss.str() << TestLog::EndMessage; } // Initialize ShaderSpec from precision, variables and statement. { ostringstream os; os << "precision " << glu::getPrecisionName(m_ctx.precision) << " float;\n"; spec.globalDeclarations = os.str(); } spec.version = getContextTypeGLSLVersion(getRenderContext().getType()); if (!m_extension.empty()) spec.globalDeclarations = "#extension " + m_extension + " : require\n"; spec.inputs.resize(inCount); switch (inCount) { case 4: spec.inputs[3] = makeSymbol(*variables.in3); case 3: spec.inputs[2] = makeSymbol(*variables.in2); case 2: spec.inputs[1] = makeSymbol(*variables.in1); case 1: spec.inputs[0] = makeSymbol(*variables.in0); default: break; } spec.outputs.resize(outCount); switch (outCount) { case 2: spec.outputs[1] = makeSymbol(*variables.out1); case 1: spec.outputs[0] = makeSymbol(*variables.out0); default: break; } spec.source = de::toString(stmt); // Run the shader with inputs. { UniquePtr<ShaderExecutor> executor (createExecutor(getRenderContext(), m_ctx.shaderType, spec)); const void* inputArr[] = { &inputs.in0.front(), &inputs.in1.front(), &inputs.in2.front(), &inputs.in3.front(), }; void* outputArr[] = { &outputs.out0.front(), &outputs.out1.front(), }; executor->log(log()); if (!executor->isOk()) TCU_FAIL("Shader compilation failed"); executor->useProgram(); executor->execute(int(numValues), inputArr, outputArr); } // Initialize environment with dummy values so we don't need to bind in inner loop. { const typename Traits<In0>::IVal in0; const typename Traits<In1>::IVal in1; const typename Traits<In2>::IVal in2; const typename Traits<In3>::IVal in3; const typename Traits<Out0>::IVal reference0; const typename Traits<Out1>::IVal reference1; env.bind(*variables.in0, in0); env.bind(*variables.in1, in1); env.bind(*variables.in2, in2); env.bind(*variables.in3, in3); env.bind(*variables.out0, reference0); env.bind(*variables.out1, reference1); } // For each input tuple, compute output reference interval and compare // shader output to the reference. for (size_t valueNdx = 0; valueNdx < numValues; valueNdx++) { bool result = true; typename Traits<Out0>::IVal reference0; typename Traits<Out1>::IVal reference1; if (valueNdx % (size_t)TOUCH_WATCHDOG_VALUE_FREQUENCY == 0) m_testCtx.touchWatchdog(); env.lookup(*variables.in0) = convert<In0>(fmt, round(fmt, inputs.in0[valueNdx])); env.lookup(*variables.in1) = convert<In1>(fmt, round(fmt, inputs.in1[valueNdx])); env.lookup(*variables.in2) = convert<In2>(fmt, round(fmt, inputs.in2[valueNdx])); env.lookup(*variables.in3) = convert<In3>(fmt, round(fmt, inputs.in3[valueNdx])); { EvalContext ctx (fmt, m_ctx.precision, env); stmt.execute(ctx); } switch (outCount) { case 2: reference1 = convert<Out1>(highpFmt, env.lookup(*variables.out1)); if (!m_status.check(contains(reference1, outputs.out1[valueNdx]), "Shader output 1 is outside acceptable range")) result = false; case 1: reference0 = convert<Out0>(highpFmt, env.lookup(*variables.out0)); if (!m_status.check(contains(reference0, outputs.out0[valueNdx]), "Shader output 0 is outside acceptable range")) result = false; default: break; } if (!result) ++numErrors; if ((!result && numErrors <= maxMsgs) || GLS_LOG_ALL_RESULTS) { MessageBuilder builder = log().message(); builder << (result ? "Passed" : "Failed") << " sample:\n"; if (inCount > 0) { builder << "\t" << variables.in0->getName() << " = " << valueToString(highpFmt, inputs.in0[valueNdx]) << "\n"; } if (inCount > 1) { builder << "\t" << variables.in1->getName() << " = " << valueToString(highpFmt, inputs.in1[valueNdx]) << "\n"; } if (inCount > 2) { builder << "\t" << variables.in2->getName() << " = " << valueToString(highpFmt, inputs.in2[valueNdx]) << "\n"; } if (inCount > 3) { builder << "\t" << variables.in3->getName() << " = " << valueToString(highpFmt, inputs.in3[valueNdx]) << "\n"; } if (outCount > 0) { builder << "\t" << variables.out0->getName() << " = " << valueToString(highpFmt, outputs.out0[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out0>(highpFmt, reference0) << "\n"; } if (outCount > 1) { builder << "\t" << variables.out1->getName() << " = " << valueToString(highpFmt, outputs.out1[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out1>(highpFmt, reference1) << "\n"; } builder << TestLog::EndMessage; } } if (numErrors > maxMsgs) { log() << TestLog::Message << "(Skipped " << (numErrors - maxMsgs) << " messages.)" << TestLog::EndMessage; } if (numErrors == 0) { log() << TestLog::Message << "All " << numValues << " inputs passed." << TestLog::EndMessage; } else { log() << TestLog::Message << numErrors << "/" << numValues << " inputs failed." << TestLog::EndMessage; } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x518, %rsp # imm = 0x518 movq %rcx, 0x70(%rsp) movq %rsi, (%rsp) movq %rdi, %r12 movq (%rdx), %rbx movq %rdx, 0xa0(%rsp) movq 0x8(%rdx), %r13 movq %r13, %rsi subq %rbx, %rsi sarq $0x3, %rsi leaq 0x2f8(%rsp), %rdi movq %rsi, 0x68(%rsp) callq 0x78ffb8 leaq 0x370(%rsp), %rcx movl $0x1, -0x48(%rcx) xorps %xmm0, %xmm0 movups %xmm0, -0x40(%rcx) movups %xmm0, -0x30(%rcx) movups %xmm0, -0x20(%rcx) movq %rcx, -0x10(%rcx) xorl %eax, %eax movq %rax, -0x8(%rcx) movb %al, (%rcx) leaq 0x390(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rax, -0x8(%rcx) movb %al, (%rcx) movq 0xe8(%r12), %rcx movq %rcx, 0x2a0(%rsp) movups 0xc8(%r12), %xmm0 movups 0xd8(%r12), %xmm1 movaps %xmm1, 0x290(%rsp) movaps %xmm0, 0x280(%rsp) leaq 0x2d0(%rsp), %rcx movl $0x0, (%rcx) movq %rax, 0x8(%rcx) movq %rcx, 0x10(%rcx) movq %rcx, 0x18(%rcx) movq %rax, 0x20(%rcx) movq 0x8(%r12), %rax movq 0x10(%rax), %rax leaq 0xb8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d91e2(%rip), %rsi # 0xa67aa8 movl $0xb, %edx movq %r14, %rdi callq 0x325e70 movq 0x70(%rsp), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x10(%rax) leaq 0x3149a5(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x4ce22c(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 leaq 0x3a0(%rsp), %rdi callq 0x325e00 movq %rbx, 0x8(%rsp) leaq 0x240(%rsp), %r15 movl $0x0, (%r15) xorl %eax, %eax movq %rax, 0x8(%r15) movq %r15, 0x10(%r15) movq %r15, 0x18(%r15) movq %rax, 0x20(%r15) movq 0x70(%rsp), %rdi movq (%rdi), %rax leaq 0x238(%rsp), %rsi callq *0x20(%rax) movq 0x250(%rsp), %rbx cmpq %r15, %rbx je 0x78e989 leaq 0x3a0(%rsp), %r14 movq 0x20(%rbx), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x30(%rax) movq %rbx, %rdi callq 0x325d90 movq %rax, %rbx cmpq %r15, %rax jne 0x78e96c cmpq $0x0, 0x260(%rsp) je 0x78ea38 movq 0x8(%r12), %rax movq 0x10(%rax), %rax leaq 0xb8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d90f8(%rip), %rsi # 0xa67ab4 movl $0x17, %edx movq %r14, %rdi callq 0x325e70 leaq 0x3a8(%rsp), %rsi leaq 0x30(%rsp), %rdi callq 0x325660 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx movq %r14, %rdi callq 0x325e70 leaq 0x314899(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x78ea1c movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4ce105(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 leaq 0x238(%rsp), %rdi callq 0x6b222e movq 0x4ce0dc(%rip), %rsi # 0xc5cb28 leaq 0x3a0(%rsp), %rdi callq 0x325aa0 leaq 0x410(%rsp), %rdi callq 0x325a80 leaq 0xb0(%rsp), %rdi callq 0x325e00 leaq 0x2d9052(%rip), %rsi # 0xa67acc leaq 0xb0(%rsp), %rdi movl $0xa, %edx callq 0x325e70 movl 0xf0(%r12), %edi callq 0x8bb7fe movq %rax, %rbx testq %rax, %rax je 0x78eabe movq %rbx, %rdi callq 0x325680 leaq 0xb0(%rsp), %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x78eae0 movq 0xb0(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0xb0, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x2f30b4(%rip), %rsi # 0xa81b9b leaq 0xb0(%rsp), %rdi movl $0x8, %edx callq 0x325e70 leaq 0xb8(%rsp), %rsi leaq 0x3a0(%rsp), %rdi callq 0x325660 leaq 0x360(%rsp), %rbx leaq 0x3a0(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi leaq 0x3b0(%rsp), %r15 cmpq %r15, %rdi je 0x78eb49 movq 0x3b0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4cdfd8(%rip), %rsi # 0xc5cb28 leaq 0xb0(%rsp), %rdi callq 0x325aa0 leaq 0x120(%rsp), %rdi callq 0x325a80 movq 0x98(%r12), %rdi movq (%rdi), %rax callq *0x10(%rax) movq (%rsp), %r14 movl %eax, %edi callq 0x8bb7c2 movl %eax, 0x328(%rsp) cmpq $0x0, 0x168(%r12) je 0x78ec63 leaq 0x160(%r12), %rdx leaq 0x2f526f(%rip), %rsi # 0xa83e17 leaq 0x3a0(%rsp), %rdi callq 0x33fea4 leaq 0x2f8906(%rip), %rsi # 0xa874c2 leaq 0x3a0(%rsp), %rdi callq 0x3259c0 leaq 0xc0(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x78ebf9 movq %rdx, 0xb0(%rsp) movq (%rcx), %rdx movq %rdx, 0xc0(%rsp) jmp 0x78ec00 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx leaq 0xb0(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %rbp, %rdi je 0x78ec42 movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3a0(%rsp), %rdi cmpq %r15, %rdi movq (%rsp), %r14 je 0x78ec63 movq 0x3b0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x330(%rsp), %rdi movl $0x1, %esi callq 0x6b1e2a movq (%r14), %rdx leaq 0xb0(%rsp), %rdi movq %r12, %rsi callq 0x6b7316 movq 0x330(%rsp), %r14 leaq 0xb0(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0xd0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 leaq 0xc0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x78ece0 movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x348(%rsp), %rdi movl $0x2, %esi callq 0x6b1e2a movq (%rsp), %rax movq 0x50(%rax), %rdx leaq 0xb0(%rsp), %rdi movq %r12, %rsi callq 0x6be6f6 movq 0x348(%rsp), %r14 leaq 0x38(%r14), %rdi leaq 0xb0(%rsp), %rsi callq 0x325800 addq $0x58, %r14 leaq 0xd0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rax cmpq %rax, %rdi movq (%rsp), %rbx je 0x78ed6b movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x40(%rbx), %rdx leaq 0xb0(%rsp), %rdi movq %r12, %rsi callq 0x75397a movq 0x348(%rsp), %r14 leaq 0xb0(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0xd0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rax cmpq %rax, %rdi je 0x78eddb movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xb0(%rsp), %rdi callq 0x325e00 movq 0x70(%rsp), %rdi movq (%rdi), %rax leaq 0xb0(%rsp), %rsi callq *0x10(%rax) leaq 0xb8(%rsp), %rsi leaq 0x3a0(%rsp), %rdi callq 0x325660 leaq 0x380(%rsp), %rbx movq 0x4cdd09(%rip), %rsi # 0xc5cb28 leaq 0xb0(%rsp), %rdi callq 0x325aa0 leaq 0x120(%rsp), %rdi callq 0x325a80 leaq 0x3a0(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %r15, %rdi je 0x78ee64 movq 0x3b0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x98(%r12), %rdi movl 0xf4(%r12), %esi leaq 0x328(%rsp), %rdx callq 0x878341 movq %rax, %r14 movq 0xa0(%rsp), %rcx movq (%rcx), %rax movq %rax, 0xb0(%rsp) movq 0x18(%rcx), %rax movq %rax, 0xb8(%rsp) movq 0x30(%rcx), %rax movq %rax, 0xc0(%rsp) movq 0x48(%rcx), %rax movq %rax, 0xc8(%rsp) movq 0x2f8(%rsp), %rax movq 0x310(%rsp), %rcx movq %rax, 0x3a0(%rsp) movq %rcx, 0x3a8(%rsp) movq 0x8(%r12), %rax movq 0x10(%rax), %rsi movq (%r14), %rax movq %r14, %rdi callq *0x18(%rax) movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) testb %al, %al je 0x78fb20 movq (%r14), %rax movq %r14, %rdi callq *0x28(%rax) movq (%r14), %rax leaq 0xb0(%rsp), %rdx leaq 0x3a0(%rsp), %rcx movq %r14, %rdi movq 0x68(%rsp), %rsi callq *0x30(%rax) movq %r12, 0x60(%rsp) leaq 0xa0(%r12), %rax movq %rax, 0x2b8(%rsp) movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) movl $0x10, %eax movabsq $0x7ff0000000000000, %rbp # imm = 0x7FF0000000000000 movabsq $-0x10000000000000, %r15 # imm = 0xFFF0000000000000 movb $0x0, 0x228(%rsp,%rax) movq %rbp, 0x230(%rsp,%rax) movq %r15, 0x238(%rsp,%rax) addq $0x18, %rax cmpq $0x40, %rax jne 0x78ef5c movl $0x10, %eax movq (%rsp), %rbx movb $0x0, 0x228(%rsp,%rax) movq %rbp, 0x230(%rsp,%rax) movq %r15, 0x238(%rsp,%rax) addq $0x18, %rax cmpq $0x28, %rax je 0x78ef87 leaq 0xb0(%rsp), %rdi callq 0x753a2e movl $0x10, %eax movb $0x0, 0x390(%rsp,%rax) movq %rbp, 0x398(%rsp,%rax) movq %r15, 0x3a0(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x78efbb movl $0x10, %eax movb $0x0, 0x390(%rsp,%rax) movq %rbp, 0x398(%rsp,%rax) movq %r15, 0x3a0(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x78efe2 movq (%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0x238(%rsp), %rdx callq 0x6b73ca movq 0x10(%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0x30(%rsp), %rdx callq 0x6b1f1c movq 0x20(%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0x10(%rsp), %rdx callq 0x6b1f1c movq 0x30(%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0x80(%rsp), %rdx callq 0x6b1f1c movq 0x40(%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0xb0(%rsp), %rdx callq 0x7537d0 movq 0x50(%rbx), %rsi leaq 0x2c8(%rsp), %rdi leaq 0x3a0(%rsp), %rdx callq 0x6be7aa cmpq 0x8(%rsp), %r13 je 0x78f8cb movq 0x60(%rsp), %rax addq $0x100, %rax # imm = 0x100 movq %rax, 0xa8(%rsp) movq 0x68(%rsp), %rax cmpq $0x1, %rax adcq $0x0, %rax movq %rax, 0x2b0(%rsp) movq $0x0, 0x8(%rsp) movq $0x0, 0x78(%rsp) leaq 0x3a0(%rsp), %rdi callq 0x753a2e movl $0x10, %eax movb $0x0, 0x228(%rsp,%rax) movq %rbp, 0x230(%rsp,%rax) movq %r15, 0x238(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x78f0ea movl $0x10, %eax movb $0x0, 0x228(%rsp,%rax) movq %rbp, 0x230(%rsp,%rax) movq %r15, 0x238(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x78f111 movq 0x8(%rsp), %rax shlq $0x34, %rax jne 0x78f14c movq 0x60(%rsp), %rax movq 0x8(%rax), %rdi callq 0x9a9c08 movq 0xa0(%rsp), %rax movq (%rax), %rax movq 0x8(%rsp), %rcx movq (%rax,%rcx,8), %rax movq %rax, 0x10(%rsp) leaq 0x30(%rsp), %rdi movq 0x2b8(%rsp), %r14 movq %r14, %rsi leaq 0x10(%rsp), %rdx callq 0x6b7668 movq (%rsp), %rbx leaq 0xb0(%rsp), %r13 movq %r13, %rdi movq %r14, %rsi leaq 0x30(%rsp), %rdx callq 0x6b75be movq (%rbx), %rsi leaq 0x2c8(%rsp), %rdi callq 0x6b6ac6 movups 0xb0(%rsp), %xmm0 movups 0xc0(%rsp), %xmm1 movups 0xd0(%rsp), %xmm2 movups %xmm2, 0x20(%rax) movups %xmm1, 0x10(%rax) movups %xmm0, (%rax) movq 0x10(%rbx), %rsi leaq 0x2c8(%rsp), %r12 movq %r12, %rdi callq 0x6b0800 movq 0x20(%rbx), %rsi movq %r12, %rdi callq 0x6b0800 movq 0x30(%rbx), %rsi movq %r12, %rdi callq 0x6b0800 movq 0x60(%rsp), %rax movl 0xf0(%rax), %eax movq 0x20(%r14), %rcx movq %rcx, 0xd0(%rsp) movups (%r14), %xmm0 movups 0x10(%r14), %xmm1 movaps %xmm1, 0xc0(%rsp) movaps %xmm0, 0xb0(%rsp) movl %eax, 0xd8(%rsp) movq %r12, 0xe0(%rsp) movl $0x0, 0xe8(%rsp) movq 0x70(%rsp), %rdi movq (%rdi), %rax movq %r13, %rsi callq *0x18(%rax) movq 0x50(%rbx), %rsi movq %r12, %rdi callq 0x6bdea6 movq %r13, %rdi leaq 0x280(%rsp), %rsi movq %rax, %rdx callq 0x6be994 movl $0x9, %ecx leaq 0x238(%rsp), %rdx movq %rdx, %rdi movq %r13, %rsi rep movsq (%rsi), %es:(%rdi) movq 0x8(%rsp), %rax leaq (%rax,%rax,2), %r14 leaq (,%r14,4), %rax movq 0x310(%rsp), %rsi movq %rax, 0x2c0(%rsp) addq %rax, %rsi movq %rdx, %rdi callq 0x6db2ea movl %eax, %ebx leaq 0xc0(%rsp), %rax movq %rax, 0xb0(%rsp) leaq 0xb0(%rsp), %r13 movq %r13, %rdi leaq 0x2d8879(%rip), %rsi # 0xa67b50 leaq 0x2d889d(%rip), %rdx # 0xa67b7b callq 0x334070 movzbl %bl, %esi movq 0xa8(%rsp), %rdi movq %r13, %rdx callq 0x9a94ca movl %eax, %r13d movq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rax cmpq %rax, %rdi je 0x78f31e movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 movq (%rsp), %rax movq 0x40(%rax), %rsi leaq 0x2c8(%rsp), %rdi callq 0x752942 leaq 0xb0(%rsp), %rbx movq %rbx, %rdi leaq 0x280(%rsp), %rsi movq %rax, %rdx callq 0x753e1a leaq 0x3a0(%rsp), %rcx xorl %edx, %edx xorl %esi, %esi movq 0x10(%rbx,%rsi), %rdi movq %rdi, 0x10(%rcx,%rsi) movups (%rbx,%rsi), %xmm0 movups %xmm0, (%rcx,%rsi) addq $0x30, %rsi cmpq $0x90, %rsi jne 0x78f35a leaq 0x1(%rdx), %rsi addq $0x18, %rcx addq $0x18, %rbx testq %rdx, %rdx movq %rsi, %rdx je 0x78f358 shlq $0x3, %r14 movq 0x2f8(%rsp), %rsi addq %r14, %rsi leaq 0x3a0(%rsp), %rdi callq 0x753ba9 movl %eax, %ebx leaq 0xc0(%rsp), %rax movq %rax, 0xb0(%rsp) leaq 0xb0(%rsp), %r12 movq %r12, %rdi leaq 0x2d87af(%rip), %rsi # 0xa67b7c leaq 0x2d87d3(%rip), %rdx # 0xa67ba7 callq 0x334070 movzbl %bl, %esi movq 0xa8(%rsp), %rdi movq %r12, %rdx callq 0x9a94ca movl %eax, %ebx movq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rax cmpq %rax, %rdi je 0x78f413 movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 andb %bl, %r13b movl %r13d, %eax notb %al movzbl %al, %eax andl $0x1, %eax movq 0x78(%rsp), %rcx addl %eax, %ecx movq %rcx, 0x78(%rsp) cmpl $0x65, %ecx setge %al orb %r13b, %al testb $0x1, %al jne 0x78f8ae movq 0x60(%rsp), %rax movq 0x8(%rax), %rax movq 0x10(%rax), %rax movq %rax, 0xb0(%rsp) leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e00 testb $0x1, %r13b leaq 0x282f6c(%rip), %rsi # 0xa123da leaq 0x282f5e(%rip), %rax # 0xa123d3 cmovneq %rax, %rsi movl $0x6, %edx movq %rbx, %rdi callq 0x325e70 leaq 0xb0(%rsp), %r13 movl $0x9, %edx movq %rbx, %rdi leaq 0x2d870b(%rip), %rsi # 0xa67ba8 callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2d031f(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq (%rsp), %rax movq (%rax), %rax leaq 0x40(%rsp), %rcx movq %rcx, 0x30(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x30(%rsp), %rdi callq 0x334442 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2bc4d0(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq 0x8(%rsp), %rax leaq (,%rax,8), %rdx movq 0xa0(%rsp), %rax addq (%rax), %rdx leaq 0x10(%rsp), %rdi leaq 0x280(%rsp), %rsi callq 0x6b7531 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2c49d8(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x78f57e movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x30(%rsp), %rdi leaq 0x40(%rsp), %rax cmpq %rax, %rdi je 0x78f59a movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi leaq 0x2d021f(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq (%rsp), %rax movq 0x40(%rax), %rax leaq 0x40(%rsp), %rcx movq %rcx, 0x30(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x30(%rsp), %rdi callq 0x334442 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2bc3cf(%rip), %rsi # 0xa4b9d5 callq 0x325e70 addq 0x2f8(%rsp), %r14 leaq 0x10(%rsp), %rdi leaq 0x280(%rsp), %rsi movq %r14, %rdx callq 0x753bfc movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2c48e4(%rip), %rsi # 0xa53f35 callq 0x325e70 movl $0x11, %edx movq %rbx, %rdi leaq 0x2d854d(%rip), %rsi # 0xa67bb2 callq 0x325e70 leaq 0x80(%rsp), %rdi leaq 0x280(%rsp), %rsi leaq 0x3a0(%rsp), %rdx callq 0x753c88 movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2c4887(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0x78f6d8 movq 0x90(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x78f6f4 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x30(%rsp), %rdi leaq 0x40(%rsp), %rax cmpq %rax, %rdi je 0x78f710 movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx movq %rbx, %rdi leaq 0x2d00b1(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq (%rsp), %rax movq 0x50(%rax), %rax leaq 0x40(%rsp), %rcx movq %rcx, 0x30(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x30(%rsp), %rdi callq 0x334442 movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx leaq 0xb8(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2bc261(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq 0x2c0(%rsp), %rdx addq 0x310(%rsp), %rdx leaq 0x10(%rsp), %rdi leaq 0x280(%rsp), %rsi callq 0x6be908 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2c4779(%rip), %rsi # 0xa53f35 callq 0x325e70 movl $0x11, %edx movq %rbx, %rdi leaq 0x2d83e2(%rip), %rsi # 0xa67bb2 callq 0x325e70 leaq 0x80(%rsp), %rdi leaq 0x280(%rsp), %rsi leaq 0x238(%rsp), %rdx callq 0x6db1e4 movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2c471c(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0x78f843 movq 0x90(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x78f85f movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x30(%rsp), %rdi leaq 0x40(%rsp), %rax cmpq %rax, %rdi je 0x78f87b movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r13, %rdi leaq 0x313a08(%rip), %rsi # 0xaa328d leaq 0xb8(%rsp), %rbx callq 0x9aba2a movq %rbx, %rdi movq 0x4cd28c(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 movq 0x8(%rsp), %rcx incq %rcx movq %rcx, 0x8(%rsp) cmpq 0x2b0(%rsp), %rcx jne 0x78f0d8 jmp 0x78f8d4 movq $0x0, 0x78(%rsp) movq 0x78(%rsp), %r15 cmpl $0x64, %r15d movq 0x60(%rsp), %rbx jle 0x78f968 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0xb8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d82b9(%rip), %rsi # 0xa67bc4 movl $0x9, %edx movq %r14, %rdi callq 0x325e70 leal -0x64(%r15), %esi movq %r14, %rdi callq 0x325530 leaq 0x2d82a3(%rip), %rsi # 0xa67bce movl $0xb, %edx movq %r14, %rdi callq 0x325e70 leaq 0x31394e(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x4cd1d5(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 testl %r15d, %r15d je 0x78f9df movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0xb8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 movq %r14, %rdi movl %r15d, %esi callq 0x325530 leaq 0x28d27e(%rip), %rsi # 0xa1cc19 movl $0x1, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq 0x68(%rsp), %rsi callq 0x3257b0 leaq 0x2d8233(%rip), %rsi # 0xa67bef movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x3138bd(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a jmp 0x78fa44 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0xb8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d81d8(%rip), %rsi # 0xa67bda movl $0x4, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq 0x68(%rsp), %rsi callq 0x3257b0 leaq 0x2d81bc(%rip), %rsi # 0xa67bdf movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x313856(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x4cd0dd(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 leaq 0x2c8(%rsp), %rdi callq 0x6b2588 movq 0x380(%rsp), %rdi leaq 0x390(%rsp), %rax cmpq %rax, %rdi leaq 0x348(%rsp), %rbx je 0x78fa9a movq 0x390(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x360(%rsp), %rdi leaq 0x370(%rsp), %rax cmpq %rax, %rdi je 0x78fabf movq 0x370(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x36a7d0 leaq 0x330(%rsp), %rdi callq 0x36a7d0 movq 0x310(%rsp), %rdi testq %rdi, %rdi je 0x78faf1 movq 0x320(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x2f8(%rsp), %rdi testq %rdi, %rdi je 0x78fb0e movq 0x308(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0x518, %rsp # imm = 0x518 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %r15 leaq 0x2c1ebb(%rip), %rsi # 0xa519ef leaq 0x2d7f9c(%rip), %rcx # 0xa67ad7 movq %rax, %rdi xorl %edx, %edx movl $0x11d4, %r8d # imm = 0x11D4 callq 0x99c17e leaq 0x48b56e(%rip), %rsi # 0xc1b0c0 leaq -0x45dd79(%rip), %rdx # 0x331de0 movq %r15, %rdi callq 0x325940 jmp 0x78fdf3 jmp 0x78fc4b jmp 0x78fdf3 movq %rax, %r12 movq %r15, %rdi callq 0x325d40 jmp 0x78fc89 jmp 0x78fdf3 movq %rax, %r12 movq 0x3a0(%rsp), %rdi cmpq %r15, %rdi je 0x78fdf6 movq 0x3b0(%rsp), %rsi jmp 0x78fd45 jmp 0x78fdf3 jmp 0x78fbad movq %rax, %r12 jmp 0x78fc22 jmp 0x78fd57 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fbd4 jmp 0x78fdf3 jmp 0x78fbd4 jmp 0x78fdf3 movq %rax, %r12 leaq 0xb0(%rsp), %rdi callq 0x36a3d6 jmp 0x78fdf6 jmp 0x78fdf3 jmp 0x78fc62 jmp 0x78fdf3 jmp 0x78fd57 jmp 0x78fdf3 jmp 0x78fdf3 movq %rax, %r12 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x78fc22 movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4cceff(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 jmp 0x78fd5a jmp 0x78fc4b jmp 0x78fc4b jmp 0x78fc62 jmp 0x78fc4b movq %rax, %r12 movq 0x4cced3(%rip), %rsi # 0xc5cb28 movq %r14, %rdi jmp 0x78fdd1 jmp 0x78fdf3 movq %rax, %r12 movq 0x4ccebc(%rip), %rsi # 0xc5cb28 leaq 0xb0(%rsp), %rdi callq 0x325aa0 leaq 0x120(%rsp), %rdi jmp 0x78fdde movq %rax, %r12 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) jmp 0x78fdf6 jmp 0x78fdf3 jmp 0x78fcae jmp 0x78fd00 jmp 0x78fd87 jmp 0x78fd00 jmp 0x78fd87 jmp 0x78fcae movq %rax, %r12 jmp 0x78fdc2 jmp 0x78fd00 jmp 0x78fdf3 jmp 0x78fccf jmp 0x78fdf3 jmp 0x78fd21 jmp 0x78fd87 jmp 0x78fd00 jmp 0x78fd00 movq %rax, %r12 movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0x78fd8a movq 0x90(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x78fd8a movq %rax, %r12 jmp 0x78fda6 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fdf3 movq %rax, %r12 movq 0xb0(%rsp), %rdi leaq 0xc0(%rsp), %rax cmpq %rax, %rdi je 0x78fdf6 movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x78fdf6 jmp 0x78fdf3 movq %rax, %r12 leaq 0x238(%rsp), %rdi callq 0x6b222e movq 0x4ccdba(%rip), %rsi # 0xc5cb28 leaq 0x3a0(%rsp), %rdi callq 0x325aa0 leaq 0x410(%rsp), %rdi jmp 0x78fdde jmp 0x78fd87 movq %rax, %r12 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x78fda6 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x30(%rsp), %rdi leaq 0x40(%rsp), %rax cmpq %rax, %rdi je 0x78fdc2 movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xb8(%rsp), %rdi movq 0x4ccd57(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 jmp 0x78fdf6 jmp 0x78fdf3 jmp 0x78fdf3 jmp 0x78fdf3 movq %rax, %r12 movq %rbx, %rdi jmp 0x78fdca movq %rax, %r12 leaq 0x2c8(%rsp), %rdi callq 0x6b2588 leaq 0x328(%rsp), %rdi callq 0x36a3fe leaq 0x2f8(%rsp), %rdi callq 0x790004 movq %r12, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Functions::OuterProduct<2, 3>::doApply(deqp::gls::BuiltinPrecisionTests::EvalContext const&, deqp::gls::BuiltinPrecisionTests::Tuple4<tcu::Vector<tcu::Interval, 2> const&, tcu::Vector<tcu::Interval, 3> const&, deqp::gls::BuiltinPrecisionTests::Void const&, deqp::gls::BuiltinPrecisionTests::Void const&> const&) const
IRet doApply (const EvalContext& ctx, const IArgs& iargs) const { IRet ret; for (int row = 0; row < Rows; ++row) { for (int col = 0; col < Cols; ++col) ret[col][row] = call<Mul>(ctx, iargs.a[row], iargs.b[col]); } return ret; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rcx, %rbx movq %rdx, %r15 movq %rdi, %rbp callq 0x753a2e xorl %eax, %eax leaq 0xf(%rsp), %r14 movq %rbp, 0x10(%rsp) movq %rax, 0x18(%rsp) leaq (%rax,%rax,2), %rax shlq $0x3, %rax movq %rax, 0x20(%rsp) xorl %r12d, %r12d movq %rbp, 0x28(%rsp) movq (%rbx), %r13 addq 0x20(%rsp), %r13 movq %r14, %rbp movq %r15, %r14 movq 0x8(%rbx), %r15 addq %r12, %r15 callq 0x7146fb movq %r13, 0x30(%rsp) leaq 0x30(%rsp), %r9 leaq 0x50(%rsp), %rdi leaq 0xe(%rsp), %rcx movq %r15, 0x38(%rsp) movq %r14, %r15 movq %rbp, %r14 movq %rbp, 0x40(%rsp) movq %rcx, 0x48(%rsp) movq (%rax), %r8 movq %rax, %rsi movq %r15, %rdx movq %r9, %rcx callq *0x40(%r8) movq 0x28(%rsp), %rbp movq 0x60(%rsp), %rax movq %rax, 0x10(%rbp,%r12,2) movups 0x50(%rsp), %xmm0 movups %xmm0, (%rbp,%r12,2) addq $0x18, %r12 cmpq $0x48, %r12 jne 0x7900b2 movq 0x18(%rsp), %rcx leaq 0x1(%rcx), %rax addq $0x18, %rbp testq %rcx, %rcx je 0x790098 movq 0x10(%rsp), %rax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Func<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doPrint(std::ostream&, std::vector<deqp::gls::BuiltinPrecisionTests::ExprBase const*, std::allocator<deqp::gls::BuiltinPrecisionTests::ExprBase const*>> const&) const
virtual void doPrint (ostream& os, const BaseArgExprs& args) const { os << getName() << "("; if (isTypeValid<Arg0>()) os << *args[0]; if (isTypeValid<Arg1>()) os << ", " << *args[1]; if (isTypeValid<Arg2>()) os << ", " << *args[2]; if (isTypeValid<Arg3>()) os << ", " << *args[3]; os << ")"; }
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %rsi movq (%rdi), %rax movq %rsp, %r15 movq %r15, %rdi callq *0x10(%rax) movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x325e70 leaq 0x2a70ba(%rip), %rsi # 0xa37242 movl $0x1, %edx movq %rax, %rdi callq 0x325e70 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7901b0 movq 0x10(%rsp), %rsi incq %rsi callq 0x3251a0 movq (%r14), %rax movq (%rax), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x10(%rax) leaq 0x2f65d5(%rip), %rsi # 0xa8679b movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 movq (%r14), %rax movq 0x8(%rax), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x10(%rax) leaq 0x31a594(%rip), %rsi # 0xaaa77e movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x79021f movq 0x10(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Func<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 2, 3>, tcu::Vector<float, 2>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doGetParamNames[abi:cxx11]() const
virtual const ParamNames& doGetParamNames (void) const { static ParamNames names ("a", "b", "c", "d"); return names; }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x80, %rsp movb 0x4e7242(%rip), %al # 0xc77480 testb %al, %al je 0x79025a leaq 0x4e71b7(%rip), %rax # 0xc77400 addq $0x80, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x4e721f(%rip), %rdi # 0xc77480 callq 0x325590 testl %eax, %eax je 0x790242 leaq 0x70(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0x2c238b(%rip), %rsi # 0xa52605 leaq 0x2c2385(%rip), %rdx # 0xa52606 leaq 0x60(%rsp), %rdi callq 0x334070 leaq 0x50(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x2c2347(%rip), %rsi # 0xa525e2 leaq 0x2c2341(%rip), %rdx # 0xa525e3 leaq 0x40(%rsp), %rdi callq 0x334070 leaq 0x30(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x280b05(%rip), %rsi # 0xa10dc2 leaq 0x280aff(%rip), %rdx # 0xa10dc3 leaq 0x20(%rsp), %rdi callq 0x334070 leaq 0x10(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x31b57e(%rip), %rsi # 0xaab85c leaq 0x31b578(%rip), %rdx # 0xaab85d movq %rsp, %rdi callq 0x334070 leaq 0x4e710c(%rip), %rdi # 0xc77400 leaq 0x60(%rsp), %rsi leaq 0x40(%rsp), %rdx leaq 0x20(%rsp), %rcx movq %rsp, %r8 callq 0x6b40e0 movq (%rsp), %rdi cmpq %r13, %rdi je 0x790321 movq 0x10(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x20(%rsp), %rdi cmpq %r12, %rdi je 0x790338 movq 0x30(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x40(%rsp), %rdi cmpq %r15, %rdi je 0x79034f movq 0x50(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x60(%rsp), %rdi cmpq %r14, %rdi je 0x790366 movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 leaq -0xdc189(%rip), %rdi # 0x6b41e4 leaq 0x4e708c(%rip), %rsi # 0xc77400 leaq 0x4cd59d(%rip), %rdx # 0xc5d918 callq 0x325d10 leaq 0x4e70f9(%rip), %rdi # 0xc77480 callq 0x3258b0 jmp 0x790242 movq %rax, %rbx movq (%rsp), %rdi cmpq %r13, %rdi je 0x7903af movq 0x10(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x7903af movq %rax, %rbx movq 0x20(%rsp), %rdi cmpq %r12, %rdi je 0x7903cb movq 0x30(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x7903cb movq %rax, %rbx movq 0x40(%rsp), %rdi cmpq %r15, %rdi je 0x7903e7 movq 0x50(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x7903e7 movq %rax, %rbx movq 0x60(%rsp), %rdi cmpq %r14, %rdi je 0x790403 movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x790403 movq %rax, %rbx leaq 0x4e7076(%rip), %rdi # 0xc77480 callq 0x3256b0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::PrecisionCase* deqp::gls::BuiltinPrecisionTests::createFuncCase<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>(deqp::gls::BuiltinPrecisionTests::Context const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, deqp::gls::BuiltinPrecisionTests::Func<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>> const&)
PrecisionCase* createFuncCase (const Context& context, const string& name, const Func<Sig>& func) { switch (func.getOutParamIndex()) { case -1: return new FuncCase<Sig>(context, name, func); case 1: return new InOutFuncCase<Sig>(context, name, func); default: DE_FATAL("Impossible"); } return DE_NULL; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 movq (%rdx), %rax movq %rdx, %rdi callq *0x28(%rax) cmpl $0x1, %eax je 0x790462 cmpl $-0x1, %eax jne 0x790493 movl $0x188, %edi # imm = 0x188 callq 0x325210 movq %rax, %rbx movq %rax, %rdi movq %r12, %rsi movq %r15, %rdx movq %r14, %rcx callq 0x6adac8 leaq 0x4ba220(%rip), %rax # 0xc4a680 jmp 0x790487 movl $0x188, %edi # imm = 0x188 callq 0x325210 movq %rax, %rbx movq %rax, %rdi movq %r12, %rsi movq %r15, %rdx movq %r14, %rcx callq 0x6adac8 leaq 0x4ba2f9(%rip), %rax # 0xc4a780 movq %rax, (%rbx) movq %r14, 0x180(%rbx) jmp 0x790495 xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x7904a6 movq %rax, %r14 movl $0x188, %esi # imm = 0x188 movq %rbx, %rdi callq 0x3251a0 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::FuncCase<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::runTest()
void FuncCase<Sig>::runTest (void) { const Inputs<In> inputs (generateInputs(getSamplings(), m_ctx.floatFormat, m_ctx.precision, m_ctx.numRandoms, m_rnd)); Variables<In, Out> variables; variables.out0 = variable<Ret>("out0"); variables.out1 = variable<Void>("out1"); variables.in0 = variable<Arg0>("in0"); variables.in1 = variable<Arg1>("in1"); variables.in2 = variable<Arg2>("in2"); variables.in3 = variable<Arg3>("in3"); { ExprP<Ret> expr = applyVar(m_func, variables.in0, variables.in1, variables.in2, variables.in3); StatementP stmt = variableAssignment(variables.out0, expr); this->testStatement(variables, inputs, *stmt); } }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf0, %rsp movq %rdi, %rbx movq (%rdi), %rax callq *0x30(%rax) leaq 0xa0(%rbx), %rdx movl 0xf0(%rbx), %ecx movq 0xf8(%rbx), %r8 leaq 0x150(%rbx), %r9 leaq 0x90(%rsp), %rdi movq %rax, %rsi callq 0x6d6ddb xorps %xmm0, %xmm0 movaps %xmm0, 0x80(%rsp) movaps %xmm0, 0x70(%rsp) movaps %xmm0, 0x60(%rsp) movaps %xmm0, 0x50(%rsp) movaps %xmm0, 0x40(%rsp) movaps %xmm0, 0x30(%rsp) leaq 0x20(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x2b3dc4(%rip), %rsi # 0xa443b2 leaq 0x2b3dc1(%rip), %rdx # 0xa443b6 leaq 0x10(%rsp), %rdi callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x757fb5 movq 0x78(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x790680 testq %rax, %rax je 0x79065b lock decl 0x8(%rax) jne 0x790637 movq $0x0, 0x70(%rsp) movq 0x78(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x78(%rsp), %rax lock decl 0xc(%rax) jne 0x79065b movq 0x78(%rsp), %rdi testq %rdi, %rdi je 0x790652 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x78(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) testq %rax, %rax je 0x790680 lock incl 0x8(%rax) movq 0x78(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x7906c7 lock decl 0x8(%rax) jne 0x7906a3 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x7906c7 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7906be movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x7906de movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2b427e(%rip), %rsi # 0xa4496b leaq 0x2b427b(%rip), %rdx # 0xa4496f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x88(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x790799 testq %rax, %rax je 0x79076b lock decl 0x8(%rax) jne 0x79073e movq $0x0, 0x80(%rsp) movq 0x88(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x88(%rsp), %rax lock decl 0xc(%rax) jne 0x79076b movq 0x88(%rsp), %rdi testq %rdi, %rdi je 0x79075f movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x88(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x80(%rsp) movq %rax, 0x88(%rsp) testq %rax, %rax je 0x790799 lock incl 0x8(%rax) movq 0x88(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x7907e0 lock decl 0x8(%rax) jne 0x7907bc movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x7907e0 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7907d7 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x7907f7 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27cd56(%rip), %rsi # 0xa0d55c leaq 0x27cd52(%rip), %rdx # 0xa0d55f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6bc46d movq 0x38(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x790893 testq %rax, %rax je 0x79086e lock decl 0x8(%rax) jne 0x79084a movq $0x0, 0x30(%rsp) movq 0x38(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x38(%rsp), %rax lock decl 0xc(%rax) jne 0x79086e movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x790865 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x38(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x30(%rsp) movq %rax, 0x38(%rsp) testq %rax, %rax je 0x790893 lock incl 0x8(%rax) movq 0x38(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x7908da lock decl 0x8(%rax) jne 0x7908b6 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x7908da movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7908d1 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x7908f1 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27d263(%rip), %rsi # 0xa0db63 leaq 0x27d25f(%rip), %rdx # 0xa0db66 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6bc46d movq 0x48(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x79098d testq %rax, %rax je 0x790968 lock decl 0x8(%rax) jne 0x790944 movq $0x0, 0x40(%rsp) movq 0x48(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x48(%rsp), %rax lock decl 0xc(%rax) jne 0x790968 movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x79095f movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x48(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x40(%rsp) movq %rax, 0x48(%rsp) testq %rax, %rax je 0x79098d lock incl 0x8(%rax) movq 0x48(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x7909d4 lock decl 0x8(%rax) jne 0x7909b0 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x7909d4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7909cb movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x7909eb movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2817f8(%rip), %rsi # 0xa121f2 leaq 0x2817f4(%rip), %rdx # 0xa121f5 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x58(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x790a87 testq %rax, %rax je 0x790a62 lock decl 0x8(%rax) jne 0x790a3e movq $0x0, 0x50(%rsp) movq 0x58(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x58(%rsp), %rax lock decl 0xc(%rax) jne 0x790a62 movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x790a59 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x58(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x50(%rsp) movq %rax, 0x58(%rsp) testq %rax, %rax je 0x790a87 lock incl 0x8(%rax) movq 0x58(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x790ace lock decl 0x8(%rax) jne 0x790aaa movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x790ace movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x790ac5 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x790ae5 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2d6f9b(%rip), %rsi # 0xa67a8f leaq 0x2d6f97(%rip), %rdx # 0xa67a92 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x68(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x790b81 testq %rax, %rax je 0x790b5c lock decl 0x8(%rax) jne 0x790b38 movq $0x0, 0x60(%rsp) movq 0x68(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x68(%rsp), %rax lock decl 0xc(%rax) jne 0x790b5c movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0x790b53 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x68(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x60(%rsp) movq %rax, 0x68(%rsp) testq %rax, %rax je 0x790b81 lock incl 0x8(%rax) movq 0x68(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x790bc8 lock decl 0x8(%rax) jne 0x790ba4 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x790bc8 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x790bbf movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) leaq 0x40(%rsp), %r14 leaq 0x50(%rsp), %r15 leaq 0x60(%rsp), %r12 movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x790bee movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x180(%rbx), %rsi leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rdx movq %r14, %rcx movq %r15, %r8 movq %r12, %r9 callq 0x790dcd leaq 0x70(%rsp), %rsi movq %rsp, %rdi leaq 0x10(%rsp), %rdx xorl %ecx, %ecx callq 0x75a903 movq (%rsp), %rcx leaq 0x30(%rsp), %rsi leaq 0x90(%rsp), %rdx movq %rbx, %rdi callq 0x790e46 movq 0x8(%rsp), %rax testq %rax, %rax je 0x790c81 lock decl 0x8(%rax) jne 0x790c5d movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x790c81 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x790c78 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x18(%rsp), %rax testq %rax, %rax je 0x790cc9 lock decl 0x8(%rax) jne 0x790ca5 movq $0x0, 0x10(%rsp) movq 0x18(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x18(%rsp), %rax lock decl 0xc(%rax) jne 0x790cc9 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x790cc0 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x18(%rsp) leaq 0x30(%rsp), %rdi callq 0x79231c movq 0xd8(%rsp), %rdi testq %rdi, %rdi je 0x790cf0 movq 0xe8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xc0(%rsp), %rdi testq %rdi, %rdi je 0x790d0d movq 0xd0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi testq %rdi, %rdi je 0x790d2a movq 0xb8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x90(%rsp), %rdi testq %rdi, %rdi je 0x790d47 movq 0xa0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0xf0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x6aceae jmp 0x790d68 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x7594de jmp 0x790da9 jmp 0x790da6 jmp 0x790d8a jmp 0x790da6 jmp 0x790d8a jmp 0x790da6 jmp 0x790d8a jmp 0x790da6 jmp 0x790d8a jmp 0x790da6 jmp 0x790d8a jmp 0x790da6 movq %rax, %rbx movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x790da9 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x790da9 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x79231c leaq 0x90(%rsp), %rdi callq 0x6d8aba movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
void deqp::gls::BuiltinPrecisionTests::PrecisionCase::testStatement<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 3, 3>, deqp::gls::BuiltinPrecisionTests::Void>>(deqp::gls::BuiltinPrecisionTests::Variables<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 3, 3>, deqp::gls::BuiltinPrecisionTests::Void>> const&, deqp::gls::BuiltinPrecisionTests::Inputs<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>> const&, deqp::gls::BuiltinPrecisionTests::Statement const&)
void PrecisionCase::testStatement (const Variables<In, Out>& variables, const Inputs<In>& inputs, const Statement& stmt) { using namespace ShaderExecUtil; typedef typename In::In0 In0; typedef typename In::In1 In1; typedef typename In::In2 In2; typedef typename In::In3 In3; typedef typename Out::Out0 Out0; typedef typename Out::Out1 Out1; const FloatFormat& fmt = getFormat(); const int inCount = numInputs<In>(); const int outCount = numOutputs<Out>(); const size_t numValues = (inCount > 0) ? inputs.in0.size() : 1; Outputs<Out> outputs (numValues); ShaderSpec spec; const FloatFormat highpFmt = m_ctx.highpFormat; const int maxMsgs = 100; int numErrors = 0; Environment env; // Hoisted out of the inner loop for optimization. switch (inCount) { case 4: DE_ASSERT(inputs.in3.size() == numValues); case 3: DE_ASSERT(inputs.in2.size() == numValues); case 2: DE_ASSERT(inputs.in1.size() == numValues); case 1: DE_ASSERT(inputs.in0.size() == numValues); default: break; } // Print out the statement and its definitions log() << TestLog::Message << "Statement: " << stmt << TestLog::EndMessage; { ostringstream oss; FuncSet funcs; stmt.getUsedFuncs(funcs); for (FuncSet::const_iterator it = funcs.begin(); it != funcs.end(); ++it) { (*it)->printDefinition(oss); } if (!funcs.empty()) log() << TestLog::Message << "Reference definitions:\n" << oss.str() << TestLog::EndMessage; } // Initialize ShaderSpec from precision, variables and statement. { ostringstream os; os << "precision " << glu::getPrecisionName(m_ctx.precision) << " float;\n"; spec.globalDeclarations = os.str(); } spec.version = getContextTypeGLSLVersion(getRenderContext().getType()); if (!m_extension.empty()) spec.globalDeclarations = "#extension " + m_extension + " : require\n"; spec.inputs.resize(inCount); switch (inCount) { case 4: spec.inputs[3] = makeSymbol(*variables.in3); case 3: spec.inputs[2] = makeSymbol(*variables.in2); case 2: spec.inputs[1] = makeSymbol(*variables.in1); case 1: spec.inputs[0] = makeSymbol(*variables.in0); default: break; } spec.outputs.resize(outCount); switch (outCount) { case 2: spec.outputs[1] = makeSymbol(*variables.out1); case 1: spec.outputs[0] = makeSymbol(*variables.out0); default: break; } spec.source = de::toString(stmt); // Run the shader with inputs. { UniquePtr<ShaderExecutor> executor (createExecutor(getRenderContext(), m_ctx.shaderType, spec)); const void* inputArr[] = { &inputs.in0.front(), &inputs.in1.front(), &inputs.in2.front(), &inputs.in3.front(), }; void* outputArr[] = { &outputs.out0.front(), &outputs.out1.front(), }; executor->log(log()); if (!executor->isOk()) TCU_FAIL("Shader compilation failed"); executor->useProgram(); executor->execute(int(numValues), inputArr, outputArr); } // Initialize environment with dummy values so we don't need to bind in inner loop. { const typename Traits<In0>::IVal in0; const typename Traits<In1>::IVal in1; const typename Traits<In2>::IVal in2; const typename Traits<In3>::IVal in3; const typename Traits<Out0>::IVal reference0; const typename Traits<Out1>::IVal reference1; env.bind(*variables.in0, in0); env.bind(*variables.in1, in1); env.bind(*variables.in2, in2); env.bind(*variables.in3, in3); env.bind(*variables.out0, reference0); env.bind(*variables.out1, reference1); } // For each input tuple, compute output reference interval and compare // shader output to the reference. for (size_t valueNdx = 0; valueNdx < numValues; valueNdx++) { bool result = true; typename Traits<Out0>::IVal reference0; typename Traits<Out1>::IVal reference1; if (valueNdx % (size_t)TOUCH_WATCHDOG_VALUE_FREQUENCY == 0) m_testCtx.touchWatchdog(); env.lookup(*variables.in0) = convert<In0>(fmt, round(fmt, inputs.in0[valueNdx])); env.lookup(*variables.in1) = convert<In1>(fmt, round(fmt, inputs.in1[valueNdx])); env.lookup(*variables.in2) = convert<In2>(fmt, round(fmt, inputs.in2[valueNdx])); env.lookup(*variables.in3) = convert<In3>(fmt, round(fmt, inputs.in3[valueNdx])); { EvalContext ctx (fmt, m_ctx.precision, env); stmt.execute(ctx); } switch (outCount) { case 2: reference1 = convert<Out1>(highpFmt, env.lookup(*variables.out1)); if (!m_status.check(contains(reference1, outputs.out1[valueNdx]), "Shader output 1 is outside acceptable range")) result = false; case 1: reference0 = convert<Out0>(highpFmt, env.lookup(*variables.out0)); if (!m_status.check(contains(reference0, outputs.out0[valueNdx]), "Shader output 0 is outside acceptable range")) result = false; default: break; } if (!result) ++numErrors; if ((!result && numErrors <= maxMsgs) || GLS_LOG_ALL_RESULTS) { MessageBuilder builder = log().message(); builder << (result ? "Passed" : "Failed") << " sample:\n"; if (inCount > 0) { builder << "\t" << variables.in0->getName() << " = " << valueToString(highpFmt, inputs.in0[valueNdx]) << "\n"; } if (inCount > 1) { builder << "\t" << variables.in1->getName() << " = " << valueToString(highpFmt, inputs.in1[valueNdx]) << "\n"; } if (inCount > 2) { builder << "\t" << variables.in2->getName() << " = " << valueToString(highpFmt, inputs.in2[valueNdx]) << "\n"; } if (inCount > 3) { builder << "\t" << variables.in3->getName() << " = " << valueToString(highpFmt, inputs.in3[valueNdx]) << "\n"; } if (outCount > 0) { builder << "\t" << variables.out0->getName() << " = " << valueToString(highpFmt, outputs.out0[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out0>(highpFmt, reference0) << "\n"; } if (outCount > 1) { builder << "\t" << variables.out1->getName() << " = " << valueToString(highpFmt, outputs.out1[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out1>(highpFmt, reference1) << "\n"; } builder << TestLog::EndMessage; } } if (numErrors > maxMsgs) { log() << TestLog::Message << "(Skipped " << (numErrors - maxMsgs) << " messages.)" << TestLog::EndMessage; } if (numErrors == 0) { log() << TestLog::Message << "All " << numValues << " inputs passed." << TestLog::EndMessage; } else { log() << TestLog::Message << numErrors << "/" << numValues << " inputs failed." << TestLog::EndMessage; } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x4d8, %rsp # imm = 0x4D8 movq %rcx, 0x90(%rsp) movq %rsi, 0x38(%rsp) movq %rdi, %rbx movq (%rdx), %rcx movq %rdx, 0x40(%rsp) movq 0x8(%rdx), %r13 movq %r13, %rax movq %rcx, 0x98(%rsp) subq %rcx, %rax sarq $0x2, %rax movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %r15 leaq 0x290(%rsp), %rdi movq %r15, %rsi callq 0x75ae98 leaq 0x330(%rsp), %rcx movl $0x1, -0x48(%rcx) xorps %xmm0, %xmm0 movups %xmm0, -0x40(%rcx) movups %xmm0, -0x30(%rcx) movups %xmm0, -0x20(%rcx) movq %rcx, -0x10(%rcx) xorl %eax, %eax movq %rax, -0x8(%rcx) movb %al, (%rcx) leaq 0x350(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rax, -0x8(%rcx) movb %al, (%rcx) movq 0xe8(%rbx), %rcx movq %rcx, 0x2e0(%rsp) movups 0xc8(%rbx), %xmm0 movups 0xd8(%rbx), %xmm1 movaps %xmm1, 0x2d0(%rsp) movaps %xmm0, 0x2c0(%rsp) leaq 0x268(%rsp), %rcx movl $0x0, (%rcx) movq %rax, 0x8(%rcx) movq %rcx, 0x10(%rcx) movq %rcx, 0x18(%rcx) movq %rax, 0x20(%rcx) movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0xc8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d6b5b(%rip), %rsi # 0xa67aa8 movl $0xb, %edx movq %r14, %rdi callq 0x325e70 movq 0x90(%rsp), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x10(%rax) leaq 0x31231b(%rip), %rsi # 0xaa328d leaq 0xc0(%rsp), %rdi callq 0x9aba2a movq %rbx, 0x8(%rsp) movq 0x4cbb9d(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 leaq 0x360(%rsp), %rdi callq 0x325e00 leaq 0x50(%rsp), %r12 movl $0x0, (%r12) xorl %eax, %eax movq %rax, 0x8(%r12) movq %r12, 0x10(%r12) movq %r12, 0x18(%r12) movq %rax, 0x20(%r12) movq 0x90(%rsp), %rdi movq (%rdi), %rax leaq 0x48(%rsp), %rsi callq *0x20(%rax) movq 0x60(%rsp), %rbx cmpq %r12, %rbx je 0x791012 leaq 0x360(%rsp), %r14 movq 0x20(%rbx), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x30(%rax) movq %rbx, %rdi callq 0x325d90 movq %rax, %rbx cmpq %r12, %rax jne 0x790ff5 cmpq $0x0, 0x70(%rsp) movq 0x8(%rsp), %rbx je 0x7910c2 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0xc8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d6a6e(%rip), %rsi # 0xa67ab4 movl $0x17, %edx movq %r14, %rdi callq 0x325e70 leaq 0x368(%rsp), %rsi leaq 0x10(%rsp), %rdi callq 0x325660 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %r14, %rdi callq 0x325e70 leaq 0x31220f(%rip), %rsi # 0xaa328d leaq 0xc0(%rsp), %rdi callq 0x9aba2a leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7910a6 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4cba7b(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 leaq 0x48(%rsp), %rdi callq 0x6b222e movq 0x4cba55(%rip), %rsi # 0xc5cb28 leaq 0x360(%rsp), %rdi callq 0x325aa0 leaq 0x3d0(%rsp), %rdi callq 0x325a80 leaq 0xc0(%rsp), %rdi callq 0x325e00 leaq 0x2d69cb(%rip), %rsi # 0xa67acc leaq 0xc0(%rsp), %rdi movl $0xa, %edx callq 0x325e70 movl 0xf0(%rbx), %edi callq 0x8bb7fe movq %rax, %rbx testq %rax, %rax je 0x791143 movq %rbx, %rdi callq 0x325680 leaq 0xc0(%rsp), %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x791165 movq 0xc0(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0xc0, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x2f0a2f(%rip), %rsi # 0xa81b9b leaq 0xc0(%rsp), %rdi movl $0x8, %edx callq 0x325e70 leaq 0xc8(%rsp), %rsi leaq 0x360(%rsp), %rdi callq 0x325660 leaq 0x320(%rsp), %rbx leaq 0x360(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi leaq 0x370(%rsp), %r12 cmpq %r12, %rdi je 0x7911ce movq 0x370(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4cb953(%rip), %rsi # 0xc5cb28 leaq 0xc0(%rsp), %rdi callq 0x325aa0 leaq 0x130(%rsp), %rdi callq 0x325a80 movq 0x8(%rsp), %rax movq 0x98(%rax), %rdi movq (%rdi), %rax callq *0x10(%rax) movl %eax, %edi callq 0x8bb7c2 movl %eax, 0x2e8(%rsp) movq 0x8(%rsp), %rax cmpq $0x0, 0x168(%rax) je 0x7912ec movq 0x8(%rsp), %rax leaq 0x160(%rax), %rdx leaq 0x2f2be2(%rip), %rsi # 0xa83e17 leaq 0x360(%rsp), %rdi callq 0x33fea4 leaq 0x2f6279(%rip), %rsi # 0xa874c2 leaq 0x360(%rsp), %rdi callq 0x3259c0 leaq 0xd0(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x791286 movq %rdx, 0xc0(%rsp) movq (%rcx), %rdx movq %rdx, 0xd0(%rsp) jmp 0x79128d movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx leaq 0xc0(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %rbp, %rdi je 0x7912cf movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x360(%rsp), %rdi cmpq %r12, %rdi je 0x7912ec movq 0x370(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2f0(%rsp), %rdi movl $0x2, %esi callq 0x6b1e2a movq 0x38(%rsp), %rax movq 0x10(%rax), %rdx leaq 0xc0(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x6be6f6 movq 0x2f0(%rsp), %r14 leaq 0x38(%r14), %rdi leaq 0xc0(%rsp), %rsi callq 0x325800 addq $0x58, %r14 leaq 0xe0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 leaq 0xd0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x791372 movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x38(%rsp), %rax movq (%rax), %rdx leaq 0xc0(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x6be6f6 movq 0x2f0(%rsp), %r14 leaq 0xc0(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0xe0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rax cmpq %rax, %rdi je 0x7913e8 movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x308(%rsp), %rdi movl $0x1, %esi callq 0x6b1e2a movq 0x38(%rsp), %rax movq 0x40(%rax), %rdx leaq 0xc0(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x75aee4 movq 0x308(%rsp), %r14 leaq 0xc0(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0xe0(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rax cmpq %rax, %rdi je 0x791471 movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xc0(%rsp), %rdi callq 0x325e00 movq 0x90(%rsp), %rdi movq (%rdi), %rax leaq 0xc0(%rsp), %rsi callq *0x10(%rax) leaq 0xc8(%rsp), %rsi leaq 0x360(%rsp), %rdi callq 0x325660 leaq 0x340(%rsp), %rbx movq 0x4cb670(%rip), %rsi # 0xc5cb28 leaq 0xc0(%rsp), %rdi callq 0x325aa0 leaq 0x130(%rsp), %rdi callq 0x325a80 leaq 0x360(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %r12, %rdi je 0x7914fd movq 0x370(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rbx movq 0x98(%rbx), %rdi movl 0xf4(%rbx), %esi leaq 0x2e8(%rsp), %rdx callq 0x878341 movq %rax, %r14 movq 0x40(%rsp), %rcx movq (%rcx), %rax movq %rax, 0xc0(%rsp) movq 0x18(%rcx), %rax movq %rax, 0xc8(%rsp) movq 0x30(%rcx), %rax movq %rax, 0xd0(%rsp) movq 0x48(%rcx), %rax movq %rax, 0xd8(%rsp) movq 0x290(%rsp), %rax movq 0x2a8(%rsp), %rcx movq %rax, 0x360(%rsp) movq %rcx, 0x368(%rsp) movq 0x8(%rbx), %rax movq 0x10(%rax), %rsi movq (%r14), %rax movq %r14, %rdi callq *0x18(%rax) movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) testb %al, %al je 0x79202a movq (%r14), %rax movq %r14, %rdi callq *0x28(%rax) movq (%r14), %rax leaq 0xc0(%rsp), %rdx leaq 0x360(%rsp), %rcx movq %r14, %rdi movl %r15d, %esi callq *0x30(%rax) leaq 0xa0(%rbx), %rax movq %rax, 0x258(%rsp) movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) movl $0x10, %edx movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000 movabsq $-0x10000000000000, %rcx # imm = 0xFFF0000000000000 movb $0x0, 0x350(%rsp,%rdx) movq %rax, 0x358(%rsp,%rdx) movq %rcx, 0x360(%rsp,%rdx) addq $0x18, %rdx cmpq $0x58, %rdx jne 0x7915eb movl $0x10, %edx movb $0x0, 0x350(%rsp,%rdx) movq %rax, 0x358(%rsp,%rdx) movq %rcx, 0x360(%rsp,%rdx) addq $0x18, %rdx cmpq $0x58, %rdx jne 0x791612 movl $0x10, %edx movb $0x0, 0x38(%rsp,%rdx) movq %rax, 0x40(%rsp,%rdx) movq %rcx, 0x48(%rsp,%rdx) addq $0x18, %rdx cmpq $0x58, %rdx jne 0x791639 movl $0x10, %edx movb $0x0, 0x38(%rsp,%rdx) movq %rax, 0x40(%rsp,%rdx) movq %rcx, 0x48(%rsp,%rdx) addq $0x18, %rdx cmpq $0x58, %rdx jne 0x791657 leaq 0xc0(%rsp), %rdi callq 0x75af98 movq 0x38(%rsp), %r14 movq (%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0x360(%rsp), %rdx callq 0x6be7aa movq 0x10(%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0x48(%rsp), %rdx callq 0x6be7aa movq 0x20(%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0x10(%rsp), %rdx callq 0x6b1f1c movq 0x30(%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0xa0(%rsp), %rdx callq 0x6b1f1c movq 0x40(%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0xc0(%rsp), %rdx callq 0x75ad3a movq 0x50(%r14), %rsi leaq 0x260(%rsp), %rdi leaq 0x37(%rsp), %rdx callq 0x6b1f1c cmpq 0x98(%rsp), %r13 movq %r15, 0x240(%rsp) je 0x791ddb movq 0x8(%rsp), %rax addq $0x100, %rax # imm = 0x100 movq %rax, 0x98(%rsp) cmpq $0x1, %r15 adcq $0x0, %r15 movq %r15, 0x250(%rsp) xorl %ebp, %ebp xorl %r12d, %r12d leaq 0x360(%rsp), %rdi callq 0x75af98 movq %rbp, %rax shlq $0x34, %rax jne 0x791770 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0x9a9c08 movq 0x40(%rsp), %rax movq (%rax), %rax leaq (,%rbp,2), %r14 addq %rbp, %r14 movl 0x8(%rax,%r14,4), %ecx movl %ecx, 0x18(%rsp) movq (%rax,%r14,4), %rax movq %rax, 0x10(%rsp) leaq 0x48(%rsp), %rdi movq 0x258(%rsp), %rbx movq %rbx, %rsi leaq 0x10(%rsp), %rdx callq 0x6bea40 movq 0x38(%rsp), %r15 leaq 0x260(%rsp), %r13 leaq 0xc0(%rsp), %rdi movq %rbx, %rsi leaq 0x48(%rsp), %rdx callq 0x6be994 movq (%r15), %rsi movq %r13, %rdi callq 0x6bdea6 movl $0x9, %ecx movq %rax, %rdi leaq 0xc0(%rsp), %rsi rep movsq (%rsi), %es:(%rdi) movq 0x40(%rsp), %rax movq 0x18(%rax), %rax movl 0x8(%rax,%r14,4), %ecx movl %ecx, 0x18(%rsp) movq (%rax,%r14,4), %rax movq %rax, 0x10(%rsp) leaq 0x48(%rsp), %rdi movq %rbx, %rsi leaq 0x10(%rsp), %rdx callq 0x6bea40 leaq 0xc0(%rsp), %rdi movq %rbx, %rsi leaq 0x48(%rsp), %rdx callq 0x6be994 movq 0x10(%r15), %rsi movq %r13, %rdi callq 0x6bdea6 movl $0x9, %ecx movq %rax, %rdi leaq 0xc0(%rsp), %rsi rep movsq (%rsi), %es:(%rdi) movq 0x20(%r15), %rsi movq %r13, %rdi callq 0x6b0800 movq 0x30(%r15), %rsi movq %r13, %rdi callq 0x6b0800 movq 0x8(%rsp), %rax movl 0xf0(%rax), %eax movq 0x20(%rbx), %rcx movq %rcx, 0xe0(%rsp) movups (%rbx), %xmm0 movups 0x10(%rbx), %xmm1 movaps %xmm1, 0xd0(%rsp) movaps %xmm0, 0xc0(%rsp) movl %eax, 0xe8(%rsp) movq %r13, 0xf0(%rsp) movl $0x0, 0xf8(%rsp) movq 0x90(%rsp), %rdi movq (%rdi), %rax leaq 0xc0(%rsp), %rsi callq *0x18(%rax) movq 0x40(%r15), %rsi movq %r13, %rdi callq 0x759ec8 leaq 0xc0(%rsp), %r15 movq %r15, %rdi leaq 0x2c0(%rsp), %rsi movq %rax, %rdx callq 0x75b3a2 leaq 0x360(%rsp), %rcx xorl %edx, %edx xorl %esi, %esi movq 0x10(%r15,%rsi), %rdi movq %rdi, 0x10(%rcx,%rsi) movups (%r15,%rsi), %xmm0 movups %xmm0, (%rcx,%rsi) addq $0x48, %rsi cmpq $0xd8, %rsi jne 0x7918f9 incq %rdx addq $0x18, %rcx addq $0x18, %r15 cmpq $0x3, %rdx jne 0x7918f7 leaq (,%rbp,8), %r15 addq %rbp, %r15 shlq $0x2, %r15 movq 0x290(%rsp), %rsi addq %r15, %rsi leaq 0x360(%rsp), %rdi callq 0x75b104 movl %eax, %r13d leaq 0xd0(%rsp), %rax movq %rax, 0xc0(%rsp) leaq 0xc0(%rsp), %rbx movq %rbx, %rdi leaq 0x2d6206(%rip), %rsi # 0xa67b7c leaq 0x2d622a(%rip), %rdx # 0xa67ba7 callq 0x334070 movzbl %r13b, %esi movq 0x98(%rsp), %rdi movq %rbx, %rdx callq 0x9a94ca movl %eax, %r13d movq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rax cmpq %rax, %rdi je 0x7919be movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 movl %r13d, %eax notb %al movzbl %al, %eax andl $0x1, %eax addl %eax, %r12d cmpl $0x65, %r12d setge %al orb %r13b, %al testb $0x1, %al jne 0x791dc8 movq %r12, 0x248(%rsp) movq 0x8(%rsp), %rax movq 0x8(%rax), %rax movq 0x10(%rax), %rax movq %rax, 0xc0(%rsp) leaq 0xc8(%rsp), %r12 movq %r12, %rdi callq 0x325e00 testb %r13b, %r13b leaq 0x2809c5(%rip), %rsi # 0xa123da leaq 0x2809b7(%rip), %rax # 0xa123d3 cmovneq %rax, %rsi movl $0x6, %edx movq %r12, %rdi callq 0x325e70 movq 0x38(%rsp), %r13 movl $0x9, %edx movq %r12, %rdi leaq 0x2d6167(%rip), %rsi # 0xa67ba8 callq 0x325e70 movl $0x1, %edx movq %r12, %rdi leaq 0x2cdd7b(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq (%r13), %rax leaq 0x58(%rsp), %rcx movq %rcx, 0x48(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x48(%rsp), %rdi callq 0x334442 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0xc8(%rsp), %r12 movq %r12, %rdi callq 0x325e70 movl $0x3, %edx movq %r12, %rdi leaq 0x2b9f2f(%rip), %rsi # 0xa4b9d5 callq 0x325e70 shlq $0x2, %r14 movq 0x40(%rsp), %rax movq (%rax), %rdx addq %r14, %rdx leaq 0x10(%rsp), %rdi leaq 0x2c0(%rsp), %rsi callq 0x6be908 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx leaq 0xc8(%rsp), %r12 movq %r12, %rdi callq 0x325e70 movl $0x1, %edx movq %r12, %rdi leaq 0x2c2440(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x791b16 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x791b32 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx leaq 0xc8(%rsp), %r12 movq %r12, %rdi leaq 0x2cdc87(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq 0x10(%r13), %rax leaq 0x58(%rsp), %rcx movq %rcx, 0x48(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x48(%rsp), %rdi callq 0x334442 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0xc8(%rsp), %r12 movq %r12, %rdi callq 0x325e70 movl $0x3, %edx movq %r12, %rdi leaq 0x2b9e3b(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq 0x40(%rsp), %rax addq 0x18(%rax), %r14 leaq 0x10(%rsp), %rdi leaq 0x2c0(%rsp), %rsi movq %r14, %rdx callq 0x6be908 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx leaq 0xc8(%rsp), %r12 movq %r12, %rdi callq 0x325e70 movl $0x1, %edx movq %r12, %rdi leaq 0x2c234f(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x791c07 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x791c23 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx movq %r12, %rdi leaq 0x2cdb9e(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq 0x40(%r13), %rax leaq 0x58(%rsp), %rcx movq %rcx, 0x48(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x48(%rsp), %rdi callq 0x334442 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0xc8(%rsp), %r14 movq %r14, %rdi callq 0x325e70 leaq 0xc0(%rsp), %r12 movl $0x3, %edx movq %r14, %rdi leaq 0x2b9d4a(%rip), %rsi # 0xa4b9d5 callq 0x325e70 addq 0x290(%rsp), %r15 leaq 0x10(%rsp), %rdi leaq 0x2c0(%rsp), %rsi movq %r15, %rdx callq 0x75b157 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %r14, %rdi callq 0x325e70 movl $0x1, %edx movq %r14, %rdi leaq 0x2c2267(%rip), %rsi # 0xa53f35 callq 0x325e70 movl $0x11, %edx movq %r14, %rdi leaq 0x2d5ed0(%rip), %rsi # 0xa67bb2 callq 0x325e70 leaq 0xa0(%rsp), %rdi leaq 0x2c0(%rsp), %rsi leaq 0x360(%rsp), %rdx callq 0x75b1e3 movq 0xa0(%rsp), %rsi movq 0xa8(%rsp), %rdx movq %r14, %rdi callq 0x325e70 movl $0x1, %edx movq %r14, %rdi leaq 0x2c220a(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0xa0(%rsp), %rdi leaq 0xb0(%rsp), %rax cmpq %rax, %rdi je 0x791d55 movq 0xb0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x791d71 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x791d8d movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r12, %rdi leaq 0x3114f6(%rip), %rsi # 0xaa328d leaq 0xc8(%rsp), %r12 callq 0x9aba2a movq %r12, %rdi movq 0x4cad7a(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 movq 0x248(%rsp), %r12 incq %rbp cmpq 0x250(%rsp), %rbp jne 0x79174c jmp 0x791dde xorl %r12d, %r12d cmpl $0x64, %r12d movq 0x240(%rsp), %rbx movq 0x8(%rsp), %r15 jle 0x791e76 movq 0x8(%r15), %rax movq 0x10(%rax), %rax leaq 0xc8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d5dac(%rip), %rsi # 0xa67bc4 movl $0x9, %edx movq %r14, %rdi callq 0x325e70 leal -0x64(%r12), %esi movq %r14, %rdi callq 0x325530 leaq 0x2d5d95(%rip), %rsi # 0xa67bce movl $0xb, %edx movq %r14, %rdi callq 0x325e70 leaq 0x311440(%rip), %rsi # 0xaa328d leaq 0xc0(%rsp), %rdi callq 0x9aba2a movq 0x4cacc7(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 testl %r12d, %r12d je 0x791eeb movq 0x8(%r15), %rax movq 0x10(%rax), %rax leaq 0xc8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 movq %r14, %rdi movl %r12d, %esi callq 0x325530 leaq 0x28ad70(%rip), %rsi # 0xa1cc19 movl $0x1, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq %rbx, %rsi callq 0x3257b0 leaq 0x2d5d27(%rip), %rsi # 0xa67bef movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x3113b1(%rip), %rsi # 0xaa328d leaq 0xc0(%rsp), %rdi callq 0x9aba2a jmp 0x791f4e movq 0x8(%r15), %rax movq 0x10(%rax), %rax leaq 0xc8(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d5ccc(%rip), %rsi # 0xa67bda movl $0x4, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq %rbx, %rsi callq 0x3257b0 leaq 0x2d5cb2(%rip), %rsi # 0xa67bdf movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x31134c(%rip), %rsi # 0xaa328d leaq 0xc0(%rsp), %rdi callq 0x9aba2a movq 0x4cabd3(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 leaq 0x260(%rsp), %rdi callq 0x6b2588 movq 0x340(%rsp), %rdi leaq 0x350(%rsp), %rax cmpq %rax, %rdi leaq 0x308(%rsp), %rbx je 0x791fa4 movq 0x350(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x320(%rsp), %rdi leaq 0x330(%rsp), %rax cmpq %rax, %rdi je 0x791fc9 movq 0x330(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x36a7d0 leaq 0x2f0(%rsp), %rdi callq 0x36a7d0 movq 0x2a8(%rsp), %rdi testq %rdi, %rdi je 0x791ffb movq 0x2b8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x290(%rsp), %rdi testq %rdi, %rdi je 0x792018 movq 0x2a0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0x4d8, %rsp # imm = 0x4D8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %r15 leaq 0x2bf9b1(%rip), %rsi # 0xa519ef leaq 0x2d5a92(%rip), %rcx # 0xa67ad7 movq %rax, %rdi xorl %edx, %edx movl $0x11d4, %r8d # imm = 0x11D4 callq 0x99c17e leaq 0x489064(%rip), %rsi # 0xc1b0c0 leaq -0x460283(%rip), %rdx # 0x331de0 movq %r15, %rdi callq 0x325940 jmp 0x7922ea jmp 0x792155 jmp 0x7922ea movq %rax, %rbx movq %r15, %rdi callq 0x325d40 jmp 0x792193 jmp 0x7922ea movq %rax, %rbx movq 0x360(%rsp), %rdi cmpq %r12, %rdi je 0x7922ed movq 0x370(%rsp), %rsi jmp 0x792241 jmp 0x7922ea jmp 0x7920b7 movq %rax, %rbx jmp 0x79212c jmp 0x792253 jmp 0x7922ea jmp 0x7922ea jmp 0x7922ea jmp 0x7920de jmp 0x7922ea jmp 0x7920de jmp 0x7922ea movq %rax, %rbx leaq 0xc0(%rsp), %rdi callq 0x36a3d6 jmp 0x7922ed jmp 0x7922ea jmp 0x79216c jmp 0x7922ea jmp 0x792253 jmp 0x7922ea jmp 0x7922ea movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x79212c movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4ca9f5(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 jmp 0x792256 jmp 0x792155 jmp 0x792155 jmp 0x79216c jmp 0x792155 movq %rax, %rbx movq 0x4ca9c9(%rip), %rsi # 0xc5cb28 movq %r14, %rdi jmp 0x7922d4 jmp 0x7922ea movq %rax, %rbx movq 0x4ca9b2(%rip), %rsi # 0xc5cb28 leaq 0xc0(%rsp), %rdi callq 0x325aa0 leaq 0x130(%rsp), %rdi jmp 0x7922e1 movq %rax, %rbx movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) jmp 0x7922ed jmp 0x7922ea jmp 0x792280 jmp 0x792201 jmp 0x7921ba jmp 0x792201 jmp 0x7922ea jmp 0x792201 jmp 0x7921ba movq %rax, %rbx jmp 0x7922bb jmp 0x792280 jmp 0x792201 jmp 0x792280 jmp 0x792201 movq %rax, %rbx movq 0xa0(%rsp), %rdi leaq 0xb0(%rsp), %rax cmpq %rax, %rdi je 0x792283 movq 0xb0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x792283 movq %rax, %rbx jmp 0x79229f jmp 0x7922ea jmp 0x7922ea jmp 0x7922ea jmp 0x7922ea movq %rax, %rbx movq 0xc0(%rsp), %rdi leaq 0xd0(%rsp), %rax cmpq %rax, %rdi je 0x7922ed movq 0xd0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x7922ed jmp 0x7922ea movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x6b222e movq 0x4ca8c1(%rip), %rsi # 0xc5cb28 leaq 0x360(%rsp), %rdi callq 0x325aa0 leaq 0x3d0(%rsp), %rdi jmp 0x7922e1 jmp 0x7922ea movq %rax, %rbx movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x79229f movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x7922bb movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xc8(%rsp), %rdi jmp 0x7922cd jmp 0x7922ea movq %rax, %rbx movq %r12, %rdi movq 0x4ca854(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x138(%rsp), %rdi callq 0x325a80 jmp 0x7922ed jmp 0x7922ea movq %rax, %rbx leaq 0x260(%rsp), %rdi callq 0x6b2588 leaq 0x2e8(%rsp), %rdi callq 0x36a3fe leaq 0x290(%rsp), %rdi callq 0x75b27e movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Apply<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doPrintExpr(std::ostream&) const
void doPrintExpr (ostream& os) const { BaseArgExprs args; args.push_back(m_args.a.get()); args.push_back(m_args.b.get()); args.push_back(m_args.c.get()); args.push_back(m_args.d.get()); m_func.print(os, args); }
pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r14 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %rdi movaps %xmm0, (%rdi) movq $0x0, 0x10(%rdi) movq 0x10(%r14), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) callq 0x6b128e movq 0x20(%r14), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) leaq 0x10(%rsp), %rdi callq 0x6b128e movq 0x30(%r14), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) leaq 0x10(%rsp), %rdi callq 0x6b128e movq 0x40(%r14), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) leaq 0x10(%rsp), %rdi callq 0x6b128e movq 0x8(%r14), %rdi movq (%rdi), %rax leaq 0x10(%rsp), %rdx movq %rbx, %rsi callq *0x20(%rax) movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x792772 movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0x28, %rsp popq %rbx popq %r14 retq jmp 0x792782 jmp 0x792782 jmp 0x792782 jmp 0x792782 movq %rax, %rbx movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x79279c movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::Apply<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doGetUsedFuncs(std::set<deqp::gls::BuiltinPrecisionTests::FuncBase const*, std::less<deqp::gls::BuiltinPrecisionTests::FuncBase const*>, std::allocator<deqp::gls::BuiltinPrecisionTests::FuncBase const*>>&) const
void doGetUsedFuncs (FuncSet& dst) const { m_func.getUsedFuncs(dst); m_args.a->getUsedFuncs(dst); m_args.b->getUsedFuncs(dst); m_args.c->getUsedFuncs(dst); m_args.d->getUsedFuncs(dst); }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x38(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x20(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x30(%r14), %rdi movq (%rdi), %rax movq %rbx, %rsi callq *0x18(%rax) movq 0x40(%r14), %rdi movq (%rdi), %rax movq 0x18(%rax), %rax movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::ApplyVar<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::doEvaluate(deqp::gls::BuiltinPrecisionTests::EvalContext const&) const
IVal doEvaluate (const EvalContext& ctx) const { const Variable<Arg0>& var0 = static_cast<const Variable<Arg0>&>(*this->m_args.a); const Variable<Arg1>& var1 = static_cast<const Variable<Arg1>&>(*this->m_args.b); const Variable<Arg2>& var2 = static_cast<const Variable<Arg2>&>(*this->m_args.c); const Variable<Arg3>& var3 = static_cast<const Variable<Arg3>&>(*this->m_args.d); return this->m_func.apply(ctx, ctx.env.lookup(var0), ctx.env.lookup(var1), ctx.env.lookup(var2), ctx.env.lookup(var3)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r14 movq %rdi, %rbx movq 0x8(%rsi), %r15 movq 0x10(%rsi), %rax movq 0x20(%rsi), %r12 movq 0x30(%rsi), %r13 movq 0x40(%rsi), %rcx movq %rcx, (%rsp) movq 0x30(%rdx), %rdi movq %rax, %rsi callq 0x6bdea6 movq %rax, %rbp movq 0x30(%r14), %rdi movq %r12, %rsi callq 0x6bdea6 movq %rax, %r12 movq 0x30(%r14), %rdi movq %r13, %rsi callq 0x6b0800 movq %rax, %r13 movq 0x30(%r14), %rdi movq (%rsp), %rsi callq 0x6b0800 leaq 0x8(%rsp), %rcx movq %rbp, (%rcx) movq %r12, 0x8(%rcx) movq %r13, 0x10(%rcx) movq %rax, 0x18(%rcx) movq (%r15), %rax movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq *0x40(%rax) movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::BuiltinPrecisionTests::InOutFuncCase<deqp::gls::BuiltinPrecisionTests::Signature<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>, tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>>::runTest()
void InOutFuncCase<Sig>::runTest (void) { const Inputs<In> inputs (generateInputs(getSamplings(), m_ctx.floatFormat, m_ctx.precision, m_ctx.numRandoms, m_rnd)); Variables<In, Out> variables; variables.out0 = variable<Ret>("out0"); variables.out1 = variable<Arg1>("out1"); variables.in0 = variable<Arg0>("in0"); variables.in1 = variable<Arg2>("in1"); variables.in2 = variable<Arg3>("in2"); variables.in3 = variable<Void>("in3"); { ExprP<Ret> expr = applyVar(m_func, variables.in0, variables.out1, variables.in1, variables.in2); StatementP stmt = variableAssignment(variables.out0, expr); this->testStatement(variables, inputs, *stmt); } }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf0, %rsp movq %rdi, %rbx movq (%rdi), %rax callq *0x30(%rax) leaq 0xa0(%rbx), %rdx movl 0xf0(%rbx), %ecx movq 0xf8(%rbx), %r8 leaq 0x150(%rbx), %r9 leaq 0x90(%rsp), %rdi movq %rax, %rsi callq 0x6bbf2f xorps %xmm0, %xmm0 movaps %xmm0, 0x80(%rsp) movaps %xmm0, 0x70(%rsp) movaps %xmm0, 0x60(%rsp) movaps %xmm0, 0x50(%rsp) movaps %xmm0, 0x40(%rsp) movaps %xmm0, 0x30(%rsp) leaq 0x20(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x2b1944(%rip), %rsi # 0xa443b2 leaq 0x2b1941(%rip), %rdx # 0xa443b6 leaq 0x10(%rsp), %rdi callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x757fb5 movq 0x78(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x792b00 testq %rax, %rax je 0x792adb lock decl 0x8(%rax) jne 0x792ab7 movq $0x0, 0x70(%rsp) movq 0x78(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x78(%rsp), %rax lock decl 0xc(%rax) jne 0x792adb movq 0x78(%rsp), %rdi testq %rdi, %rdi je 0x792ad2 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x78(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x70(%rsp) movq %rax, 0x78(%rsp) testq %rax, %rax je 0x792b00 lock incl 0x8(%rax) movq 0x78(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x792b47 lock decl 0x8(%rax) jne 0x792b23 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x792b47 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x792b3e movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x792b5e movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2b1dfe(%rip), %rsi # 0xa4496b leaq 0x2b1dfb(%rip), %rdx # 0xa4496f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6bc46d movq 0x88(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x792c19 testq %rax, %rax je 0x792beb lock decl 0x8(%rax) jne 0x792bbe movq $0x0, 0x80(%rsp) movq 0x88(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x88(%rsp), %rax lock decl 0xc(%rax) jne 0x792beb movq 0x88(%rsp), %rdi testq %rdi, %rdi je 0x792bdf movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x88(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x80(%rsp) movq %rax, 0x88(%rsp) testq %rax, %rax je 0x792c19 lock incl 0x8(%rax) movq 0x88(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x792c60 lock decl 0x8(%rax) jne 0x792c3c movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x792c60 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x792c57 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x792c77 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27a8d6(%rip), %rsi # 0xa0d55c leaq 0x27a8d2(%rip), %rdx # 0xa0d55f callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6bc46d movq 0x38(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x792d13 testq %rax, %rax je 0x792cee lock decl 0x8(%rax) jne 0x792cca movq $0x0, 0x30(%rsp) movq 0x38(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x38(%rsp), %rax lock decl 0xc(%rax) jne 0x792cee movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x792ce5 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x38(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x30(%rsp) movq %rax, 0x38(%rsp) testq %rax, %rax je 0x792d13 lock incl 0x8(%rax) movq 0x38(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x792d5a lock decl 0x8(%rax) jne 0x792d36 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x792d5a movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x792d51 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x792d71 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27ade3(%rip), %rsi # 0xa0db63 leaq 0x27addf(%rip), %rdx # 0xa0db66 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x48(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x792e0d testq %rax, %rax je 0x792de8 lock decl 0x8(%rax) jne 0x792dc4 movq $0x0, 0x40(%rsp) movq 0x48(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x48(%rsp), %rax lock decl 0xc(%rax) jne 0x792de8 movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x792ddf movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x48(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x40(%rsp) movq %rax, 0x48(%rsp) testq %rax, %rax je 0x792e0d lock incl 0x8(%rax) movq 0x48(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x792e54 lock decl 0x8(%rax) jne 0x792e30 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x792e54 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x792e4b movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x792e6b movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x27f378(%rip), %rsi # 0xa121f2 leaq 0x27f374(%rip), %rdx # 0xa121f5 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x58(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x792f07 testq %rax, %rax je 0x792ee2 lock decl 0x8(%rax) jne 0x792ebe movq $0x0, 0x50(%rsp) movq 0x58(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x58(%rsp), %rax lock decl 0xc(%rax) jne 0x792ee2 movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x792ed9 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x58(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x50(%rsp) movq %rax, 0x58(%rsp) testq %rax, %rax je 0x792f07 lock incl 0x8(%rax) movq 0x58(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x792f4e lock decl 0x8(%rax) jne 0x792f2a movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x792f4e movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x792f45 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x792f65 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x10(%rsp), %rdi movq %r13, (%rdi) leaq 0x2d4b1b(%rip), %rsi # 0xa67a8f leaq 0x2d4b17(%rip), %rdx # 0xa67a92 callq 0x334070 movq %rsp, %rdi leaq 0x10(%rsp), %rsi callq 0x6aeb33 movq 0x68(%rsp), %rax cmpq 0x8(%rsp), %rax je 0x793001 testq %rax, %rax je 0x792fdc lock decl 0x8(%rax) jne 0x792fb8 movq $0x0, 0x60(%rsp) movq 0x68(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x68(%rsp), %rax lock decl 0xc(%rax) jne 0x792fdc movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0x792fd3 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x68(%rsp) movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x60(%rsp) movq %rax, 0x68(%rsp) testq %rax, %rax je 0x793001 lock incl 0x8(%rax) movq 0x68(%rsp), %rax lock incl 0xc(%rax) movq 0x8(%rsp), %rax testq %rax, %rax je 0x793048 lock decl 0x8(%rax) jne 0x793024 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x793048 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x79303f movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) leaq 0x80(%rsp), %r14 leaq 0x40(%rsp), %r15 leaq 0x50(%rsp), %r12 movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x793071 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x180(%rbx), %rsi leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rdx movq %r14, %rcx movq %r15, %r8 movq %r12, %r9 callq 0x790dcd leaq 0x70(%rsp), %rsi movq %rsp, %rdi leaq 0x10(%rsp), %rdx xorl %ecx, %ecx callq 0x75a903 movq (%rsp), %rcx leaq 0x30(%rsp), %rsi leaq 0x90(%rsp), %rdx movq %rbx, %rdi callq 0x793252 movq 0x8(%rsp), %rax testq %rax, %rax je 0x793104 lock decl 0x8(%rax) jne 0x7930e0 movq $0x0, (%rsp) movq 0x8(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x8(%rsp), %rax lock decl 0xc(%rax) jne 0x793104 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7930fb movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) movq 0x18(%rsp), %rax testq %rax, %rax je 0x79314c lock decl 0x8(%rax) jne 0x793128 movq $0x0, 0x10(%rsp) movq 0x18(%rsp), %rdi movq (%rdi), %rax callq *0x10(%rax) movq 0x18(%rsp), %rax lock decl 0xc(%rax) jne 0x79314c movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x793143 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x18(%rsp) leaq 0x30(%rsp), %rdi callq 0x7948a0 movq 0xd8(%rsp), %rdi testq %rdi, %rdi je 0x793173 movq 0xe8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xc0(%rsp), %rdi testq %rdi, %rdi je 0x793190 movq 0xd0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi testq %rdi, %rdi je 0x7931ad movq 0xb8(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x90(%rsp), %rdi testq %rdi, %rdi je 0x7931ca movq 0xa0(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0xf0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x6aceae jmp 0x7931eb movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x7594de jmp 0x79322c jmp 0x793229 jmp 0x79320d jmp 0x793229 jmp 0x79320d jmp 0x793229 jmp 0x79320d jmp 0x793229 jmp 0x79320d jmp 0x793229 jmp 0x79320d jmp 0x793229 movq %rax, %rbx movq 0x10(%rsp), %rdi cmpq %r13, %rdi je 0x79322c movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x79322c movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x7948a0 leaq 0x90(%rsp), %rdi callq 0x6bda86 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
void deqp::gls::BuiltinPrecisionTests::PrecisionCase::testStatement<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>>>(deqp::gls::BuiltinPrecisionTests::Variables<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>, deqp::gls::BuiltinPrecisionTests::OutTypes<tcu::Matrix<float, 3, 3>, tcu::Vector<float, 3>>> const&, deqp::gls::BuiltinPrecisionTests::Inputs<deqp::gls::BuiltinPrecisionTests::InTypes<tcu::Vector<float, 3>, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void, deqp::gls::BuiltinPrecisionTests::Void>> const&, deqp::gls::BuiltinPrecisionTests::Statement const&)
void PrecisionCase::testStatement (const Variables<In, Out>& variables, const Inputs<In>& inputs, const Statement& stmt) { using namespace ShaderExecUtil; typedef typename In::In0 In0; typedef typename In::In1 In1; typedef typename In::In2 In2; typedef typename In::In3 In3; typedef typename Out::Out0 Out0; typedef typename Out::Out1 Out1; const FloatFormat& fmt = getFormat(); const int inCount = numInputs<In>(); const int outCount = numOutputs<Out>(); const size_t numValues = (inCount > 0) ? inputs.in0.size() : 1; Outputs<Out> outputs (numValues); ShaderSpec spec; const FloatFormat highpFmt = m_ctx.highpFormat; const int maxMsgs = 100; int numErrors = 0; Environment env; // Hoisted out of the inner loop for optimization. switch (inCount) { case 4: DE_ASSERT(inputs.in3.size() == numValues); case 3: DE_ASSERT(inputs.in2.size() == numValues); case 2: DE_ASSERT(inputs.in1.size() == numValues); case 1: DE_ASSERT(inputs.in0.size() == numValues); default: break; } // Print out the statement and its definitions log() << TestLog::Message << "Statement: " << stmt << TestLog::EndMessage; { ostringstream oss; FuncSet funcs; stmt.getUsedFuncs(funcs); for (FuncSet::const_iterator it = funcs.begin(); it != funcs.end(); ++it) { (*it)->printDefinition(oss); } if (!funcs.empty()) log() << TestLog::Message << "Reference definitions:\n" << oss.str() << TestLog::EndMessage; } // Initialize ShaderSpec from precision, variables and statement. { ostringstream os; os << "precision " << glu::getPrecisionName(m_ctx.precision) << " float;\n"; spec.globalDeclarations = os.str(); } spec.version = getContextTypeGLSLVersion(getRenderContext().getType()); if (!m_extension.empty()) spec.globalDeclarations = "#extension " + m_extension + " : require\n"; spec.inputs.resize(inCount); switch (inCount) { case 4: spec.inputs[3] = makeSymbol(*variables.in3); case 3: spec.inputs[2] = makeSymbol(*variables.in2); case 2: spec.inputs[1] = makeSymbol(*variables.in1); case 1: spec.inputs[0] = makeSymbol(*variables.in0); default: break; } spec.outputs.resize(outCount); switch (outCount) { case 2: spec.outputs[1] = makeSymbol(*variables.out1); case 1: spec.outputs[0] = makeSymbol(*variables.out0); default: break; } spec.source = de::toString(stmt); // Run the shader with inputs. { UniquePtr<ShaderExecutor> executor (createExecutor(getRenderContext(), m_ctx.shaderType, spec)); const void* inputArr[] = { &inputs.in0.front(), &inputs.in1.front(), &inputs.in2.front(), &inputs.in3.front(), }; void* outputArr[] = { &outputs.out0.front(), &outputs.out1.front(), }; executor->log(log()); if (!executor->isOk()) TCU_FAIL("Shader compilation failed"); executor->useProgram(); executor->execute(int(numValues), inputArr, outputArr); } // Initialize environment with dummy values so we don't need to bind in inner loop. { const typename Traits<In0>::IVal in0; const typename Traits<In1>::IVal in1; const typename Traits<In2>::IVal in2; const typename Traits<In3>::IVal in3; const typename Traits<Out0>::IVal reference0; const typename Traits<Out1>::IVal reference1; env.bind(*variables.in0, in0); env.bind(*variables.in1, in1); env.bind(*variables.in2, in2); env.bind(*variables.in3, in3); env.bind(*variables.out0, reference0); env.bind(*variables.out1, reference1); } // For each input tuple, compute output reference interval and compare // shader output to the reference. for (size_t valueNdx = 0; valueNdx < numValues; valueNdx++) { bool result = true; typename Traits<Out0>::IVal reference0; typename Traits<Out1>::IVal reference1; if (valueNdx % (size_t)TOUCH_WATCHDOG_VALUE_FREQUENCY == 0) m_testCtx.touchWatchdog(); env.lookup(*variables.in0) = convert<In0>(fmt, round(fmt, inputs.in0[valueNdx])); env.lookup(*variables.in1) = convert<In1>(fmt, round(fmt, inputs.in1[valueNdx])); env.lookup(*variables.in2) = convert<In2>(fmt, round(fmt, inputs.in2[valueNdx])); env.lookup(*variables.in3) = convert<In3>(fmt, round(fmt, inputs.in3[valueNdx])); { EvalContext ctx (fmt, m_ctx.precision, env); stmt.execute(ctx); } switch (outCount) { case 2: reference1 = convert<Out1>(highpFmt, env.lookup(*variables.out1)); if (!m_status.check(contains(reference1, outputs.out1[valueNdx]), "Shader output 1 is outside acceptable range")) result = false; case 1: reference0 = convert<Out0>(highpFmt, env.lookup(*variables.out0)); if (!m_status.check(contains(reference0, outputs.out0[valueNdx]), "Shader output 0 is outside acceptable range")) result = false; default: break; } if (!result) ++numErrors; if ((!result && numErrors <= maxMsgs) || GLS_LOG_ALL_RESULTS) { MessageBuilder builder = log().message(); builder << (result ? "Passed" : "Failed") << " sample:\n"; if (inCount > 0) { builder << "\t" << variables.in0->getName() << " = " << valueToString(highpFmt, inputs.in0[valueNdx]) << "\n"; } if (inCount > 1) { builder << "\t" << variables.in1->getName() << " = " << valueToString(highpFmt, inputs.in1[valueNdx]) << "\n"; } if (inCount > 2) { builder << "\t" << variables.in2->getName() << " = " << valueToString(highpFmt, inputs.in2[valueNdx]) << "\n"; } if (inCount > 3) { builder << "\t" << variables.in3->getName() << " = " << valueToString(highpFmt, inputs.in3[valueNdx]) << "\n"; } if (outCount > 0) { builder << "\t" << variables.out0->getName() << " = " << valueToString(highpFmt, outputs.out0[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out0>(highpFmt, reference0) << "\n"; } if (outCount > 1) { builder << "\t" << variables.out1->getName() << " = " << valueToString(highpFmt, outputs.out1[valueNdx]) << "\n" << "\tExpected range: " << intervalToString<typename Out::Out1>(highpFmt, reference1) << "\n"; } builder << TestLog::EndMessage; } } if (numErrors > maxMsgs) { log() << TestLog::Message << "(Skipped " << (numErrors - maxMsgs) << " messages.)" << TestLog::EndMessage; } if (numErrors == 0) { log() << TestLog::Message << "All " << numValues << " inputs passed." << TestLog::EndMessage; } else { log() << TestLog::Message << numErrors << "/" << numValues << " inputs failed." << TestLog::EndMessage; } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x528, %rsp # imm = 0x528 movq %rcx, 0x48(%rsp) movq %rsi, 0x8(%rsp) movq %rdi, %r15 movq (%rdx), %rbx movq %rdx, 0xc8(%rsp) movq 0x8(%rdx), %r12 movq %r12, %rax subq %rbx, %rax sarq $0x2, %rax movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rsi leaq 0x308(%rsp), %rdi movq %rsi, 0x40(%rsp) callq 0x794a32 leaq 0x380(%rsp), %rcx movl $0x1, -0x48(%rcx) xorps %xmm0, %xmm0 movups %xmm0, -0x40(%rcx) movups %xmm0, -0x30(%rcx) movups %xmm0, -0x20(%rcx) movq %rcx, -0x10(%rcx) xorl %eax, %eax movq %rax, -0x8(%rcx) movb %al, (%rcx) leaq 0x3a0(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rax, -0x8(%rcx) movb %al, (%rcx) movq 0xe8(%r15), %rcx movq %rcx, 0x2c0(%rsp) movups 0xc8(%r15), %xmm0 movups 0xd8(%r15), %xmm1 movaps %xmm1, 0x2b0(%rsp) movaps %xmm0, 0x2a0(%rsp) leaq 0x2e0(%rsp), %rcx movl $0x0, (%rcx) movq %rax, 0x8(%rcx) movq %rcx, 0x10(%rcx) movq %rcx, 0x18(%rcx) movq %rax, 0x20(%rcx) movq 0x8(%r15), %rax movq 0x10(%rax), %rax leaq 0x128(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d4753(%rip), %rsi # 0xa67aa8 movl $0xb, %edx movq %r14, %rdi callq 0x325e70 movq 0x48(%rsp), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x10(%rax) leaq 0x30ff16(%rip), %rsi # 0xaa328d leaq 0x120(%rsp), %rdi callq 0x9aba2a movq 0x4c979d(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 leaq 0x3b0(%rsp), %rdi callq 0x325e00 movq %rbx, 0x10(%rsp) leaq 0xe0(%rsp), %r13 movl $0x0, (%r13) xorl %eax, %eax movq %rax, 0x8(%r13) movq %r13, 0x10(%r13) movq %r13, 0x18(%r13) movq %rax, 0x20(%r13) movq 0x48(%rsp), %rdi movq (%rdi), %rax leaq 0xd8(%rsp), %rsi callq *0x20(%rax) movq 0xf0(%rsp), %rbx cmpq %r13, %rbx je 0x793419 leaq 0x3b0(%rsp), %r14 movq 0x20(%rbx), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x30(%rax) movq %rbx, %rdi callq 0x325d90 movq %rax, %rbx cmpq %r13, %rax jne 0x7933fc cmpq $0x0, 0x100(%rsp) je 0x7934c7 movq 0x8(%r15), %rax movq 0x10(%rax), %rax leaq 0x128(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d4669(%rip), %rsi # 0xa67ab4 movl $0x17, %edx movq %r14, %rdi callq 0x325e70 leaq 0x3b8(%rsp), %rsi leaq 0x60(%rsp), %rdi callq 0x325660 movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx movq %r14, %rdi callq 0x325e70 leaq 0x30fe0a(%rip), %rsi # 0xaa328d leaq 0x120(%rsp), %rdi callq 0x9aba2a leaq 0x70(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7934ab movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4c9676(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 leaq 0xd8(%rsp), %rdi callq 0x6b222e movq 0x4c964d(%rip), %rsi # 0xc5cb28 leaq 0x3b0(%rsp), %rdi callq 0x325aa0 leaq 0x420(%rsp), %rdi callq 0x325a80 leaq 0x120(%rsp), %rdi callq 0x325e00 leaq 0x2d45c3(%rip), %rsi # 0xa67acc leaq 0x120(%rsp), %rdi movl $0xa, %edx callq 0x325e70 movl 0xf0(%r15), %edi callq 0x8bb7fe movq %rax, %rbx testq %rax, %rax je 0x79354c movq %rbx, %rdi callq 0x325680 leaq 0x120(%rsp), %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x79356e movq 0x120(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x120, %rdi # imm = 0x120 movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x2ee626(%rip), %rsi # 0xa81b9b leaq 0x120(%rsp), %rdi movl $0x8, %edx callq 0x325e70 leaq 0x128(%rsp), %rsi leaq 0x3b0(%rsp), %rdi callq 0x325660 leaq 0x370(%rsp), %rbx leaq 0x3b0(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi leaq 0x3c0(%rsp), %r13 cmpq %r13, %rdi je 0x7935d7 movq 0x3c0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4c954a(%rip), %rsi # 0xc5cb28 leaq 0x120(%rsp), %rdi callq 0x325aa0 leaq 0x190(%rsp), %rdi callq 0x325a80 movq 0x98(%r15), %rdi movq (%rdi), %rax callq *0x10(%rax) movl %eax, %edi callq 0x8bb7c2 movl %eax, 0x338(%rsp) cmpq $0x0, 0x168(%r15) je 0x7936e6 leaq 0x160(%r15), %rdx leaq 0x2f07e8(%rip), %rsi # 0xa83e17 leaq 0x3b0(%rsp), %rdi callq 0x33fea4 leaq 0x2f3e7f(%rip), %rsi # 0xa874c2 leaq 0x3b0(%rsp), %rdi callq 0x3259c0 leaq 0x130(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x793680 movq %rdx, 0x120(%rsp) movq (%rcx), %rdx movq %rdx, 0x130(%rsp) jmp 0x793687 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx leaq 0x120(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %rbp, %rdi je 0x7936c9 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3b0(%rsp), %rdi cmpq %r13, %rdi je 0x7936e6 movq 0x3c0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x340(%rsp), %rdi movl $0x1, %esi callq 0x6b1e2a movq 0x8(%rsp), %rax movq (%rax), %rdx leaq 0x120(%rsp), %rdi movq %r15, %rsi callq 0x6be6f6 movq 0x340(%rsp), %r14 leaq 0x120(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0x140(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 leaq 0x130(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x793768 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x358(%rsp), %rdi movl $0x2, %esi callq 0x6b1e2a movq 0x8(%rsp), %rax movq 0x50(%rax), %rdx leaq 0x120(%rsp), %rdi movq %r15, %rsi callq 0x6be6f6 movq 0x358(%rsp), %r14 leaq 0x38(%r14), %rdi leaq 0x120(%rsp), %rsi callq 0x325800 addq $0x58, %r14 leaq 0x140(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0x120(%rsp), %rdi leaq 0x130(%rsp), %rax cmpq %rax, %rdi je 0x7937f0 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rax movq 0x40(%rax), %rdx leaq 0x120(%rsp), %rdi movq %r15, %rsi callq 0x75aee4 movq 0x358(%rsp), %r14 leaq 0x120(%rsp), %rsi movq %r14, %rdi callq 0x325800 addq $0x20, %r14 leaq 0x140(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x8d98c4 movq %rbx, %rdi callq 0x8d9a14 movq 0x120(%rsp), %rdi leaq 0x130(%rsp), %rax cmpq %rax, %rdi je 0x793865 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x120(%rsp), %rdi callq 0x325e00 movq 0x48(%rsp), %rdi movq (%rdi), %rax leaq 0x120(%rsp), %rsi callq *0x10(%rax) leaq 0x128(%rsp), %rsi leaq 0x3b0(%rsp), %rdi callq 0x325660 leaq 0x390(%rsp), %rbx movq 0x4c927f(%rip), %rsi # 0xc5cb28 leaq 0x120(%rsp), %rdi callq 0x325aa0 leaq 0x190(%rsp), %rdi callq 0x325a80 leaq 0x3b0(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x325800 movq (%r14), %rdi cmpq %r13, %rdi je 0x7938ee movq 0x3c0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x98(%r15), %rdi movl 0xf4(%r15), %esi leaq 0x338(%rsp), %rdx callq 0x878341 movq %rax, %r14 movq 0xc8(%rsp), %rcx movq (%rcx), %rax movq %rax, 0x120(%rsp) movq 0x18(%rcx), %rax movq %rax, 0x128(%rsp) movq 0x30(%rcx), %rax movq %rax, 0x130(%rsp) movq 0x48(%rcx), %rax movq %rax, 0x138(%rsp) movq 0x308(%rsp), %rax movq 0x320(%rsp), %rcx movq %rax, 0x3b0(%rsp) movq %rcx, 0x3b8(%rsp) movq 0x8(%r15), %rax movq 0x10(%rax), %rsi movq (%r14), %rax movq %r14, %rdi callq *0x18(%rax) movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) testb %al, %al je 0x79459b movq (%r14), %rax movq %r14, %rdi callq *0x28(%rax) movq (%r14), %rax leaq 0x120(%rsp), %rdx leaq 0x3b0(%rsp), %rcx movq %r14, %rdi movq 0x40(%rsp), %rsi callq *0x30(%rax) movq %r15, 0x38(%rsp) leaq 0xa0(%r15), %rax movq %rax, 0x2d0(%rsp) movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) movl $0x10, %eax movabsq $0x7ff0000000000000, %rbp # imm = 0x7FF0000000000000 movabsq $-0x10000000000000, %r14 # imm = 0xFFF0000000000000 movb $0x0, 0x3a0(%rsp,%rax) movq %rbp, 0x3a8(%rsp,%rax) movq %r14, 0x3b0(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x7939e2 movl $0x10, %eax movb $0x0, 0x3a0(%rsp,%rax) movq %rbp, 0x3a8(%rsp,%rax) movq %r14, 0x3b0(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x793a09 leaq 0x120(%rsp), %rdi callq 0x75af98 movl $0x10, %eax movb $0x0, 0xc8(%rsp,%rax) movq %rbp, 0xd0(%rsp,%rax) movq %r14, 0xd8(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x793a3d movl $0x10, %eax movb $0x0, 0xc8(%rsp,%rax) movq %rbp, 0xd0(%rsp,%rax) movq %r14, 0xd8(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x793a64 movq 0x8(%rsp), %rbx movq (%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0x3b0(%rsp), %rdx callq 0x6be7aa movq 0x10(%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0x60(%rsp), %rdx callq 0x6b1f1c movq 0x20(%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0x18(%rsp), %rdx callq 0x6b1f1c movq 0x30(%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0xa8(%rsp), %rdx callq 0x6b1f1c movq 0x40(%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0x120(%rsp), %rdx callq 0x75ad3a movq 0x50(%rbx), %rsi leaq 0x2d8(%rsp), %rdi leaq 0xd8(%rsp), %rdx callq 0x6be7aa cmpq 0x10(%rsp), %r12 je 0x794346 movq 0x38(%rsp), %rax addq $0x100, %rax # imm = 0x100 movq %rax, 0xd0(%rsp) movq 0x40(%rsp), %rax cmpq $0x1, %rax adcq $0x0, %rax movq %rax, 0x2c8(%rsp) movq $0x0, 0x10(%rsp) movq $0x0, 0x50(%rsp) leaq 0x3b0(%rsp), %rdi callq 0x75af98 movl $0x10, %eax movb $0x0, 0xc8(%rsp,%rax) movq %rbp, 0xd0(%rsp,%rax) movq %r14, 0xd8(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x793b71 movl $0x10, %eax movb $0x0, 0xc8(%rsp,%rax) movq %rbp, 0xd0(%rsp,%rax) movq %r14, 0xd8(%rsp,%rax) addq $0x18, %rax cmpq $0x58, %rax jne 0x793b98 movq 0x10(%rsp), %rax shlq $0x34, %rax jne 0x793bd3 movq 0x38(%rsp), %rax movq 0x8(%rax), %rdi callq 0x9a9c08 movq 0xc8(%rsp), %rax movq (%rax), %rax movq 0x10(%rsp), %rcx leaq (%rcx,%rcx,2), %rdx movl 0x8(%rax,%rdx,4), %ecx movl %ecx, 0x20(%rsp) movq %rdx, 0x58(%rsp) movq (%rax,%rdx,4), %rax movq %rax, 0x18(%rsp) leaq 0x60(%rsp), %rdi movq 0x2d0(%rsp), %r12 movq %r12, %rsi leaq 0x18(%rsp), %rdx callq 0x6bea40 movq 0x8(%rsp), %rbx leaq 0x120(%rsp), %r13 movq %r13, %rdi movq %r12, %rsi leaq 0x60(%rsp), %rdx callq 0x6be994 movq (%rbx), %rsi leaq 0x2d8(%rsp), %rdi callq 0x6bdea6 movl $0x9, %ecx movq %rax, %rdi movq %r13, %rsi rep movsq (%rsi), %es:(%rdi) movq 0x10(%rbx), %rsi leaq 0x2d8(%rsp), %r15 movq %r15, %rdi callq 0x6b0800 movq 0x20(%rbx), %rsi movq %r15, %rdi callq 0x6b0800 movq 0x30(%rbx), %rsi movq %r15, %rdi callq 0x6b0800 movq 0x38(%rsp), %rax movl 0xf0(%rax), %eax movq 0x20(%r12), %rcx movq %rcx, 0x140(%rsp) movups (%r12), %xmm0 movups 0x10(%r12), %xmm1 movaps %xmm1, 0x130(%rsp) movaps %xmm0, 0x120(%rsp) movl %eax, 0x148(%rsp) movq %r15, 0x150(%rsp) movl $0x0, 0x158(%rsp) movq 0x48(%rsp), %rdi movq (%rdi), %rax movq %r13, %rsi callq *0x18(%rax) movq 0x50(%rbx), %rsi movq %r15, %rdi callq 0x6bdea6 movq %r13, %rdi leaq 0x2a0(%rsp), %rsi movq %rax, %rdx callq 0x6be994 movl $0x9, %ecx leaq 0xd8(%rsp), %rax movq %rax, %rdi movq %r13, %rsi rep movsq (%rsi), %es:(%rdi) movq 0x58(%rsp), %rcx shlq $0x2, %rcx movq 0x320(%rsp), %rsi movq %rcx, 0x58(%rsp) addq %rcx, %rsi movq %rax, %rdi callq 0x6db2ea movl %eax, %ebx leaq 0x130(%rsp), %rax movq %rax, 0x120(%rsp) leaq 0x120(%rsp), %r12 movq %r12, %rdi leaq 0x2d3dfd(%rip), %rsi # 0xa67b50 leaq 0x2d3e21(%rip), %rdx # 0xa67b7b callq 0x334070 movzbl %bl, %esi movq 0xd0(%rsp), %rdi movq %r12, %rdx callq 0x9a94ca movq 0x8(%rsp), %rbx movl %eax, %r13d movq 0x120(%rsp), %rdi leaq 0x130(%rsp), %rax cmpq %rax, %rdi je 0x793d9f movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x40(%rbx), %rsi leaq 0x2d8(%rsp), %rdi callq 0x759ec8 leaq 0x120(%rsp), %rbx movq %rbx, %rdi leaq 0x2a0(%rsp), %rsi movq %rax, %rdx callq 0x75b3a2 leaq 0x3b0(%rsp), %rcx xorl %edx, %edx xorl %esi, %esi movq 0x10(%rbx,%rsi), %rdi movq %rdi, 0x10(%rcx,%rsi) movups (%rbx,%rsi), %xmm0 movups %xmm0, (%rcx,%rsi) addq $0x48, %rsi cmpq $0xd8, %rsi jne 0x793dd7 incq %rdx addq $0x18, %rcx addq $0x18, %rbx cmpq $0x3, %rdx jne 0x793dd5 movq 0x10(%rsp), %rax leaq (%rax,%rax,8), %r12 shlq $0x2, %r12 movq 0x308(%rsp), %rsi addq %r12, %rsi leaq 0x3b0(%rsp), %rdi callq 0x75b104 movl %eax, %ebx leaq 0x130(%rsp), %rax movq %rax, 0x120(%rsp) leaq 0x120(%rsp), %r15 movq %r15, %rdi leaq 0x2d3d2c(%rip), %rsi # 0xa67b7c leaq 0x2d3d50(%rip), %rdx # 0xa67ba7 callq 0x334070 movzbl %bl, %esi movq 0xd0(%rsp), %rdi movq %r15, %rdx callq 0x9a94ca movl %eax, %ebx movq 0x120(%rsp), %rdi leaq 0x130(%rsp), %rax cmpq %rax, %rdi je 0x793e96 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 andb %bl, %r13b movl %r13d, %eax notb %al movzbl %al, %eax andl $0x1, %eax movq 0x50(%rsp), %rcx addl %eax, %ecx movq %rcx, 0x50(%rsp) cmpl $0x65, %ecx setge %al orb %r13b, %al testb $0x1, %al jne 0x794329 movq 0x38(%rsp), %rax movq 0x8(%rax), %rax movq 0x10(%rax), %rax movq %rax, 0x120(%rsp) leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e00 testb $0x1, %r13b leaq 0x27e4e9(%rip), %rsi # 0xa123da leaq 0x27e4db(%rip), %rax # 0xa123d3 cmovneq %rax, %rsi movl $0x6, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x120(%rsp), %r13 movl $0x9, %edx movq %rbx, %rdi leaq 0x2d3c88(%rip), %rsi # 0xa67ba8 callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2cb89c(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq 0x8(%rsp), %rax movq (%rax), %rax leaq 0x70(%rsp), %rcx movq %rcx, 0x60(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x60(%rsp), %rdi callq 0x334442 movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2b7a4c(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq 0xc8(%rsp), %rax movq (%rax), %rdx addq 0x58(%rsp), %rdx leaq 0x18(%rsp), %rdi leaq 0x2a0(%rsp), %rsi callq 0x6be908 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2bff5c(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x793ffa movq 0x28(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0x794016 movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx leaq 0x128(%rsp), %rbx movq %rbx, %rdi leaq 0x2cb7a3(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq 0x8(%rsp), %rax movq 0x40(%rax), %rax leaq 0x70(%rsp), %rcx movq %rcx, 0x60(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x60(%rsp), %rdi callq 0x334442 movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2b7952(%rip), %rsi # 0xa4b9d5 callq 0x325e70 addq 0x308(%rsp), %r12 leaq 0x18(%rsp), %rdi leaq 0x2a0(%rsp), %rsi movq %r12, %rdx callq 0x75b157 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2bfe67(%rip), %rsi # 0xa53f35 callq 0x325e70 movl $0x11, %edx movq %rbx, %rdi leaq 0x2d3ad0(%rip), %rsi # 0xa67bb2 callq 0x325e70 leaq 0xa8(%rsp), %rdi leaq 0x2a0(%rsp), %rsi leaq 0x3b0(%rsp), %rdx callq 0x75b1e3 movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2bfe0a(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x794155 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x794171 movq 0x28(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0x79418d movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 movl $0x1, %edx movq %rbx, %rdi leaq 0x2cb634(%rip), %rsi # 0xa5f7d0 callq 0x325e70 movq 0x8(%rsp), %rax movq 0x50(%rax), %rax leaq 0x70(%rsp), %rcx movq %rcx, 0x60(%rsp) movq 0x8(%rax), %rsi movq 0x10(%rax), %rdx addq %rsi, %rdx leaq 0x60(%rsp), %rdi callq 0x334442 movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx leaq 0x128(%rsp), %rbx movq %rbx, %rdi callq 0x325e70 movl $0x3, %edx movq %rbx, %rdi leaq 0x2b77e3(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq 0x58(%rsp), %rdx addq 0x320(%rsp), %rdx leaq 0x18(%rsp), %rdi leaq 0x2a0(%rsp), %rsi callq 0x6be908 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2bfcfe(%rip), %rsi # 0xa53f35 callq 0x325e70 movl $0x11, %edx movq %rbx, %rdi leaq 0x2d3967(%rip), %rsi # 0xa67bb2 callq 0x325e70 leaq 0xa8(%rsp), %rdi leaq 0x2a0(%rsp), %rsi leaq 0xd8(%rsp), %rdx callq 0x6db1e4 movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x2bfca1(%rip), %rsi # 0xa53f35 callq 0x325e70 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x7942be movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x7942da movq 0x28(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0x7942f6 movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r13, %rdi leaq 0x30ef8d(%rip), %rsi # 0xaa328d leaq 0x128(%rsp), %rbx callq 0x9aba2a movq %rbx, %rdi movq 0x4c8811(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 movq 0x10(%rsp), %rcx incq %rcx movq %rcx, 0x10(%rsp) cmpq 0x2c8(%rsp), %rcx jne 0x793b5f jmp 0x79434f movq $0x0, 0x50(%rsp) movq 0x50(%rsp), %r15 cmpl $0x64, %r15d movq 0x38(%rsp), %rbx jle 0x7943e3 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0x128(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d383e(%rip), %rsi # 0xa67bc4 movl $0x9, %edx movq %r14, %rdi callq 0x325e70 leal -0x64(%r15), %esi movq %r14, %rdi callq 0x325530 leaq 0x2d3828(%rip), %rsi # 0xa67bce movl $0xb, %edx movq %r14, %rdi callq 0x325e70 leaq 0x30eed3(%rip), %rsi # 0xaa328d leaq 0x120(%rsp), %rdi callq 0x9aba2a movq 0x4c875a(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 testl %r15d, %r15d je 0x79445a movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0x128(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 movq %r14, %rdi movl %r15d, %esi callq 0x325530 leaq 0x288803(%rip), %rsi # 0xa1cc19 movl $0x1, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq 0x40(%rsp), %rsi callq 0x3257b0 leaq 0x2d37b8(%rip), %rsi # 0xa67bef movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x30ee42(%rip), %rsi # 0xaa328d leaq 0x120(%rsp), %rdi callq 0x9aba2a jmp 0x7944bf movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0x128(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2d375d(%rip), %rsi # 0xa67bda movl $0x4, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movq 0x40(%rsp), %rsi callq 0x3257b0 leaq 0x2d3741(%rip), %rsi # 0xa67bdf movl $0xf, %edx movq %r14, %rdi callq 0x325e70 leaq 0x30eddb(%rip), %rsi # 0xaa328d leaq 0x120(%rsp), %rdi callq 0x9aba2a movq 0x4c8662(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 leaq 0x2d8(%rsp), %rdi callq 0x6b2588 movq 0x390(%rsp), %rdi leaq 0x3a0(%rsp), %rax cmpq %rax, %rdi leaq 0x358(%rsp), %rbx je 0x794515 movq 0x3a0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x370(%rsp), %rdi leaq 0x380(%rsp), %rax cmpq %rax, %rdi je 0x79453a movq 0x380(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x36a7d0 leaq 0x340(%rsp), %rdi callq 0x36a7d0 movq 0x320(%rsp), %rdi testq %rdi, %rdi je 0x79456c movq 0x330(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x308(%rsp), %rdi testq %rdi, %rdi je 0x794589 movq 0x318(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0x528, %rsp # imm = 0x528 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %r15 leaq 0x2bd440(%rip), %rsi # 0xa519ef leaq 0x2d3521(%rip), %rcx # 0xa67ad7 movq %rax, %rdi xorl %edx, %edx movl $0x11d4, %r8d # imm = 0x11D4 callq 0x99c17e leaq 0x486af3(%rip), %rsi # 0xc1b0c0 leaq -0x4627f4(%rip), %rdx # 0x331de0 movq %r15, %rdi callq 0x325940 jmp 0x79486e jmp 0x7946c6 jmp 0x79486e movq %rax, %r12 movq %r15, %rdi callq 0x325d40 jmp 0x794704 jmp 0x79486e movq %rax, %r12 movq 0x3b0(%rsp), %rdi cmpq %r13, %rdi je 0x794871 movq 0x3c0(%rsp), %rsi jmp 0x7947c0 jmp 0x79486e jmp 0x794628 movq %rax, %r12 jmp 0x79469d jmp 0x7947d2 jmp 0x79486e jmp 0x79486e jmp 0x79486e jmp 0x79464f jmp 0x79486e jmp 0x79464f jmp 0x79486e movq %rax, %r12 leaq 0x120(%rsp), %rdi callq 0x36a3d6 jmp 0x794871 jmp 0x79486e jmp 0x7946dd jmp 0x79486e jmp 0x7947d2 jmp 0x79486e jmp 0x79486e movq %rax, %r12 leaq 0x70(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x79469d movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4c8484(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 jmp 0x7947d5 jmp 0x7946c6 jmp 0x7946c6 jmp 0x7946dd jmp 0x7946c6 movq %rax, %r12 movq 0x4c8458(%rip), %rsi # 0xc5cb28 movq %r14, %rdi jmp 0x79484c jmp 0x79486e movq %rax, %r12 movq 0x4c8441(%rip), %rsi # 0xc5cb28 leaq 0x120(%rsp), %rdi callq 0x325aa0 leaq 0x190(%rsp), %rdi jmp 0x794859 movq %rax, %r12 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) jmp 0x794871 jmp 0x79486e jmp 0x794729 jmp 0x79477b jmp 0x794802 jmp 0x79477b jmp 0x794802 jmp 0x794729 movq %rax, %r12 jmp 0x79483d jmp 0x79477b jmp 0x79486e jmp 0x79474a jmp 0x79486e jmp 0x79479c jmp 0x794802 jmp 0x79477b jmp 0x79477b movq %rax, %r12 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x794805 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x794805 movq %rax, %r12 jmp 0x794821 jmp 0x79486e jmp 0x79486e jmp 0x79486e jmp 0x79486e jmp 0x79486e movq %rax, %r12 movq 0x120(%rsp), %rdi leaq 0x130(%rsp), %rax cmpq %rax, %rdi je 0x794871 movq 0x130(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x794871 jmp 0x79486e movq %rax, %r12 leaq 0xd8(%rsp), %rdi callq 0x6b222e movq 0x4c833f(%rip), %rsi # 0xc5cb28 leaq 0x3b0(%rsp), %rdi callq 0x325aa0 leaq 0x420(%rsp), %rdi jmp 0x794859 jmp 0x794802 movq %rax, %r12 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x794821 movq 0x28(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x60(%rsp), %rdi leaq 0x70(%rsp), %rax cmpq %rax, %rdi je 0x79483d movq 0x70(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x128(%rsp), %rdi movq 0x4c82dc(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x198(%rsp), %rdi callq 0x325a80 jmp 0x794871 jmp 0x79486e jmp 0x79486e jmp 0x79486e movq %rax, %r12 movq %rbx, %rdi jmp 0x794845 movq %rax, %r12 leaq 0x2d8(%rsp), %rdi callq 0x6b2588 leaq 0x338(%rsp), %rdi callq 0x36a3fe leaq 0x308(%rsp), %rdi callq 0x794a7e movq %r12, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsBuiltinPrecisionTests.cpp
deqp::gls::MemObjectAllocator::allocUntilFailure()
bool MemObjectAllocator::allocUntilFailure (void) { de::Random rnd(m_seed); GLU_CHECK_MSG("Error in init"); try { const deUint64 timeoutUs = 10000000; // 10s deUint64 beginTimeUs = deGetMicroseconds(); deUint64 currentTimeUs; do { GLU_CHECK_MSG("Unkown Error"); switch (m_objectTypes) { case MEMOBJECTTYPE_TEXTURE: allocateTexture(rnd); break; case MEMOBJECTTYPE_BUFFER: allocateBuffer(rnd); break; default: { if (rnd.getBool()) allocateBuffer(rnd); else allocateTexture(rnd); break; } } if (m_result != RESULT_LAST) { glFinish(); return true; } currentTimeUs = deGetMicroseconds(); } while (currentTimeUs - beginTimeUs < timeoutUs); // Timeout if (currentTimeUs - beginTimeUs >= timeoutUs) return false; else return true; } catch (const std::bad_alloc&) { m_result = RESULT_GOT_BAD_ALLOC; return true; } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movl 0x30(%rdi), %esi leaq 0x8(%rsp), %rdi callq 0x9fa2bc callq 0x95892c leaq 0x26940c(%rip), %rsi # 0xa80b6e leaq 0x268cee(%rip), %rdx # 0xa80457 movl %eax, %edi movl $0x1f1, %ecx # imm = 0x1F1 callq 0x8b6518 callq 0x9f8758 movq %rax, %r14 leaq 0x2693f8(%rip), %r15 # 0xa80b7c leaq 0x268ccc(%rip), %r12 # 0xa80457 leaq 0x8(%rsp), %r13 callq 0x95892c movl %eax, %edi movq %r15, %rsi movq %r12, %rdx movl $0x1fa, %ecx # imm = 0x1FA callq 0x8b6518 movl 0x3c(%rbx), %eax cmpl $0x1, %eax je 0x8177ce cmpl $0x2, %eax je 0x8177c1 movq %r13, %rdi callq 0x9fa3c4 cmpl $0x1, %eax jne 0x8177ce movq %rbx, %rdi movq %r13, %rsi callq 0x817a9a jmp 0x8177d9 movq %rbx, %rdi movq %r13, %rsi callq 0x817834 cmpl $0xc, 0x40(%rbx) jne 0x8177f3 callq 0x9f8758 subq %r14, %rax cmpq $0x989680, %rax # imm = 0x989680 jb 0x817790 xorl %ebp, %ebp jmp 0x8177fb movb $0x1, %bpl callq 0x95840f movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x817810 jmp 0x817810 movq %rax, %rdi cmpl $0x1, %edx jne 0x81782e callq 0x3250e0 movl $0x0, 0x40(%rbx) callq 0x325b60 movb $0x1, %bpl jmp 0x8177fb callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsMemoryStressCase.cpp
deqp::gls::MemObjectAllocator::allocateBuffer(de::Random&)
void MemObjectAllocator::allocateBuffer (de::Random& rnd) { const int vectorBlockSize = 128; deUint32 buffer = 0; deUint32 error = 0; int size = rnd.getInt(m_config.minBufferSize, m_config.maxBufferSize); glGenBuffers(1, &buffer); error = glGetError(); if (error != 0) { m_result = RESULT_GEN_BUFFERS_FAILED; m_glError = error; return; } glBindBuffer(GL_ARRAY_BUFFER, buffer); error = glGetError(); if (error != 0) { m_result = RESULT_BIND_BUFFER_FAILED; m_glError = error; return; } if (m_buffers.size() % vectorBlockSize == 0) m_buffers.reserve(m_buffers.size() + vectorBlockSize); m_buffers.push_back(buffer); if (m_config.useDummyData) { DE_ASSERT((int)m_dummyData.size() >= size); glBufferData(GL_ARRAY_BUFFER, size, &(m_dummyData[0]), GL_DYNAMIC_DRAW); } else glBufferData(GL_ARRAY_BUFFER, size, NULL, GL_DYNAMIC_DRAW); error = glGetError(); if (error != 0) { m_result = RESULT_BUFFER_DATA_FAILED; m_glError = error; return; } if (m_config.write) glBufferSubData(GL_ARRAY_BUFFER, 0, 1, &(m_dummyData[0])); error = glGetError(); if (error != 0) { m_result = RESULT_BUFFER_SUB_DATA_FAILED; m_glError = error; return; } if (m_config.use) { try { m_bufferRenderer.render(buffer, size); } catch (const glu::Error& err) { m_result = RESULT_RENDER_FAILED; m_glError = err.getError(); return; } catch (const glu::OutOfMemoryError&) { m_result = RESULT_RENDER_FAILED; m_glError = GL_OUT_OF_MEMORY; return; } } glBindBuffer(GL_ARRAY_BUFFER, 0); error = glGetError(); if (error != 0) { m_result = RESULT_BIND_BUFFER_FAILED; m_glError = error; return; } m_objectCount++; m_bytesRequired += size; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movl $0x0, 0x4(%rsp) movl 0x44(%rdi), %r14d movl 0x48(%rdi), %r15d leal -0x80000000(%r14), %r12d movl %r15d, %r13d xorl $0x7fffffff, %r13d # imm = 0x7FFFFFFF movq %rsi, %rdi callq 0x9fa2ea movl %eax, %ebp orl %r12d, %r13d je 0x817aea subl %r14d, %r15d incl %r15d movl %ebp, %eax xorl %edx, %edx divl %r15d movl %edx, %ebp addl %r14d, %ebp leaq 0x4(%rsp), %rsi movl $0x1, %edi callq 0x958586 callq 0x95892c testl %eax, %eax je 0x817b0e movl $0x2, 0x40(%rbx) jmp 0x817bd9 movl 0x4(%rsp), %esi movl $0x8892, %edi # imm = 0x8892 callq 0x95722b callq 0x95892c testl %eax, %eax je 0x817b31 movl $0x8, 0x40(%rbx) jmp 0x817bd9 movq 0x8(%rbx), %rsi subq (%rbx), %rsi testl $0x1fc, %esi # imm = 0x1FC jne 0x817b50 sarq $0x2, %rsi subq $-0x80, %rsi movq %rbx, %rdi callq 0x484edc movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0x817b6a movl 0x4(%rsp), %eax movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0x817b77 leaq 0x4(%rsp), %rdx movq %rbx, %rdi callq 0x485876 movslq %ebp, %rsi cmpb $0x1, 0x54(%rbx) jne 0x817b8b movq 0x60(%rbx), %rdx movl $0x8892, %edi # imm = 0x8892 jmp 0x817b92 movl $0x8892, %edi # imm = 0x8892 xorl %edx, %edx movl $0x88e8, %ecx # imm = 0x88E8 callq 0x95753a callq 0x95892c testl %eax, %eax je 0x817bae movl $0x3, 0x40(%rbx) jmp 0x817bd9 cmpb $0x1, 0x55(%rbx) jne 0x817bc9 movq 0x60(%rbx), %rcx movl $0x1, %edx movl $0x8892, %edi # imm = 0x8892 xorl %esi, %esi callq 0x957585 callq 0x95892c testl %eax, %eax je 0x817beb movl $0x4, 0x40(%rbx) movl %eax, 0x58(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpb $0x1, 0x56(%rbx) jne 0x817bfe leaq 0x78(%rbx), %rdi movl 0x4(%rsp), %esi callq 0x81720c movl $0x8892, %edi # imm = 0x8892 xorl %esi, %esi callq 0x95722b callq 0x95892c testl %eax, %eax jne 0x817b25 incl 0x34(%rbx) addl %ebp, 0x38(%rbx) jmp 0x817bdc movq %rax, %rdi cmpl $0x2, %edx jne 0x817c3b callq 0x3250e0 movl $0xb, 0x40(%rbx) movl 0x34(%rax), %eax movl %eax, 0x58(%rbx) jmp 0x817c53 cmpl $0x1, %edx jne 0x817c5a callq 0x3250e0 movl $0xb, 0x40(%rbx) movl $0x505, 0x58(%rbx) # imm = 0x505 callq 0x325b60 jmp 0x817bdc callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsMemoryStressCase.cpp
deqp::gls::MemoryStressCase::MemoryStressCase(tcu::TestContext&, glu::RenderContext&, unsigned int, int, int, int, int, bool, bool, bool, bool, char const*, char const*)
MemoryStressCase::MemoryStressCase (tcu::TestContext& ctx, glu::RenderContext& renderContext, deUint32 objectTypes, int minTextureSize, int maxTextureSize, int minBufferSize, int maxBufferSize, bool write, bool use, bool useDummyData, bool clearAfterOOM, const char* name, const char* desc) : tcu::TestCase (ctx, name, desc) , m_iteration (0) , m_iterationCount (5) , m_objectTypes ((MemObjectType)objectTypes) , m_zeroAlloc (false) , m_clearAfterOOM (clearAfterOOM) , m_renderCtx (renderContext) { m_allocated.reserve(m_iterationCount); m_config.maxTextureSize = maxTextureSize; m_config.minTextureSize = minTextureSize; m_config.maxBufferSize = maxBufferSize; m_config.minBufferSize = minBufferSize; m_config.useDummyData = useDummyData; m_config.write = write; m_config.use = use; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, %r14d movl %r8d, %ebp movl %ecx, %r12d movq %rdx, %r13 movq %rdi, %rbx movq 0x70(%rsp), %rdx movq 0x78(%rsp), %rcx callq 0x9a9abc leaq 0x43ceb6(%rip), %rax # 0xc54bd8 movq %rax, (%rbx) movabsq $0x500000000, %rax # imm = 0x500000000 movq %rax, 0x70(%rbx) leaq 0x78(%rbx), %r15 xorps %xmm0, %xmm0 movups %xmm0, 0x78(%rbx) movq $0x0, 0x88(%rbx) movl %r12d, 0x90(%rbx) movb $0x0, 0xa8(%rbx) movb 0x68(%rsp), %al movb %al, 0xa9(%rbx) movq %r13, 0xb0(%rbx) movl $0x5, %esi movq %r15, %rdi callq 0x485024 movb 0x60(%rsp), %al movb 0x58(%rsp), %cl movb 0x50(%rsp), %dl movl 0x48(%rsp), %esi movl 0x40(%rsp), %edi movl %r14d, 0xa0(%rbx) movl %ebp, 0x9c(%rbx) movl %esi, 0x98(%rbx) movl %edi, 0x94(%rbx) movb %al, 0xa4(%rbx) movb %dl, 0xa5(%rbx) movb %cl, 0xa6(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%r15), %rdi testq %rdi, %rdi je 0x817ddd movq 0x88(%rbx), %rsi subq %rdi, %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x9a98c4 movq %r14, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsMemoryStressCase.cpp
deqp::gls::MemoryStressCase::iterate()
tcu::TestCase::IterateResult MemoryStressCase::iterate (void) { bool end = false; tcu::TestLog& log = m_testCtx.getLog(); MemObjectAllocator allocator(log, m_renderCtx, m_objectTypes, m_config, deStringHash(getName())); if (!allocator.allocUntilFailure()) { // Allocation timed out allocator.clearObjects(); log << TestLog::Message << "Timeout. Couldn't exhaust memory in timelimit. Allocated " << allocator.getObjectCount() << " objects." << TestLog::EndMessage; m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass"); return STOP; } // Try to cancel rendering operations if (m_clearAfterOOM) GLU_CHECK_CALL(glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)); allocator.clearObjects(); m_allocated.push_back(allocator.getObjectCount()); if (m_iteration != 0 && allocator.getObjectCount() == 0) m_zeroAlloc = true; log << TestLog::Message << "Got error when allocation object count: " << allocator.getObjectCount() << " bytes: " << allocator.getBytes() << TestLog::EndMessage; if ((allocator.getGLError() == 0) && (allocator.getResult() == MemObjectAllocator::RESULT_GOT_BAD_ALLOC)) { log << TestLog::Message << "std::bad_alloc" << TestLog::EndMessage; end = true; m_testCtx.setTestResult(QP_TEST_RESULT_RESOURCE_ERROR, "Memory allocation failed"); } else if (allocator.getGLError() != GL_OUT_OF_MEMORY) { log << TestLog::Message << "Invalid Error " << MemObjectAllocator::resultToString(allocator.getResult()) << " GLError: " << glErrorToString(allocator.getGLError()) << TestLog::EndMessage; end = true; m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Fail"); } if ((m_iteration+1) == m_iterationCount) { int min = m_allocated[0]; int max = m_allocated[0]; float threshold = 50.0f; for (int allocNdx = 0; allocNdx < (int)m_allocated.size(); allocNdx++) { min = deMin32(m_allocated[allocNdx], min); max = deMax32(m_allocated[allocNdx], max); } if (min == 0 && max != 0) { log << TestLog::Message << "Allocation count zero" << TestLog::EndMessage; m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Fail"); } else { const float change = (float)(min - max) / (float)(max); if (change > threshold) { log << TestLog::Message << "Allocated objects max: " << max << ", min: " << min << ", difference: " << change << "% threshold: " << threshold << "%" << TestLog::EndMessage; m_testCtx.setTestResult(QP_TEST_RESULT_QUALITY_WARNING, "Allocation count variation"); } else m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass"); } end = true; } GLU_CHECK_CALL(glFinish()); m_iteration++; if (end) return STOP; else return CONTINUE; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x248, %rsp # imm = 0x248 movq %rdi, %rbx movq 0x8(%rdi), %rax movq 0x10(%rax), %r14 movq 0xb0(%rdi), %r15 movl 0x90(%rdi), %ebp leaq 0x94(%rdi), %r12 movq 0x10(%rdi), %rdi callq 0x9fa3f8 leaq 0x190(%rsp), %r13 movq %r13, %rdi movq %r14, %rsi movq %r15, %rdx movl %ebp, %ecx movq %r12, %r8 movl %eax, %r9d callq 0x817540 movq %r13, %rdi callq 0x817738 testb %al, %al je 0x8180ab cmpb $0x1, 0xa9(%rbx) jne 0x81806d movl $0x4500, %edi # imm = 0x4500 callq 0x9575e6 callq 0x95892c leaq 0x268cfa(%rip), %rsi # 0xa80d54 leaq 0x2683f6(%rip), %rdx # 0xa80457 movl %eax, %edi movl $0x36c, %ecx # imm = 0x36C callq 0x8b6518 leaq 0x190(%rsp), %rdi callq 0x817c60 movl 0x1c4(%rsp), %eax movl %eax, 0x10(%rsp) movq 0x80(%rbx), %rsi cmpq 0x88(%rbx), %rsi je 0x818146 movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x80(%rbx) jmp 0x818154 leaq 0x190(%rsp), %rdi callq 0x817c60 leaq 0x18(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x268c40(%rip), %rsi # 0xa80d10 movl $0x39, %edx movq %r15, %rdi callq 0x325e70 movl 0x1c4(%rsp), %esi movq %r15, %rdi callq 0x325530 leaq 0x268c57(%rip), %rsi # 0xa80d4a movl $0x9, %edx movq %r15, %rdi callq 0x325e70 leaq 0x28b186(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x444a10(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 movq 0x8(%rbx), %rdi xorl %ebp, %ebp leaq 0x2338af(%rip), %rdx # 0xa4b9e9 xorl %esi, %esi callq 0x9a9c16 jmp 0x8185e3 leaq 0x78(%rbx), %rdi leaq 0x10(%rsp), %rdx callq 0x33455c cmpl $0x0, 0x70(%rbx) je 0x81816b cmpl $0x0, 0x1c4(%rsp) jne 0x81816b movb $0x1, 0xa8(%rbx) leaq 0x18(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x268c18(%rip), %rsi # 0xa80d9b movl $0x28, %edx movq %r15, %rdi callq 0x325e70 movl 0x1c4(%rsp), %esi movq %r15, %rdi callq 0x325530 leaq 0x268c1e(%rip), %rsi # 0xa80dc4 movl $0x8, %edx movq %r15, %rdi callq 0x325e70 movl 0x1c8(%rsp), %esi movq %r15, %rdi callq 0x3257b0 leaq 0x28b0c4(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x44494e(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 movl 0x1e8(%rsp), %eax movl 0x1d0(%rsp), %ecx orl %eax, %ecx jne 0x818264 leaq 0x18(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x268977(%rip), %rsi # 0xa80b90 movl $0xe, %edx movq %r15, %rdi callq 0x325e70 leaq 0x28b060(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x4448ea(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 leaq 0x268b73(%rip), %rdx # 0xa80dcd movl $0x6, %esi jmp 0x8183bc xorl %ebp, %ebp cmpl $0x505, %eax # imm = 0x505 je 0x8183ca movq %r14, 0x10(%rsp) movq %r15, %rdi callq 0x325e00 leaq 0x268b61(%rip), %rsi # 0xa80de6 movl $0xe, %edx movq %r15, %rdi callq 0x325e70 movl 0x1d0(%rsp), %edi callq 0x817cd8 testq %rax, %rax je 0x8182be movq %rax, %r12 movq %rax, %rdi callq 0x325680 movq %r15, %rdi movq %r12, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8182d7 movq 0x18(%rsp), %rax movq -0x18(%rax), %rax leaq (%r15,%rax), %rdi movl 0x38(%rsp,%rax), %esi orl $0x1, %esi callq 0x326070 leaq 0x268b17(%rip), %rsi # 0xa80df5 movl $0xa, %edx movq %r15, %rdi callq 0x325e70 movl 0x1e8(%rsp), %ecx leal -0x500(%rcx), %eax cmpl $0x6, %eax ja 0x818316 leaq 0x267c8c(%rip), %rcx # 0xa7ff90 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x268b6b(%rip), %r12 # 0xa80e7f jmp 0x81834c testl %ecx, %ecx jne 0x818323 leaq 0x268ba0(%rip), %r12 # 0xa80ec1 jmp 0x81834c movb $0x1, %al xorl %r12d, %r12d jmp 0x81834e leaq 0x268b5e(%rip), %r12 # 0xa80e8f jmp 0x81834c leaq 0x2341a0(%rip), %r12 # 0xa4c4da jmp 0x81834c leaq 0x268b6d(%rip), %r12 # 0xa80eb0 jmp 0x81834c leaq 0x268b22(%rip), %r12 # 0xa80e6e xorl %eax, %eax testb %al, %al je 0x81836d movq 0x18(%rsp), %rax movq -0x18(%rax), %rax leaq (%r15,%rax), %rdi movl 0x38(%rsp,%rax), %esi orl $0x1, %esi callq 0x326070 jmp 0x818383 movq %r12, %rdi callq 0x325680 movq %r15, %rdi movq %r12, %rsi movq %rax, %rdx callq 0x325e70 leaq 0x28af03(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x44478d(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 leaq 0x1ea16a(%rip), %rdx # 0xa02521 movl $0x1, %esi movq 0x8(%rbx), %rdi movl $0x1, %ebp callq 0x9a9c16 movl 0x70(%rbx), %eax incl %eax cmpl 0x74(%rbx), %eax jne 0x8185b9 movq 0x78(%rbx), %rax movq 0x80(%rbx), %rcx movl (%rax), %ebp subq %rax, %rcx shrq $0x2, %rcx testl %ecx, %ecx jle 0x818414 andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF xorl %edx, %edx movl %ebp, %r12d movl (%rax,%rdx,4), %esi cmpl %ebp, %esi cmovll %esi, %ebp cmpl %r12d, %esi cmovgl %esi, %r12d incq %rdx cmpq %rdx, %rcx jne 0x8183fb jmp 0x818417 movl %ebp, %r12d testl %ebp, %ebp sete %al testl %r12d, %r12d setne %cl testb %cl, %al je 0x818497 leaq 0x18(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x2689c2(%rip), %rsi # 0xa80e00 movl $0x15, %edx movq %r15, %rdi callq 0x325e70 leaq 0x28ae3b(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x4446c5(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 movq 0x8(%rbx), %rdi movl $0x1, %ebp leaq 0x1ea099(%rip), %rdx # 0xa02521 movl $0x1, %esi callq 0x9a9c16 jmp 0x8185b9 movl %ebp, %eax subl %r12d, %eax cvtsi2ss %eax, %xmm1 cvtsi2ss %r12d, %xmm0 divss %xmm0, %xmm1 movss %xmm1, 0xc(%rsp) ucomiss 0x2046ea(%rip), %xmm1 # 0xa1cba0 jbe 0x8185a2 leaq 0x18(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x268942(%rip), %rsi # 0xa80e16 movl $0x17, %edx movq %r15, %rdi callq 0x325e70 movq %r15, %rdi movl %r12d, %esi callq 0x325530 leaq 0x26893b(%rip), %rsi # 0xa80e2e movl $0x7, %edx movq %r15, %rdi callq 0x325e70 movq %r15, %rdi movl %ebp, %esi callq 0x325530 leaq 0x268925(%rip), %rsi # 0xa80e36 movl $0xe, %edx movq %r15, %rdi callq 0x325e70 xorps %xmm0, %xmm0 cvtss2sd 0xc(%rsp), %xmm0 movq %r15, %rdi callq 0x325b20 leaq 0x26890f(%rip), %rsi # 0xa80e45 movl $0xd, %edx movq %r15, %rdi callq 0x325e70 movsd 0x267a3d(%rip), %xmm0 # 0xa7ff88 movq %r15, %rdi callq 0x325b20 leaq 0x23ac79(%rip), %rsi # 0xa531d3 movl $0x1, %edx movq %r15, %rdi callq 0x325e70 leaq 0x28ad1f(%rip), %rsi # 0xaa328d leaq 0x10(%rsp), %rdi callq 0x9aba2a movq 0x4445a9(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 leaq 0x2688b8(%rip), %rdx # 0xa80e53 movl $0x2, %esi jmp 0x8185ab leaq 0x233440(%rip), %rdx # 0xa4b9e9 xorl %esi, %esi movq 0x8(%rbx), %rdi movl $0x1, %ebp callq 0x9a9c16 callq 0x95840f callq 0x95892c leaq 0x22fa8d(%rip), %rsi # 0xa48057 leaq 0x267e86(%rip), %rdx # 0xa80457 movl %eax, %edi movl $0x3a7, %ecx # imm = 0x3A7 callq 0x8b6518 incl 0x70(%rbx) xorl $0x1, %ebp leaq 0x190(%rsp), %rdi callq 0x8176de movl %ebp, %eax addq $0x248, %rsp # imm = 0x248 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x81864b jmp 0x81864b jmp 0x81864b jmp 0x81864b jmp 0x81862a jmp 0x81864b jmp 0x81864b jmp 0x81862a jmp 0x81862a jmp 0x81862a jmp 0x81864b jmp 0x81862a jmp 0x81862a jmp 0x81864b jmp 0x81862a jmp 0x81864b jmp 0x81862a jmp 0x81862a jmp 0x81862a movq %rax, %rbx movq 0x4444f4(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x88(%rsp), %rdi callq 0x325a80 jmp 0x81864e movq %rax, %rbx leaq 0x190(%rsp), %rdi callq 0x8176de movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsMemoryStressCase.cpp
deqp::gls::RandomShaderCase::deinit()
void RandomShaderCase::deinit (void) { delete m_tex2D; delete m_texCube; m_tex2D = DE_NULL; m_texCube = DE_NULL; // Free up memory m_vertexArrays.clear(); m_indices.clear(); }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x4c0(%rdi), %rdi testq %rdi, %rdi je 0x819828 movq (%rdi), %rax callq *0x8(%rax) leaq 0x4c0(%rbx), %r15 movq 0x4c8(%rbx), %r14 testq %r14, %r14 je 0x819850 movq %r14, %rdi callq 0x8c02e6 movl $0x180, %esi # imm = 0x180 movq %r14, %rdi callq 0x3251a0 leaq 0x430(%rbx), %rdi xorps %xmm0, %xmm0 movups %xmm0, (%r15) movq 0x430(%rbx), %rsi callq 0x81b5f8 movq 0x448(%rbx), %rax cmpq %rax, 0x450(%rbx) je 0x819881 movq %rax, 0x450(%rbx) popq %rbx popq %r14 popq %r15 retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsRandomShaderCase.cpp
tcu::Format::Enum<int, 1ul>::toStream(std::ostream&) const
std::ostream& toStream (std::ostream& stream) const { const char* name = m_getName(m_value); if (name) return stream << name; else return stream << Hex<NumBytes*2>((deUint64)m_value); }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r15 movl 0x8(%rdi), %edi callq *(%r15) testq %rax, %rax je 0x831429 movq %rax, %r14 movq %rax, %rdi callq 0x325680 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x831440 movslq 0x8(%r15), %rax leaq 0x8(%rsp), %rdi movq %rax, (%rdi) movq %rbx, %rsi callq 0x83131a movq %rax, %rbx movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
/kaydenl[P]VK-GL-CTS/framework/common/tcuFormatUtil.hpp
std::ostream& tcu::Format::operator<<<unsigned int const*>(std::ostream&, tcu::Format::Array<unsigned int const*> const&)
std::ostream& operator<< (std::ostream& str, const Array<Iterator>& fmt) { str << "{ "; for (Iterator cur = fmt.begin; cur != fmt.end; ++cur) { if (cur != fmt.begin) str << ", "; str << *cur; } str << " }"; return str; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x1ce0f6(%rip), %rsi # 0x9ff5d5 movl $0x2, %edx callq 0x325e70 movq (%r14), %r12 cmpq 0x8(%r14), %r12 je 0x831524 leaq 0x2552a2(%rip), %r15 # 0xa8679b cmpq (%r14), %r12 je 0x83150e movl $0x2, %edx movq %rbx, %rdi movq %r15, %rsi callq 0x325e70 movl (%r12), %esi movq %rbx, %rdi callq 0x3257b0 addq $0x4, %r12 cmpq 0x8(%r14), %r12 jne 0x8314f9 leaq 0x201c98(%rip), %rsi # 0xa331c3 movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/kaydenl[P]VK-GL-CTS/framework/common/tcuFormatUtil.hpp
std::ostream& tcu::Format::operator<<<long const*>(std::ostream&, tcu::Format::Array<long const*> const&)
std::ostream& operator<< (std::ostream& str, const Array<Iterator>& fmt) { str << "{ "; for (Iterator cur = fmt.begin; cur != fmt.end; ++cur) { if (cur != fmt.begin) str << ", "; str << *cur; } str << " }"; return str; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x1cdff7(%rip), %rsi # 0x9ff5d5 movl $0x2, %edx callq 0x325e70 movq (%r14), %r12 cmpq 0x8(%r14), %r12 je 0x831623 leaq 0x2551a3(%rip), %r15 # 0xa8679b cmpq (%r14), %r12 je 0x83160d movl $0x2, %edx movq %rbx, %rdi movq %r15, %rsi callq 0x325e70 movq (%r12), %rsi movq %rbx, %rdi callq 0x3255f0 addq $0x8, %r12 cmpq 0x8(%r14), %r12 jne 0x8315f8 leaq 0x201b99(%rip), %rsi # 0xa331c3 movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
/kaydenl[P]VK-GL-CTS/framework/common/tcuFormatUtil.hpp
deqp::gls::Functional::ScissorTestInternal::createClearTest(tcu::TestContext&, glu::RenderContext&, char const*, char const*, tcu::Vector<float, 4> const&, unsigned int)
tcu::TestNode* createClearTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* desc, const Vec4& scissorArea, deUint32 clearMode) { return new ScissorClearCase(testCtx, renderCtx, name, desc, scissorArea, clearMode); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, 0x4(%rsp) movq %r8, %r15 movq %rcx, %r13 movq %rdx, %rbp movq %rsi, %r12 movq %rdi, %rbx movl $0x90, %edi callq 0x325210 movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi movq %rbp, %rdx movq %r13, %rcx callq 0x9a9abc leaq 0x423b5c(%rip), %rax # 0xc55290 movq %rax, (%r14) movq %r12, 0x70(%r14) movups (%r15), %xmm0 movups %xmm0, 0x78(%r14) leaq 0x423ba5(%rip), %rax # 0xc552f0 movq %rax, (%r14) movl 0x4(%rsp), %eax movl %eax, 0x88(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movl $0x90, %esi movq %r14, %rdi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::Functional::(anonymous namespace)::ScissorCase::iterate()
ScissorCase::IterateResult ScissorCase::iterate (void) { using TextureTestUtil::RandomViewport; const glw::Functions& gl = m_renderCtx.getFunctions(); TestLog& log = m_testCtx.getLog(); const tcu::PixelFormat renderFormat = m_renderCtx.getRenderTarget().getPixelFormat(); const tcu::Vec4 threshold = 0.02f * UVec4(1u << de::max(0, 8 - renderFormat.redBits), 1u << de::max(0, 8 - renderFormat.greenBits), 1u << de::max(0, 8 - renderFormat.blueBits), 1u << de::max(0, 8 - renderFormat.alphaBits)).asFloat(); const glu::ShaderProgram shader (m_renderCtx, genShaders(glu::getContextTypeGLSLVersion(m_renderCtx.getType()))); const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName())); const IVec4 relScissorArea (int(m_scissorArea.x() * (float)viewport.width), int(m_scissorArea.y() * (float)viewport.height), int(m_scissorArea.z() * (float)viewport.width), int(m_scissorArea.w() * (float)viewport.height)); const IVec4 absScissorArea (relScissorArea.x() + viewport.x, relScissorArea.y() + viewport.y, relScissorArea.z(), relScissorArea.w()); tcu::Surface refImage (viewport.width, viewport.height); tcu::Surface resImage (viewport.width, viewport.height); if (!shader.isOk()) { log << shader; m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Shader compile/link failed"); return STOP; } log << TestLog::Message << "Viewport area is " << IVec4(viewport.x, viewport.y, viewport.width, viewport.height) << TestLog::EndMessage; log << TestLog::Message << "Scissor area is " << absScissorArea << TestLog::EndMessage; // Render reference (no scissors) { log << TestLog::Message << "Rendering reference (scissors disabled)" << TestLog::EndMessage; gl.useProgram(shader.getProgram()); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); gl.clearColor(0.125f, 0.25f, 0.5f, 1.0f); gl.clearDepthf(1.0f); gl.clearStencil(0); gl.disable(GL_DEPTH_TEST); gl.disable(GL_STENCIL_TEST); gl.disable(GL_SCISSOR_TEST); gl.clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); render(shader.getProgram(), IVec4(viewport.x, viewport.y, viewport.width, viewport.height)); glu::readPixels(m_renderCtx, viewport.x, viewport.y, refImage.getAccess()); GLU_CHECK_ERROR(gl.getError()); } // Render result (scissors) { log << TestLog::Message << "Rendering result (scissors enabled)" << TestLog::EndMessage; gl.useProgram(shader.getProgram()); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); gl.clearColor(0.125f, 0.25f, 0.5f, 1.0f); gl.clearDepthf(1.0f); gl.clearStencil(0); gl.disable(GL_DEPTH_TEST); gl.disable(GL_STENCIL_TEST); gl.disable(GL_SCISSOR_TEST); gl.clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); gl.scissor(absScissorArea.x(), absScissorArea.y(), absScissorArea.z(), absScissorArea.w()); gl.enable(GL_SCISSOR_TEST); render(shader.getProgram(), IVec4(viewport.x, viewport.y, viewport.width, viewport.height)); glu::readPixels(m_renderCtx, viewport.x, viewport.y, resImage.getAccess()); GLU_CHECK_ERROR(gl.getError()); } // Manual 'scissors' for reference image log << TestLog::Message << "Clearing area outside scissor area from reference" << TestLog::EndMessage; clearEdges(refImage.getAccess(), IVec4(32, 64, 128, 255), relScissorArea); if (tcu::floatThresholdCompare(log, "ComparisonResult", "Image comparison result", refImage.getAccess(), resImage.getAccess(), threshold, tcu::COMPARE_LOG_RESULT)) m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass"); else m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Image comparison failed"); return STOP; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x308, %rsp # imm = 0x308 movq %rdi, %rbx movq 0x70(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r15 movq 0x8(%rbx), %rax movq 0x70(%rbx), %rdi movq 0x10(%rax), %r14 movq (%rdi), %rax callq *0x20(%rax) movl $0x8, %ecx subl 0x8(%rax), %ecx movl $0x8, %esi subl 0xc(%rax), %esi movl $0x8, %edi subl 0x10(%rax), %edi movl $0x8, %edx subl 0x14(%rax), %edx xorl %eax, %eax testl %ecx, %ecx cmovlel %eax, %ecx movl $0x1, %r8d shll %cl, %r8d testl %esi, %esi cmovlel %eax, %esi movl $0x1, %r9d movl %esi, %ecx shll %cl, %r9d testl %edi, %edi cmovlel %eax, %edi movl $0x1, %esi movl %edi, %ecx shll %cl, %esi movl $0x1, %edi testl %edx, %edx cmovlel %eax, %edx movl %edx, %ecx shll %cl, %edi movl %r8d, 0x238(%rsp) movl %r9d, 0x23c(%rsp) movl %esi, 0x240(%rsp) movl %edi, 0x244(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, 0xb0(%rsp) movl 0x238(%rsp,%rax,4), %ecx xorps %xmm0, %xmm0 cvtsi2ss %rcx, %xmm0 movss %xmm0, 0xb0(%rsp,%rax,4) incq %rax cmpq $0x4, %rax jne 0x831954 xorps %xmm0, %xmm0 movaps %xmm0, 0xa0(%rsp) xorl %eax, %eax movss 0x1d466a(%rip), %xmm0 # 0xa05ff4 movss 0xb0(%rsp,%rax,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, 0xa0(%rsp,%rax,4) incq %rax cmpq $0x4, %rax jne 0x83198a movq 0x70(%rbx), %r12 movq (%r12), %rax movq %r12, %rdi callq *0x10(%rax) movl %eax, %edi callq 0x8bb7c2 leaq 0xb0(%rsp), %r13 movq %r13, %rdi movl %eax, %esi callq 0x83256e leaq 0x238(%rsp), %rdi movq %r12, %rsi movq %r13, %rdx callq 0x8ba194 leaq 0x160(%rsp), %rdi callq 0x33607e leaq 0x140(%rsp), %rdi callq 0x349c56 movl $0x78, %r12d leaq (%rsp,%r12), %rdi addq $0xb0, %rdi callq 0x33607e addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x831a03 movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x20(%rax) movq %rax, %r12 movq 0x10(%rbx), %rdi callq 0x9fa3f8 leaq 0x10(%rsp), %rdi movq %r12, %rsi movl $0x100, %edx # imm = 0x100 movl $0x100, %ecx # imm = 0x100 movl %eax, %r8d callq 0x84cc04 movl 0x18(%rsp), %esi xorps %xmm0, %xmm0 cvtsi2ss %esi, %xmm0 movss 0x78(%rbx), %xmm1 mulss %xmm0, %xmm1 cvttss2si %xmm1, %eax movl 0x1c(%rsp), %edx xorps %xmm1, %xmm1 cvtsi2ss %edx, %xmm1 movss 0x7c(%rbx), %xmm2 mulss %xmm1, %xmm2 cvttss2si %xmm2, %ecx mulss 0x80(%rbx), %xmm0 cvttss2si %xmm0, %edi mulss 0x84(%rbx), %xmm1 cvttss2si %xmm1, %r8d movl %eax, 0x60(%rsp) movl %ecx, 0x64(%rsp) movl %edi, 0x68(%rsp) movl %r8d, 0x6c(%rsp) addl 0x10(%rsp), %eax addl 0x14(%rsp), %ecx movl %eax, 0x38(%rsp) movl %ecx, 0x3c(%rsp) movl %edi, 0x40(%rsp) movl %r8d, 0x44(%rsp) leaq 0x20(%rsp), %rdi callq 0x9a957c movl 0x18(%rsp), %esi movl 0x1c(%rsp), %edx leaq 0x48(%rsp), %rdi callq 0x9a957c cmpb $0x0, 0x2f8(%rsp) je 0x83206b leaq 0xb8(%rsp), %r12 movq %r14, -0x8(%r12) movq %r12, %rdi callq 0x325e00 leaq 0x251149(%rip), %rsi # 0xa82c4f movl $0x11, %edx movq %r12, %rdi callq 0x325e70 movups 0x10(%rsp), %xmm0 leaq 0x70(%rsp), %rsi movups %xmm0, (%rsi) movq %r12, %rdi callq 0x45a24b leaq 0x27175e(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x42afe5(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0x128(%rsp), %r12 movq %r12, %rdi callq 0x325a80 movq %r14, -0x78(%r12) leaq 0xb8(%rsp), %r12 movq %r12, %rdi callq 0x325e00 leaq 0x2510ea(%rip), %rsi # 0xa82c61 movl $0x10, %edx movq %r12, %rdi callq 0x325e70 leaq 0x38(%rsp), %rsi movq %r12, %rdi callq 0x45a24b leaq 0x2716f5(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x42af7c(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0x128(%rsp), %r12 movq %r12, %rdi callq 0x325a80 movq %r14, -0x78(%r12) leaq 0xb8(%rsp), %r12 movq %r12, %rdi callq 0x325e00 leaq 0x251092(%rip), %rsi # 0xa82c72 movl $0x27, %edx movq %r12, %rdi callq 0x325e70 leaq 0x271699(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x42af20(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 movl 0x2d0(%rsp), %edi callq *0x1680(%r15) movl 0x10(%rsp), %edi movl 0x14(%rsp), %esi movl 0x18(%rsp), %edx movl 0x1c(%rsp), %ecx callq *0x1a00(%r15) movss 0x1ca04a(%rip), %xmm0 # 0x9fbc94 movss 0x1ca046(%rip), %xmm1 # 0x9fbc98 movss 0x1ca042(%rip), %xmm2 # 0x9fbc9c movss 0x1ca03e(%rip), %xmm3 # 0x9fbca0 callq *0x1c0(%r15) movss 0x1ca02f(%rip), %xmm0 # 0x9fbca0 callq *0x1d0(%r15) xorl %edi, %edi callq *0x208(%r15) movl $0xb71, %edi # imm = 0xB71 callq *0x4e8(%r15) movl $0xb90, %edi # imm = 0xB90 callq *0x4e8(%r15) movl $0xc11, %edi # imm = 0xC11 callq *0x4e8(%r15) movl $0x4500, %edi # imm = 0x4500 callq *0x188(%r15) movl 0x2d0(%rsp), %esi movups 0x10(%rsp), %xmm0 leaq 0xb0(%rsp), %rdx movups %xmm0, (%rdx) movq (%rbx), %rax movq %rbx, %rdi callq *0x28(%rax) movq 0x70(%rbx), %r12 movl 0x10(%rsp), %ebp movl 0x14(%rsp), %r13d movabsq $0x300000008, %rax # imm = 0x300000008 movq %rax, 0x70(%rsp) movl 0x20(%rsp), %edx movl 0x24(%rsp), %ecx movq 0x30(%rsp), %r9 testq %r9, %r9 je 0x831d04 movq 0x28(%rsp), %r9 leaq 0xb0(%rsp), %rdi leaq 0x70(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e leaq 0xb0(%rsp), %rcx movq %r12, %rdi movl %ebp, %esi movl %r13d, %edx callq 0x8b7e74 callq *0x800(%r15) leaq 0x250f5b(%rip), %rdx # 0xa82c9a movl %eax, %edi xorl %esi, %esi movl $0xf5, %ecx callq 0x8b6518 leaq 0xb8(%rsp), %r12 movq %r14, -0x8(%r12) movq %r12, %rdi callq 0x325e00 leaq 0x250fa1(%rip), %rsi # 0xa82d0a movl $0x23, %edx movq %r12, %rdi callq 0x325e70 leaq 0x271510(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x42ad97(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 movl 0x2d0(%rsp), %edi callq *0x1680(%r15) movl 0x10(%rsp), %edi movl 0x14(%rsp), %esi movl 0x18(%rsp), %edx movl 0x1c(%rsp), %ecx callq *0x1a00(%r15) movss 0x1c9ec1(%rip), %xmm0 # 0x9fbc94 movss 0x1c9ebd(%rip), %xmm1 # 0x9fbc98 movss 0x1c9eb9(%rip), %xmm2 # 0x9fbc9c movss 0x1c9eb5(%rip), %xmm3 # 0x9fbca0 callq *0x1c0(%r15) movss 0x1c9ea6(%rip), %xmm0 # 0x9fbca0 callq *0x1d0(%r15) xorl %edi, %edi callq *0x208(%r15) movl $0xb71, %edi # imm = 0xB71 callq *0x4e8(%r15) movl $0xb90, %edi # imm = 0xB90 callq *0x4e8(%r15) movl $0xc11, %edi # imm = 0xC11 callq *0x4e8(%r15) movl $0x4500, %edi # imm = 0x4500 callq *0x188(%r15) movl 0x38(%rsp), %edi movl 0x3c(%rsp), %esi movl 0x40(%rsp), %edx movl 0x44(%rsp), %ecx callq *0x1290(%r15) movl $0xc11, %edi # imm = 0xC11 callq *0x5e0(%r15) movl 0x2d0(%rsp), %esi movups 0x10(%rsp), %xmm0 leaq 0xb0(%rsp), %rdx movups %xmm0, (%rdx) movq (%rbx), %rax movq %rbx, %rdi callq *0x28(%rax) movq 0x70(%rbx), %r12 movl 0x10(%rsp), %ebp movl 0x14(%rsp), %r13d movabsq $0x300000008, %rax # imm = 0x300000008 movq %rax, 0x70(%rsp) movl 0x48(%rsp), %edx movl 0x4c(%rsp), %ecx movq 0x58(%rsp), %r9 testq %r9, %r9 je 0x831eb0 movq 0x50(%rsp), %r9 leaq 0xb0(%rsp), %rdi leaq 0x70(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e leaq 0xb0(%rsp), %rcx movq %r12, %rdi movl %ebp, %esi movl %r13d, %edx callq 0x8b7e74 callq *0x800(%r15) leaq 0x250daf(%rip), %rdx # 0xa82c9a movl %eax, %edi xorl %esi, %esi movl $0x10d, %ecx # imm = 0x10D callq 0x8b6518 leaq 0xb8(%rsp), %r15 movq %r14, -0x8(%r15) movq %r15, %rdi callq 0x325e00 leaq 0x250e1a(%rip), %rsi # 0xa82d2e movl $0x31, %edx movq %r15, %rdi callq 0x325e70 leaq 0x271365(%rip), %rsi # 0xaa328d leaq 0xb0(%rsp), %rdi callq 0x9aba2a movq 0x42abec(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 movabsq $0x300000008, %r15 # imm = 0x300000008 movq %r15, 0x70(%rsp) movl 0x20(%rsp), %edx movl 0x24(%rsp), %ecx movq 0x30(%rsp), %r9 testq %r9, %r9 je 0x831f77 movq 0x28(%rsp), %r9 leaq 0xb0(%rsp), %rdi leaq 0x70(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e movaps 0x250a5a(%rip), %xmm0 # 0xa829f0 leaq 0x70(%rsp), %rsi movups %xmm0, (%rsi) leaq 0xb0(%rsp), %rdi leaq 0x60(%rsp), %rdx callq 0x832ae0 movq %r15, 0x70(%rsp) movl 0x20(%rsp), %edx movl 0x24(%rsp), %ecx movq 0x30(%rsp), %r9 testq %r9, %r9 je 0x831fcc movq 0x28(%rsp), %r9 leaq 0xb0(%rsp), %rdi leaq 0x70(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e movq %r15, 0x98(%rsp) movl 0x48(%rsp), %edx movl 0x4c(%rsp), %ecx movq 0x58(%rsp), %r9 testq %r9, %r9 je 0x832003 movq 0x50(%rsp), %r9 leaq 0x70(%rsp), %rdi leaq 0x98(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e movl $0x1, (%rsp) leaq 0x1e0d1c(%rip), %rsi # 0xa12d45 leaq 0x1cf62f(%rip), %rdx # 0xa0165f leaq 0xb0(%rsp), %rcx leaq 0x70(%rsp), %r8 leaq 0xa0(%rsp), %r9 movq %r14, %rdi callq 0x9a0ee7 movl %eax, %ecx xorb $0x1, %cl movzbl %cl, %esi leaq 0x21998d(%rip), %rcx # 0xa4b9e9 leaq 0x1d4234(%rip), %rdx # 0xa06297 testb %al, %al cmovneq %rcx, %rdx jmp 0x832087 leaq 0x238(%rsp), %rsi movq %r14, %rdi callq 0x8baf5a leaq 0x250bb2(%rip), %rdx # 0xa82c34 movl $0x1, %esi movq 0x8(%rbx), %rdi callq 0x9a9c16 leaq 0x48(%rsp), %rdi callq 0x9a9590 leaq 0x20(%rsp), %rdi callq 0x9a9590 leaq 0x238(%rsp), %rdi callq 0x8ba6d2 xorl %eax, %eax addq $0x308, %rsp # imm = 0x308 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x832135 jmp 0x83210f jmp 0x832135 jmp 0x832135 movq %rax, %rbx movq 0x42aa41(%rip), %rsi # 0xc5cb28 movq %r15, %rdi jmp 0x83211c jmp 0x832135 jmp 0x83210f jmp 0x832135 jmp 0x83210f jmp 0x83210f movq %rax, %rbx jmp 0x832142 jmp 0x832130 movq %rax, %rbx leaq 0xb0(%rsp), %rdi callq 0x3499b0 jmp 0x832159 movq %rax, %rbx movq 0x42aa0f(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0x128(%rsp), %rdi callq 0x325a80 jmp 0x832138 movq %rax, %rbx jmp 0x83214c movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x9a9590 leaq 0x20(%rsp), %rdi callq 0x9a9590 leaq 0x238(%rsp), %rdi callq 0x8ba6d2 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
void deqp::gls::Functional::(anonymous namespace)::clearEdges<tcu::Vector<int, 4>>(tcu::PixelBufferAccess const&, tcu::Vector<int, 4> const&, tcu::Vector<int, 4> const&)
void clearEdges (const tcu::PixelBufferAccess& access, const T& color, const IVec4& scissorArea) { for (int y = 0; y < access.getHeight(); y++) for (int x = 0; x < access.getWidth(); x++) { if (y < scissorArea.y() || y >= scissorArea.y() + scissorArea.w() || x < scissorArea.x() || x >= scissorArea.x()+ scissorArea.z()) access.setPixel(color, x, y); } }
cmpl $0x0, 0xc(%rdi) jle 0x832b4c pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 xorl %ebp, %ebp cmpl $0x0, 0x8(%r15) jle 0x832b3c xorl %r12d, %r12d movl 0x4(%rbx), %eax cmpl %eax, %ebp jl 0x832b20 addl 0xc(%rbx), %eax cmpl %eax, %ebp jge 0x832b20 movl (%rbx), %eax cmpl %eax, %r12d jl 0x832b20 addl 0x8(%rbx), %eax cmpl %eax, %r12d jl 0x832b33 movq %r15, %rdi movq %r14, %rsi movl %r12d, %edx movl %ebp, %ecx xorl %r8d, %r8d callq 0x9af5c4 incl %r12d cmpl 0x8(%r15), %r12d jl 0x832b03 incl %ebp cmpl 0xc(%r15), %ebp jl 0x832af9 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::Functional::(anonymous namespace)::ScissorClearCase::render(unsigned int, tcu::Vector<int, 4> const&) const
void ScissorClearCase::render (GLuint program, const IVec4&) const { const glw::Functions& gl = m_renderCtx.getFunctions(); const Vec4 white (1.0f, 1.0f, 1.0f, 1.0); gl.clearColor(0.6f, 0.1f, 0.1f, 1.0); gl.clearDepthf(0.0f); if (m_clearMode & GL_DEPTH_BUFFER_BIT) { gl.enable(GL_DEPTH_TEST); gl.depthFunc(GL_GREATER); } if (m_clearMode & GL_STENCIL_BUFFER_BIT) { gl.clearStencil(123); gl.enable(GL_STENCIL_TEST); gl.stencilFunc(GL_EQUAL, 123, ~0u); } if (m_clearMode & GL_COLOR_BUFFER_BIT) gl.clearColor(0.1f, 0.6f, 0.1f, 1.0); gl.clear(m_clearMode); gl.disable(GL_SCISSOR_TEST); gl.uniform4fv(gl.getUniformLocation(program, "u_color"), 1, white.getPtr()); if (!(m_clearMode & GL_COLOR_BUFFER_BIT)) drawQuad(gl, program, Vec3(-1.0f, -1.0f, 0.5f), Vec3(1.0f, 1.0f, 0.5f)); gl.disable(GL_DEPTH_TEST); gl.disable(GL_STENCIL_TEST); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movl %esi, %ebp movq %rdi, %r14 movq 0x70(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %rbx movaps 0x1cdf31(%rip), %xmm0 # 0xa00c70 movups %xmm0, (%rsp) movss 0x1ce555(%rip), %xmm0 # 0xa012a0 movss 0x1cfbb1(%rip), %xmm1 # 0xa02904 movss 0x1c8f45(%rip), %xmm3 # 0x9fbca0 movaps %xmm1, %xmm2 callq *0x1c0(%rax) xorps %xmm0, %xmm0 callq *0x1d0(%rbx) testb $0x1, 0x89(%r14) je 0x832d8d movl $0xb71, %edi # imm = 0xB71 callq *0x5e0(%rbx) movl $0x204, %edi # imm = 0x204 callq *0x4a0(%rbx) testb $0x4, 0x89(%r14) je 0x832dc2 movl $0x7b, %edi callq *0x208(%rbx) movl $0xb90, %edi # imm = 0xB90 callq *0x5e0(%rbx) movl $0x202, %edi # imm = 0x202 movl $0x7b, %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF callq *0x12c8(%rbx) testb $0x40, 0x89(%r14) je 0x832ded movss 0x1ce4cc(%rip), %xmm1 # 0xa012a0 movss 0x1cfb28(%rip), %xmm0 # 0xa02904 movss 0x1c8ebc(%rip), %xmm3 # 0x9fbca0 movaps %xmm0, %xmm2 callq *0x1c0(%rbx) movl 0x88(%r14), %edi callq *0x188(%rbx) movl $0xc11, %edi # imm = 0xC11 callq *0x4e8(%rbx) movq 0x15a8(%rbx), %r15 leaq 0x1e0205(%rip), %rsi # 0xa13018 movl %ebp, %edi callq *0xb48(%rbx) movq %rsp, %rdx movl %eax, %edi movl $0x1, %esi callq *%r15 testb $0x40, 0x89(%r14) jne 0x832e6b movabsq $-0x407fffff40800000, %rax # imm = 0xBF800000BF800000 leaq 0x1c(%rsp), %rdx movq %rax, (%rdx) movl $0x3f000000, %eax # imm = 0x3F000000 movl %eax, 0x8(%rdx) movabsq $0x3f8000003f800000, %rsi # imm = 0x3F8000003F800000 leaq 0x10(%rsp), %rcx movq %rsi, (%rcx) movl %eax, 0x8(%rcx) movq %rbx, %rdi movl %ebp, %esi callq 0x832e8c movl $0xb71, %edi # imm = 0xB71 callq *0x4e8(%rbx) movl $0xb90, %edi # imm = 0xB90 callq *0x4e8(%rbx) addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::Functional::(anonymous namespace)::drawQuad(glw::Functions const&, unsigned int, tcu::Vector<float, 3> const&, tcu::Vector<float, 3> const&)
void drawQuad (const glw::Functions& gl, deUint32 program, const Vec3& p0, const Vec3& p1) { // Vertex data. const float hz = (p0.z() + p1.z()) * 0.5f; const float position[] = { p0.x(), p0.y(), p0.z(), 1.0f, p0.x(), p1.y(), hz, 1.0f, p1.x(), p0.y(), hz, 1.0f, p1.x(), p1.y(), p1.z(), 1.0f }; const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; const deInt32 posLoc = gl.getAttribLocation(program, "a_position"); gl.useProgram(program); gl.enableVertexAttribArray(posLoc); gl.vertexAttribPointer(posLoc, 4, GL_FLOAT, GL_FALSE, 0, &position[0]); gl.drawElements(GL_TRIANGLES, DE_LENGTH_OF_ARRAY(indices), GL_UNSIGNED_SHORT, &indices[0]); gl.disableVertexAttribArray(posLoc); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movl %esi, %ebp movq %rdi, %rbx movss 0x8(%rdx), %xmm0 movss 0x8(%rcx), %xmm1 movss (%rdx), %xmm2 leaq 0x10(%rsp), %r14 movss %xmm2, (%r14) movss 0x4(%rdx), %xmm3 movss %xmm3, 0x4(%r14) movss %xmm0, 0x8(%r14) addss %xmm1, %xmm0 mulss 0x1c8dca(%rip), %xmm0 # 0x9fbc9c movl $0x3f800000, %eax # imm = 0x3F800000 movl %eax, 0xc(%r14) movss %xmm2, 0x10(%r14) movss 0x4(%rcx), %xmm2 movss %xmm2, 0x14(%r14) movss %xmm0, 0x18(%r14) movl %eax, 0x1c(%r14) movss (%rcx), %xmm4 movss %xmm4, 0x20(%r14) movss %xmm3, 0x24(%r14) movss %xmm0, 0x28(%r14) movl %eax, 0x2c(%r14) movss %xmm4, 0x30(%r14) movss %xmm2, 0x34(%r14) movss %xmm1, 0x38(%r14) movl %eax, 0x3c(%r14) movabsq $0x2000200010000, %rax # imm = 0x2000200010000 movq %rsp, %r15 movq %rax, (%r15) movl $0x30001, 0x8(%r15) # imm = 0x30001 leaq 0x1ce6ea(%rip), %rsi # 0xa0162f movl %ebp, %edi callq *0x780(%rbx) movl %eax, %r12d movl %ebp, %edi callq *0x1680(%rbx) movl %r12d, %edi callq *0x610(%rbx) movl %r12d, %edi movl $0x4, %esi movl $0x1406, %edx # imm = 0x1406 xorl %ecx, %ecx xorl %r8d, %r8d movq %r14, %r9 callq *0x19f0(%rbx) movl $0x4, %edi movl $0x6, %esi movl $0x1403, %edx # imm = 0x1403 movq %r15, %rcx callq *0x568(%rbx) movl %r12d, %edi callq *0x518(%rbx) addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::Functional::(anonymous namespace)::FramebufferClearCase::render(unsigned int) const
void FramebufferClearCase::render (GLuint program) const { const glw::Functions& gl = m_renderCtx.getFunctions(); const BufferFmtDesc bufferFmt = getBufferFormat(m_clearType); const Color clearColor = getMainColor(bufferFmt); const int clearStencil = 123; const float clearDepth = 0.5f; switch (m_clearType) { case CLEAR_COLOR_FIXED: gl.clearBufferfv (GL_COLOR, 0, clearColor.f); break; case CLEAR_COLOR_FLOAT: gl.clearBufferfv (GL_COLOR, 0, clearColor.f); break; case CLEAR_COLOR_INT: gl.clearBufferiv (GL_COLOR, 0, clearColor.i); break; case CLEAR_COLOR_UINT: gl.clearBufferuiv(GL_COLOR, 0, clearColor.u); break; case CLEAR_DEPTH: gl.clearBufferfv (GL_DEPTH, 0, &clearDepth); break; case CLEAR_STENCIL: gl.clearBufferiv (GL_STENCIL, 0, &clearStencil); break; case CLEAR_DEPTH_STENCIL: gl.clearBufferfi (GL_DEPTH_STENCIL, 0, clearDepth, clearStencil); break; default: DE_ASSERT(false); } const bool useDepth = (m_clearType == CLEAR_DEPTH || m_clearType == CLEAR_DEPTH_STENCIL); const bool useStencil = (m_clearType == CLEAR_STENCIL || m_clearType == CLEAR_DEPTH_STENCIL); // Render something to expose changes to depth/stencil buffer if (useDepth || useStencil) { if (useDepth) gl.enable(GL_DEPTH_TEST); if (useStencil) gl.enable(GL_STENCIL_TEST); gl.stencilFunc(GL_EQUAL, clearStencil, ~0u); gl.depthFunc(GL_GREATER); gl.disable(GL_SCISSOR_TEST); gl.uniform4fv(gl.getUniformLocation(program, "u_color"), 1, clearColor.f); drawQuad(gl, program, tcu::Vec3(-1.0f, -1.0f, 0.6f), tcu::Vec3(1.0f, 1.0f, 0.6f)); } }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %esi, %ebx movq %rdi, %r15 movq 0x70(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movl 0x78(%r15), %edx movl %edx, %ecx shll $0x4, %ecx movabsq $-0x7283727177e57fa8, %rsi # imm = 0x8D7C8D8E881A8058 shrq %cl, %rsi movq %rax, %r14 cmpl $0x4, %edx movl $0x8058, %eax # imm = 0x8058 cmovbl %esi, %eax movzwl %ax, %eax cmpl $0x8d8e, %eax # imm = 0x8D8E je 0x833a79 cmpl $0x8d7c, %eax # imm = 0x8D7C je 0x833a63 cmpl $0x8058, %eax # imm = 0x8058 movl $0x0, 0x4(%rsp) movaps 0x1d2494(%rip), %xmm0 # 0xa05ef0 movups %xmm0, 0x8(%rsp) jmp 0x833a8d movaps 0x24efb6(%rip), %xmm0 # 0xa82a20 movups %xmm0, 0x4(%rsp) movl $0xff, 0x14(%rsp) jmp 0x833a8d movaps 0x24efb0(%rip), %xmm0 # 0xa82a30 movups %xmm0, 0x4(%rsp) movl $0x7f, 0x14(%rsp) movl $0x7b, 0x1c(%rsp) movl $0x3f000000, 0x18(%rsp) # imm = 0x3F000000 cmpl $0x6, %edx ja 0x833b2a movl %edx, %eax leaq 0x24efb1(%rip), %rcx # 0xa82a60 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x8(%rsp), %rdx movl $0x1800, %edi # imm = 0x1800 jmp 0x833ace leaq 0x18(%rsp), %rdx movl $0x1801, %edi # imm = 0x1801 xorl %esi, %esi callq *0x1a8(%r14) jmp 0x833b2a leaq 0x8(%rsp), %rdx movl $0x1800, %edi # imm = 0x1800 jmp 0x833b04 leaq 0x8(%rsp), %rdx movl $0x1800, %edi # imm = 0x1800 xorl %esi, %esi callq *0x1b8(%r14) jmp 0x833b2a leaq 0x1c(%rsp), %rdx movl $0x1802, %edi # imm = 0x1802 xorl %esi, %esi callq *0x1b0(%r14) jmp 0x833b2a movss 0x1c8185(%rip), %xmm0 # 0x9fbc9c movl $0x84f9, %edi # imm = 0x84F9 xorl %esi, %esi movl $0x7b, %edx callq *0x1a0(%r14) movl 0x78(%r15), %eax leal -0x5(%rax), %ebp orl $0x2, %eax cmpl $0x2, %ebp jae 0x833b40 cmpl $0x6, %eax je 0x833b49 jmp 0x833b55 cmpl $0x6, %eax jne 0x833bf3 movl $0xb71, %edi # imm = 0xB71 callq *0x5e0(%r14) cmpl $0x1, %ebp ja 0x833b66 movl $0xb90, %edi # imm = 0xB90 callq *0x5e0(%r14) movl $0x202, %edi # imm = 0x202 movl $0x7b, %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF callq *0x12c8(%r14) movl $0x204, %edi # imm = 0x204 callq *0x4a0(%r14) movl $0xc11, %edi # imm = 0xC11 callq *0x4e8(%r14) movq 0x15a8(%r14), %r15 leaq 0x1df476(%rip), %rsi # 0xa13018 movl %ebx, %edi callq *0xb48(%r14) leaq 0x8(%rsp), %rdx movl %eax, %edi movl $0x1, %esi callq *%r15 movabsq $-0x407fffff40800000, %rax # imm = 0xBF800000BF800000 leaq 0x2c(%rsp), %rdx movq %rax, (%rdx) movl $0x3f19999a, %eax # imm = 0x3F19999A movl %eax, 0x8(%rdx) movabsq $0x3f8000003f800000, %rsi # imm = 0x3F8000003F800000 leaq 0x20(%rsp), %rcx movq %rsi, (%rcx) movl %eax, 0x8(%rcx) movq %r14, %rdi movl %ebx, %esi callq 0x832e8c addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::Functional::(anonymous namespace)::FramebufferBlitCase::init()
void FramebufferBlitCase::init (void) { if (m_renderCtx.getRenderTarget().getNumSamples()) throw tcu::NotSupportedError("Cannot blit to multisampled framebuffer", "", __FILE__, __LINE__); const glw::Functions& gl = m_renderCtx.getFunctions(); const glu::Renderbuffer colorbuf (gl); const tcu::Vec4 clearColor (1.0f, 0.5, 0.125f, 1.0f); m_fbo = FramebufferP(new glu::Framebuffer(gl)); gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, **m_fbo); gl.bindRenderbuffer(GL_RENDERBUFFER, *colorbuf); gl.renderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, SIZE, SIZE); gl.framebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, *colorbuf); gl.clearBufferfv(GL_COLOR, 0, clearColor.getPtr()); gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, m_renderCtx.getDefaultFramebuffer()); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx movq 0x70(%rdi), %rdi movq (%rdi), %rax callq *0x20(%rax) cmpl $0x0, 0x20(%rax) jne 0x833de1 movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r14 movl $0x2, %edi callq 0x92b7be movq %rsp, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x92b5d4 movaps 0x24ed4c(%rip), %xmm0 # 0xa82a40 movups %xmm0, 0x28(%rsp) movl $0x18, %edi callq 0x325210 movq %rax, %r15 movl $0x3, %edi callq 0x92b7be movq %r15, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x92b5d4 movq $0x0, 0x18(%rsp) leaq 0x88(%rbx), %r12 cmpq %r15, 0x88(%rbx) je 0x833d43 movq %r12, %rdi callq 0x833f1c movq %r15, (%r12) leaq 0x18(%rsp), %rdi callq 0x833f1c movq (%r12), %rax movl 0x10(%rax), %esi movl $0x8ca9, %edi # imm = 0x8CA9 callq *0x78(%r14) movl 0x10(%rsp), %esi movl $0x8d41, %edi # imm = 0x8D41 callq *0xa0(%r14) movl $0x8d41, %edi # imm = 0x8D41 movl $0x8058, %esi # imm = 0x8058 movl $0x40, %edx movl $0x40, %ecx callq *0x1238(%r14) movl 0x10(%rsp), %ecx movl $0x8ca9, %edi # imm = 0x8CA9 movl $0x8ce0, %esi # imm = 0x8CE0 movl $0x8d41, %edx # imm = 0x8D41 callq *0x688(%r14) leaq 0x28(%rsp), %rdx movl $0x1800, %edi # imm = 0x1800 xorl %esi, %esi callq *0x1a8(%r14) movq 0x78(%r14), %r14 movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x30(%rax) movl $0x8ca9, %edi # imm = 0x8CA9 movl %eax, %esi callq *%r14 movq %rsp, %rdi callq 0x92b79c addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movl $0x38, %edi callq 0x325650 movq %rax, %r14 leaq 0x24f0ab(%rip), %rsi # 0xa82ea0 leaq 0x224a59(%rip), %rdx # 0xa58855 leaq 0x24ee97(%rip), %rcx # 0xa82c9a movq %rax, %rdi movl $0x1f4, %r8d # imm = 0x1F4 callq 0x99c244 leaq 0x3e6dd8(%rip), %rsi # 0xc1abf0 leaq -0x50203f(%rip), %rdx # 0x331de0 movq %r14, %rdi callq 0x325940 movq %rax, %rbx movq %r14, %rdi callq 0x325d40 jmp 0x833e6c movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x833f1c jmp 0x833e64 jmp 0x833e45 movq %rax, %rdi callq 0x3314f2 jmp 0x833e61 movq %rax, %rbx movl $0x18, %esi movq %r15, %rdi callq 0x3251a0 jmp 0x833e64 movq %rax, %rbx movq %rsp, %rdi callq 0x92b79c movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsScissorTests.cpp
deqp::gls::TextureStateQueryTests::isLegalTesterForTarget(unsigned int, deqp::gls::TextureStateQueryTests::TesterType)
bool isLegalTesterForTarget (glw::GLenum target, TesterType tester) { // no 3d filtering on 2d targets if ((tester == TESTER_TEXTURE_WRAP_R || tester == TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER) && target != GL_TEXTURE_3D) return false; // no sampling on multisample if (isMultisampleTarget(target) && isSamplerStateTester(tester)) return false; // no states in buffer if (target == GL_TEXTURE_BUFFER) return false; return true; }
cmpl $0x12, %esi sete %al cmpl $0x38, %esi sete %cl cmpl $0x806f, %edi # imm = 0x806F je 0x833f6b orb %cl, %al je 0x833f6b xorl %eax, %eax retq movl %edi, %eax andl $-0x3, %eax cmpl $0x9100, %eax # imm = 0x9100 jne 0x833f8f addl $-0xc, %esi cmpl $0x2d, %esi jae 0x833f8f movabsq $0x1e4048049249, %rax # imm = 0x1E4048049249 btq %rsi, %rax jb 0x833f68 cmpl $0x8c2a, %edi # imm = 0x8C2A setne %al retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::isSamplerStateTester(deqp::gls::TextureStateQueryTests::TesterType)
bool isSamplerStateTester (TesterType tester) { return tester == TESTER_TEXTURE_WRAP_S || tester == TESTER_TEXTURE_WRAP_T || tester == TESTER_TEXTURE_WRAP_R || tester == TESTER_TEXTURE_MAG_FILTER || tester == TESTER_TEXTURE_MIN_FILTER || tester == TESTER_TEXTURE_MIN_LOD || tester == TESTER_TEXTURE_MAX_LOD || tester == TESTER_TEXTURE_COMPARE_MODE || tester == TESTER_TEXTURE_COMPARE_FUNC || tester == TESTER_TEXTURE_SRGB_DECODE_EXT || tester == TESTER_TEXTURE_BORDER_COLOR || tester == TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER || tester == TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER || tester == TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER; }
movl %edi, %ecx cmpl $0x39, %edi setb %dl movabsq $0x1e4048049249000, %rax # imm = 0x1E4048049249000 shrq %cl, %rax andb %dl, %al retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::createIsTextureTest(tcu::TestContext&, glu::RenderContext const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int)
tcu::TestCase* createIsTextureTest (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const std::string& name, const std::string& description, glw::GLenum target) { return new IsTextureCase(testCtx, renderCtx, name.c_str(), description.c_str(), target); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %ebx movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %rbp movl $0x80, %edi callq 0x325210 movq %rax, %r14 movq (%r13), %rdx movq (%r12), %rcx movq %rax, %rdi movq %rbp, %rsi callq 0x9a9abc leaq 0x4213f9(%rip), %rax # 0xc553f8 movq %rax, (%r14) movq %r15, 0x70(%r14) movl %ebx, 0x78(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movl $0x80, %esi movq %r14, %rdi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureCompareFuncCase::TextureCompareFuncCase(tcu::TestContext&, glu::RenderContext const&, char const*, char const*, unsigned int, deqp::gls::TextureStateQueryTests::TesterType, deqp::gls::StateQueryUtil::QueryType)
TextureCompareFuncCase::TextureCompareFuncCase (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const char* name, const char* desc, glw::GLenum target, TesterType tester, QueryType type) : TextureTest(testCtx, renderCtx, name, desc, target, tester, type) { }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %r9d, %ebx movq %rdx, %r14 movq %rdi, %r15 movl 0x38(%rsp), %r12d movl 0x30(%rsp), %ebp movq %rcx, %rdx movq %r8, %rcx callq 0x9a9abc leaq 0x420f36(%rip), %rax # 0xc554b8 movq %rax, (%r15) movq %r14, 0x70(%r15) movl %ebx, 0x78(%r15) movl %ebp, %edi callq 0x8344db movl %eax, 0x7c(%r15) movl %ebp, 0x80(%r15) movl %r12d, 0x84(%r15) leaq 0x421103(%rip), %rax # 0xc556b0 movq %rax, (%r15) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::DepthStencilModeCase::DepthStencilModeCase(tcu::TestContext&, glu::RenderContext const&, char const*, char const*, unsigned int, deqp::gls::TextureStateQueryTests::TesterType, deqp::gls::StateQueryUtil::QueryType)
DepthStencilModeCase::DepthStencilModeCase (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const char* name, const char* desc, glw::GLenum target, TesterType tester, QueryType type) : TextureTest(testCtx, renderCtx, name, desc, target, tester, type) { }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %r9d, %ebx movq %rdx, %r14 movq %rdi, %r15 movl 0x38(%rsp), %r12d movl 0x30(%rsp), %ebp movq %rcx, %rdx movq %r8, %rcx callq 0x9a9abc leaq 0x420e6e(%rip), %rax # 0xc554b8 movq %rax, (%r15) movq %r14, 0x70(%r15) movl %ebx, 0x78(%r15) movl %ebp, %edi callq 0x8344db movl %eax, 0x7c(%r15) movl %ebp, 0x80(%r15) movl %r12d, 0x84(%r15) leaq 0x42119b(%rip), %rax # 0xc55810 movq %rax, (%r15) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::IsTextureCase::init()
void IsTextureCase::init (void) { const de::UniquePtr<glu::ContextInfo> ctxInfo (glu::ContextInfo::create(m_renderCtx)); RequiredExtensions extensions; // target if (!isCoreTextureTarget(m_renderCtx.getType(), m_target)) extensions.add(getTextureTargetExtension(m_renderCtx.getType(), m_target)); extensions.check(*ctxInfo); }
pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %r14 movq 0x70(%rdi), %rdi callq 0x8b5bb6 movq %rax, %rbx xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq 0x70(%r14), %rdi movq (%rdi), %rax callq *0x10(%rax) leaq 0x18(%rsp), %rdi movl %eax, (%rdi) movl 0x78(%r14), %esi callq 0x835266 testb %al, %al jne 0x834ad3 movq 0x70(%r14), %rdi movq (%rdi), %rax callq *0x10(%rax) leaq 0x34(%rsp), %rsi movl %eax, (%rsi) movl 0x78(%r14), %edx leaq 0x18(%rsp), %rdi callq 0x8353b9 movq %rsp, %rdi leaq 0x18(%rsp), %rsi callq 0x83536e movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x834ad3 movq 0x28(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq %rsp, %rdi movq %rbx, %rsi callq 0x835444 movq (%rsp), %rdi testq %rdi, %rdi je 0x834af4 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) addq $0x38, %rsp popq %rbx popq %r14 retq movq %rax, %r14 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x834b28 movq 0x28(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 jmp 0x834b28 jmp 0x834b25 jmp 0x834b25 movq %rax, %r14 movq (%rsp), %rdi testq %rdi, %rdi je 0x834b3e movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 testq %rbx, %rbx je 0x834b4c movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isCoreTextureTarget(glu::ContextType const&, unsigned int)
static bool isCoreTextureTarget (const glu::ContextType& contextType, glw::GLenum target) { if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::isCoreTextureTarget(target); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::isCoreTextureTarget(target); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::isCoreTextureTarget(target); else { DE_ASSERT(false); return DE_NULL; } }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl (%rdi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al je 0x83529b movb $0x1, %al cmpl $0x8512, %ebx # imm = 0x8512 jg 0x8352cc cmpl $0xde1, %ebx # imm = 0xDE1 je 0x8352de cmpl $0x806f, %ebx # imm = 0x806F je 0x8352de jmp 0x8352dc movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x835307 movb $0x1, %cl cmpl $0x8512, %ebx # imm = 0x8512 jg 0x835334 cmpl $0xde1, %ebx # imm = 0xDE1 je 0x835346 cmpl $0x806f, %ebx # imm = 0x806F je 0x835346 jmp 0x835344 cmpl $0x8513, %ebx # imm = 0x8513 je 0x8352de cmpl $0x8c1a, %ebx # imm = 0x8C1A je 0x8352de xorl %eax, %eax cmpl $0x9100, %ebx # imm = 0x9100 sete %cl orb %al, %cl movb $0x1, %al jne 0x835365 cmpl $0x8c2a, %ebx # imm = 0x8C2A je 0x835365 cmpl $0x9009, %ebx # imm = 0x9009 je 0x835365 cmpl $0x9102, %ebx # imm = 0x9102 jne 0x835363 jmp 0x835365 movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 testb %al, %al je 0x835363 movb $0x1, %al cmpl $0x8512, %ebx # imm = 0x8512 jg 0x835353 cmpl $0xde1, %ebx # imm = 0xDE1 je 0x835365 cmpl $0x806f, %ebx # imm = 0x806F je 0x835365 jmp 0x835363 cmpl $0x8513, %ebx # imm = 0x8513 je 0x835346 cmpl $0x8c1a, %ebx # imm = 0x8C1A je 0x835346 xorl %ecx, %ecx cmpl $0x9100, %ebx # imm = 0x9100 sete %al orb %cl, %al jmp 0x835365 cmpl $0x8513, %ebx # imm = 0x8513 je 0x835365 cmpl $0x8c1a, %ebx # imm = 0x8C1A je 0x835365 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::RequiredExtensions::check(glu::ContextInfo const&) const
static bool isPureIntTester (TesterType tester) { #define HANDLE_ALL_SETTERS(X) \ case X: \ case X ## _SET_PURE_UINT: return false; \ case X ## _SET_PURE_INT: return true; switch (tester) { HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_G) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_B) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_A) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_S) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_T) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAG_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_BASE_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_FUNC) HANDLE_ALL_SETTERS(TESTER_DEPTH_STENCIL_TEXTURE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SRGB_DECODE_EXT) case TESTER_TEXTURE_IMMUTABLE_LEVELS: case TESTER_TEXTURE_IMMUTABLE_FORMAT: case TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER: case TESTER_TEXTURE_BORDER_COLOR: return false; default: DE_ASSERT(false); return false; } #undef HANDLE_ALL_SETTERS }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq (%rdi), %rax movq 0x8(%rdi), %rcx subq %rax, %rcx shrq $0x3, %rcx testl %ecx, %ecx jle 0x8354db movq %rsi, %rbx movq %rdi, %r14 xorl %r12d, %r12d movq %rsp, %r15 xorl %r13d, %r13d movq (%rax,%r12), %rsi movq %rbx, %rdi callq 0x8b5b8c testb %al, %al jne 0x8354be movq (%r14), %rdx addq %r12, %rdx movq 0x8(%rsp), %rsi cmpq 0x10(%rsp), %rsi je 0x8354b6 movq (%rdx), %rax movq %rax, (%rsi) addq $0x8, 0x8(%rsp) jmp 0x8354be movq %r15, %rdi callq 0x84cae4 incq %r13 movq (%r14), %rax movq 0x8(%r14), %rcx subq %rax, %rcx shrq $0x3, %rcx movslq %ecx, %rcx addq $0x8, %r12 cmpq %rcx, %r13 jl 0x835486 movq (%rsp), %rdi cmpq 0x8(%rsp), %rdi jne 0x83550a testq %rdi, %rdi je 0x8354f8 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x40(%rsp), %rdi callq 0x325e00 leaq 0x24e3c5(%rip), %rsi # 0xa838e0 leaq 0x40(%rsp), %rdi movl $0x19, %edx callq 0x325e70 movq 0x8(%rsp), %rax subq (%rsp), %rax shrq $0x3, %rax testl %eax, %eax jle 0x8355b7 xorl %r12d, %r12d leaq 0x40(%rsp), %rbx leaq 0x251251(%rip), %r14 # 0xa8679b testq %r12, %r12 je 0x83555f movl $0x2, %edx movq %rbx, %rdi movq %r14, %rsi callq 0x325e70 movq (%rsp), %rax movq (%rax,%r12,8), %r15 testq %r15, %r15 je 0x835584 movq %r15, %rdi callq 0x325680 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8355a0 movq 0x40(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x40, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 movq 0x8(%rsp), %rax subq (%rsp), %rax incq %r12 shrq $0x3, %rax cltq cmpq %rax, %r12 jl 0x83554a movl $0x38, %edi callq 0x325650 movq %rax, %r14 leaq 0x48(%rsp), %rsi leaq 0x20(%rsp), %rdi callq 0x325660 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x99c260 xorl %ebp, %ebp leaq 0x3e5604(%rip), %rsi # 0xc1abf0 leaq -0x503813(%rip), %rdx # 0x331de0 movq %r14, %rdi callq 0x325940 jmp 0x835632 movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x835623 movq 0x30(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x835623 movq %rax, %rbx movb $0x1, %bpl testb %bpl, %bpl je 0x835635 movq %r14, %rdi callq 0x325d40 jmp 0x835635 movq %rax, %rbx movq 0x4274ec(%rip), %rsi # 0xc5cb28 leaq 0x40(%rsp), %rdi callq 0x325aa0 leaq 0xb0(%rsp), %rdi callq 0x325a80 jmp 0x83565a jmp 0x835657 movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x835670 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::RequiredExtensions::RequiredExtensions(char const*)
explicit RequiredExtensions (const char* ext) { add(ext); }
pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) callq 0x835678 addq $0x8, %rsp popq %rbx popq %r14 retq movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0x835753 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x3251a0 movq %r14, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureTest::iterate()
TextureTest::IterateResult TextureTest::iterate (void) { glu::CallLogWrapper gl (m_renderCtx.getFunctions(), m_testCtx.getLog()); tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: "); gl.enableLogging(true); test(gl, result); result.setTestContextResult(m_testCtx); return STOP; }
pushq %r15 pushq %r14 pushq %rbx subq $0x90, %rsp movq %rdi, %rbx movq 0x70(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq 0x8(%rbx), %rcx movq 0x10(%rcx), %rdx leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x8e03bc movq 0x8(%rbx), %rax movq 0x10(%rax), %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x20428a(%rip), %rsi # 0xa39c7e leaq 0x20428e(%rip), %rdx # 0xa39c89 leaq 0x8(%rsp), %rdi callq 0x334070 leaq 0x40(%rsp), %rdi leaq 0x8(%rsp), %rdx movq %r14, %rsi callq 0x9a9334 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x835a2e movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x28(%rsp), %rsi movb $0x1, 0x10(%rsi) movq (%rbx), %rax leaq 0x40(%rsp), %rdx movq %rbx, %rdi callq *0x28(%rax) movq 0x8(%rbx), %rsi leaq 0x40(%rsp), %rdi callq 0x9a94e0 leaq 0x80(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x835a74 movq 0x80(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x835a8f movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x28(%rsp), %rdi callq 0x8e03c8 xorl %eax, %eax addq $0x90, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x835ad6 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x835ad6 movq %rax, %rbx jmp 0x835ad6 movq %rax, %rbx leaq 0x40(%rsp), %rdi callq 0x528392 leaq 0x28(%rsp), %rdi callq 0x8e03c8 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isCoreTextureParam(glu::ContextType const&, unsigned int)
static bool isCoreTextureParam (const glu::ContextType& contextType, glw::GLenum pname) { if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::isCoreTextureParam(pname); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::isCoreTextureParam(pname); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::isCoreTextureParam(pname); else { DE_ASSERT(false); return DE_NULL; } }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl (%rdi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al je 0x836923 movl %ebx, %edi callq 0x836c79 cmpl $0x90ea, %ebx # imm = 0x90EA sete %cl orb %al, %cl cmpl $0x1004, %ebx # imm = 0x1004 jmp 0x836943 movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x836950 movl %ebx, %edi callq 0x836c79 movl %eax, %ecx cmpl $0x90ea, %ebx # imm = 0x90EA sete %al orb %cl, %al addq $0x8, %rsp popq %rbx popq %r14 retq movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 testb %al, %al je 0x83696f movl %ebx, %edi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x836c79 xorl %eax, %eax jmp 0x836948
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isCoreQuery(glu::ContextType const&, deqp::gls::StateQueryUtil::QueryType)
static bool isCoreQuery (const glu::ContextType& contextType, QueryType query) { if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::isCoreQuery(query); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::isCoreQuery(query); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::isCoreQuery(query); else { DE_ASSERT(false); return DE_NULL; } }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl (%rdi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al je 0x836a17 cmpl $0x2a, %ebx jae 0x836a2d movabsq $0x3fc1fe00000, %rax # imm = 0x3FC1FE00000 jmp 0x836a52 movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x836a31 cmpl $0x28, %ebx jb 0x836a48 xorl %eax, %eax jmp 0x836a57 movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 cmpl $0x28, %ebx setb %cl testb %cl, %al je 0x836a2d movabsq $0xcc06600000, %rax # imm = 0xCC06600000 movl %ebx, %ecx shrq %cl, %rax andb $0x1, %al addq $0x8, %rsp popq %rbx popq %r14 retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::getQueryExtension(glu::ContextType const&, deqp::gls::StateQueryUtil::QueryType)
static RequiredExtensions getQueryExtension (const glu::ContextType& contextType, QueryType query) { DE_ASSERT(!isCoreQuery(contextType, query)); if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::getQueryExtension(query); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::getQueryExtension(query); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::getQueryExtension(query); else { DE_ASSERT(false); return RequiredExtensions(); } }
pushq %rbp pushq %r14 pushq %rbx movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movl (%rsi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al jne 0x836ac3 movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x836ab6 cmpl $0x29, %ebp ja 0x836ac3 movl %ebp, %eax movabsq $0x33019800000, %rcx # imm = 0x33019800000 btq %rax, %rcx jae 0x836ac3 leaq 0x24ce69(%rip), %rsi # 0xa83915 movq %rbx, %rdi callq 0x83571a jmp 0x836ad1 movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isCoreTester(glu::ContextType const&, deqp::gls::TextureStateQueryTests::TesterType)
static bool isCoreTester (const glu::ContextType& contextType, TesterType tester) { if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::isCoreTester(tester); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::isCoreTester(tester); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::isCoreTester(tester); else { DE_ASSERT(false); return DE_NULL; } }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl (%rdi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al je 0x836b24 cmpl $0x2f, %ebx setb %dl movabsq $0x649249249249, %rsi # imm = 0x649249249249 movl %ebx, %ecx shrq %cl, %rsi movb $0x1, %al cmpl $0x2f, %ebx je 0x836b7d andb %sil, %dl jne 0x836b7d cmpl $0x39, %ebx jae 0x836b7b movabsq $0x1e31b6db6db6db6, %rax # imm = 0x1E31B6DB6DB6DB6 jmp 0x836b74 movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x836b53 movabsq $0x649249249249, %rax # imm = 0x649249249249 movl %ebx, %ecx shrq %cl, %rax cmpl $0x2f, %ebx setb %cl sete %dl andb %cl, %al orb %dl, %al jmp 0x836b7d movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 cmpl $0x2f, %ebx setb %cl testb %cl, %al je 0x836b7b movabsq $0x649249249249, %rax # imm = 0x649249249249 movl %ebx, %ecx shrq %cl, %rax jmp 0x836b7d xorl %eax, %eax andb $0x1, %al addq $0x8, %rsp popq %rbx popq %r14 retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::getTesterExtension(glu::ContextType const&, deqp::gls::TextureStateQueryTests::TesterType)
static RequiredExtensions getTesterExtension (const glu::ContextType& contextType, TesterType tester) { DE_ASSERT(!isCoreTester(contextType, tester)); if (contextSupports(contextType, glu::ApiType::es(3,2))) return es32::getTesterExtension(tester); else if (contextSupports(contextType, glu::ApiType::es(3,1))) return es31::getTesterExtension(tester); else if (contextSupports(contextType, glu::ApiType::es(3,0))) return es30::getTesterExtension(tester); else { DE_ASSERT(false); return RequiredExtensions(); } }
pushq %rbp pushq %r14 pushq %rbx movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movl (%rsi), %edi movl $0x23, %esi callq 0x8b85e8 testb %al, %al je 0x836bb4 addl $-0x32, %ebp cmpl $0x2, %ebp ja 0x836bfa leaq 0x24cd48(%rip), %rsi # 0xa838fa jmp 0x836be3 movl (%r14), %edi movl $0x13, %esi callq 0x8b85e8 testb %al, %al je 0x836bed cmpl $0x38, %ebp ja 0x836bfa movl %ebp, %eax movabsq $0x1e31b6db6db6db6, %rcx # imm = 0x1E31B6DB6DB6DB6 btq %rax, %rcx jae 0x836c10 leaq 0x24cd32(%rip), %rsi # 0xa83915 movq %rbx, %rdi callq 0x83571a jmp 0x836c08 movl (%r14), %edi movl $0x3, %esi callq 0x8b85e8 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq movabsq $0x18000000000000, %rcx # imm = 0x18000000000000 btq %rax, %rcx jae 0x836c4e xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq $0x0, 0x10(%rbx) leaq 0x24ccc5(%rip), %rsi # 0xa838fa movq %rbx, %rdi callq 0x835678 leaq 0x24ccd1(%rip), %rsi # 0xa83915 movq %rbx, %rdi callq 0x835678 jmp 0x836c08 cmpq $0x32, %rax je 0x836bab jmp 0x836bfa movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0x836c71 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x3251a0 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::es30::isCoreTextureParam(unsigned int)
static bool isCoreTextureParam (glw::GLenum pname) { return pname == GL_TEXTURE_BASE_LEVEL || pname == GL_TEXTURE_COMPARE_MODE || pname == GL_TEXTURE_COMPARE_FUNC || pname == GL_TEXTURE_MAG_FILTER || pname == GL_TEXTURE_MAX_LEVEL || pname == GL_TEXTURE_MAX_LOD || pname == GL_TEXTURE_MIN_FILTER || pname == GL_TEXTURE_MIN_LOD || pname == GL_TEXTURE_SWIZZLE_R || pname == GL_TEXTURE_SWIZZLE_G || pname == GL_TEXTURE_SWIZZLE_B || pname == GL_TEXTURE_SWIZZLE_A || pname == GL_TEXTURE_WRAP_S || pname == GL_TEXTURE_WRAP_T || pname == GL_TEXTURE_WRAP_R || pname == GL_TEXTURE_IMMUTABLE_FORMAT || pname == GL_TEXTURE_IMMUTABLE_LEVELS; }
movb $0x1, %al cmpl $0x82de, %edi # imm = 0x82DE jg 0x836c9a leal -0x2800(%rdi), %ecx cmpl $0x4, %ecx jb 0x836c99 leal -0x813a(%rdi), %ecx cmpl $0x4, %ecx jae 0x836ccc retq cmpl $0x8e41, %edi # imm = 0x8E41 jle 0x836cb7 leal -0x8e42(%rdi), %ecx cmpl $0x4, %ecx jb 0x836c99 cmpl $0x912f, %edi # imm = 0x912F je 0x836c99 jmp 0x836cd4 leal -0x884c(%rdi), %ecx cmpl $0x2, %ecx jb 0x836c99 cmpl $0x82df, %edi # imm = 0x82DF je 0x836c99 jmp 0x836cd4 cmpl $0x8072, %edi # imm = 0x8072 je 0x836c99 xorl %eax, %eax retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isPureIntTester(deqp::gls::TextureStateQueryTests::TesterType)
static bool isPureIntTester (TesterType tester) { #define HANDLE_ALL_SETTERS(X) \ case X: \ case X ## _SET_PURE_UINT: return false; \ case X ## _SET_PURE_INT: return true; switch (tester) { HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_G) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_B) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_A) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_S) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_T) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAG_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_BASE_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_FUNC) HANDLE_ALL_SETTERS(TESTER_DEPTH_STENCIL_TEXTURE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SRGB_DECODE_EXT) case TESTER_TEXTURE_IMMUTABLE_LEVELS: case TESTER_TEXTURE_IMMUTABLE_FORMAT: case TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER: case TESTER_TEXTURE_BORDER_COLOR: return false; default: DE_ASSERT(false); return false; } #undef HANDLE_ALL_SETTERS }
movl %edi, %ecx cmpl $0x34, %edi setb %dl movabsq $0x9092492492492, %rax # imm = 0x9092492492492 shrq %cl, %rax andb %dl, %al retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::isPureUintTester(deqp::gls::TextureStateQueryTests::TesterType)
static bool isPureUintTester (TesterType tester) { #define HANDLE_ALL_SETTERS(X) \ case X: \ case X ## _SET_PURE_INT: return false; \ case X ## _SET_PURE_UINT: return true; switch (tester) { HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_G) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_B) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SWIZZLE_A) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_S) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_T) HANDLE_ALL_SETTERS(TESTER_TEXTURE_WRAP_R) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAG_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_FILTER) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MIN_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LOD) HANDLE_ALL_SETTERS(TESTER_TEXTURE_BASE_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_MAX_LEVEL) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_COMPARE_FUNC) HANDLE_ALL_SETTERS(TESTER_DEPTH_STENCIL_TEXTURE_MODE) HANDLE_ALL_SETTERS(TESTER_TEXTURE_SRGB_DECODE_EXT) case TESTER_TEXTURE_IMMUTABLE_LEVELS: case TESTER_TEXTURE_IMMUTABLE_FORMAT: case TESTER_TEXTURE_WRAP_S_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_T_CLAMP_TO_BORDER: case TESTER_TEXTURE_WRAP_R_CLAMP_TO_BORDER: case TESTER_TEXTURE_BORDER_COLOR: return false; default: DE_ASSERT(false); return false; } #undef HANDLE_ALL_SETTERS }
movl %edi, %ecx cmpl $0x35, %edi setb %dl movabsq $0x12124924924924, %rax # imm = 0x12124924924924 shrq %cl, %rax andb %dl, %al retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureWrapCase::test(glu::CallLogWrapper&, tcu::ResultCollector&) const
void TextureWrapCase::test (glu::CallLogWrapper& gl, tcu::ResultCollector& result) const { const bool isPureCase = isPureIntTester(m_tester) || isPureUintTester(m_tester); if (!isPureCase) { const tcu::ScopedLogSection section(m_testCtx.getLog(), "Initial", "Initial"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, GL_REPEAT, m_type); } { const tcu::ScopedLogSection section (m_testCtx.getLog(), "Set", "Set"); const GLenum wrapValues[] = {GL_CLAMP_TO_EDGE, GL_REPEAT, GL_MIRRORED_REPEAT}; if (isPureCase) { for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(wrapValues); ++ndx) { if (isPureIntTester(m_tester)) { const glw::GLint value = (glw::GLint)wrapValues[ndx]; gl.glTexParameterIiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIiv"); } else { DE_ASSERT(isPureUintTester(m_tester)); const glw::GLuint value = wrapValues[ndx]; gl.glTexParameterIuiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIuiv"); } verifyStateTextureParamInteger(result, gl, m_target, m_pname, wrapValues[ndx], m_type); } } else { for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(wrapValues); ++ndx) { gl.glTexParameteri(m_target, m_pname, wrapValues[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameteri"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, wrapValues[ndx], m_type); } //check unit conversions with float for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(wrapValues); ++ndx) { gl.glTexParameterf(m_target, m_pname, (GLfloat)wrapValues[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterf"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, wrapValues[ndx], m_type); } } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x80(%rdi), %r12d movl %r12d, %edi callq 0x836cd7 movb $0x1, %bpl testb %al, %al jne 0x836d5a movl %r12d, %edi callq 0x836cef movl %eax, %ebp testb %bpl, %bpl jne 0x836e21 movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x202f8f(%rip), %rsi # 0xa39d0a leaq 0x202f8f(%rip), %rdx # 0xa39d11 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x202f6e(%rip), %rsi # 0xa39d0a leaq 0x202f6e(%rip), %rdx # 0xa39d11 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx leaq 0x48(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x836ddb movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x836df7 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl $0x2901, %r8d # imm = 0x2901 callq 0x82fd2a movq 0x8(%rsp), %rdi callq 0x9abf3a movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x273dc9(%rip), %rsi # 0xaaac02 leaq 0x273dc5(%rip), %rdx # 0xaaac05 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0x58(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x273da8(%rip), %rsi # 0xaaac02 leaq 0x273da4(%rip), %rdx # 0xaaac05 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0xc0(%rsp), %rdi leaq 0x28(%rsp), %rdx leaq 0x48(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x836ea1 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x836ebd movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 testb %bpl, %bpl je 0x8373b7 xorl %r13d, %r13d leaq 0x24c664(%rip), %r12 # 0xa83534 movl 0x80(%r15), %edi callq 0x836cd7 testb %al, %al je 0x836fda movl (%r13,%r12), %eax movl %eax, 0xac(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xac(%rsp), %rcx callq 0x9181de movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x837385 leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x202d5a(%rip), %rsi # 0xa39c8a leaq 0x202d5d(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa4e00(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %ebp, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx leaq 0x58(%rsp), %rbp je 0x836f85 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x836fc3 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x836fba movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x8370d0 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x8370e1 movl (%r13,%r12), %eax movl %eax, 0xac(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xac(%rsp), %rcx callq 0x91833a movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x837385 leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x202c64(%rip), %rsi # 0xa39c8a leaq 0x202c67(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa4d0a(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %ebp, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx leaq 0x58(%rsp), %rbp je 0x83707b movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x8370b9 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x8370b0 movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x8371e5 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x8371f6 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x837106 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83710c movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e539e(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %rbp, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83715d movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x837164 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x24c7a9(%rip), %rsi # 0xa83931 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8371b5 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8371bb movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc jmp 0x8372f5 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83721b movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x837221 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e5289(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %rbp, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x837272 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x837279 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x24c6a6(%rip), %rsi # 0xa83943 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8372ca movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8372d0 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x837311 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi cmpq %rbp, %rdi je 0x837328 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x837344 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x837369 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x837385 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl (%r13,%r12), %r8d movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd2a addq $0x4, %r13 cmpq $0xc, %r13 jne 0x836ed0 jmp 0x837936 xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx leaq 0x24c16c(%rip), %rax # 0xa83534 movl (%rbp,%rax), %r13d movq %r14, %rdi movl %r13d, %ecx callq 0x91873c movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x837649 leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x202889(%rip), %rsi # 0xa39c8a leaq 0x20288c(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa492f(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx je 0x837452 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83748c movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x837487 movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x8374a0 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x8374b1 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x8374d6 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x8374dc movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e4fce(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x837532 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x837538 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x1c7a2e(%rip), %rsi # 0x9fef8a callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x837589 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83758f movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x8375d0 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x8375ec movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x837608 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83762d movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x837649 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r13d, %r8d callq 0x82fd2a addq $0x4, %rbp cmpq $0xc, %rbp jne 0x8373b9 xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx leaq 0x24beaf(%rip), %rax # 0xa83534 movl (%rbp,%rax), %r13d xorps %xmm0, %xmm0 cvtsi2ss %r13, %xmm0 movq %r14, %rdi callq 0x918496 movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x83790b leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x2025c7(%rip), %rsi # 0xa39c8a leaq 0x2025ca(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa466d(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx je 0x837714 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83774e movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x837749 movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x837762 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x837773 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x837798 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83779e movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e4d0c(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8377f4 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x8377fa movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x1c774b(%rip), %rsi # 0x9fef69 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83784b movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x837851 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x837892 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x8378ae movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x8378ca movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x8378ef movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83790b movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r13d, %r8d callq 0x82fd2a addq $0x4, %rbp cmpq $0xc, %rbp jne 0x837676 movq 0xc0(%rsp), %rdi callq 0x9abf3a addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x837afa movq %rax, %rbx movq 0x8(%rsp), %rdi callq 0x9abf3a jmp 0x837af2 jmp 0x837afa movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi jne 0x83799b jmp 0x8379ad jmp 0x8379aa jmp 0x8379d2 jmp 0x837afa movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x8379ad movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x8379ad movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x837af2 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x837af2 movq %rax, %rbx jmp 0x837af2 jmp 0x837ae2 jmp 0x837a2c jmp 0x837a36 jmp 0x837a27 jmp 0x837a2c jmp 0x837a94 jmp 0x837a27 jmp 0x837a8f jmp 0x837a94 jmp 0x837ae2 jmp 0x837a8f jmp 0x837a36 jmp 0x837ae2 jmp 0x837ae2 jmp 0x837ae2 jmp 0x837ae2 jmp 0x837a27 jmp 0x837a2c jmp 0x837ae2 jmp 0x837a36 jmp 0x837a8f jmp 0x837a94 movq %rax, %rbx jmp 0x837a71 movq %rax, %rbx jmp 0x837a55 jmp 0x837ae2 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x837a55 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x837a71 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x837a97 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x837a97 movq %rax, %rbx jmp 0x837abc movq %rax, %rbx movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x837abc movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x837ae5 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x837ae5 jmp 0x837ae2 jmp 0x837ae2 jmp 0x837ae2 jmp 0x837ae2 movq %rax, %rbx movq 0xc0(%rsp), %rdi callq 0x9abf3a movq %rbx, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureFilterCase::test(glu::CallLogWrapper&, tcu::ResultCollector&) const
void TextureFilterCase::test (glu::CallLogWrapper& gl, tcu::ResultCollector& result) const { const bool isPureCase = isPureIntTester(m_tester) || isPureUintTester(m_tester); const glw::GLenum initial = (m_pname == GL_TEXTURE_MAG_FILTER) ? (GL_LINEAR) : (m_pname == GL_TEXTURE_MIN_FILTER) ? (GL_NEAREST_MIPMAP_LINEAR) : (0); if (!isPureCase) { const tcu::ScopedLogSection section(m_testCtx.getLog(), "Initial", "Initial"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, initial, m_type); } { const tcu::ScopedLogSection section (m_testCtx.getLog(), "Set", "Set"); std::vector<GLenum> values; values.push_back(GL_NEAREST); values.push_back(GL_LINEAR); if (m_pname == GL_TEXTURE_MIN_FILTER) { values.push_back(GL_NEAREST_MIPMAP_NEAREST); values.push_back(GL_NEAREST_MIPMAP_LINEAR); values.push_back(GL_LINEAR_MIPMAP_NEAREST); values.push_back(GL_LINEAR_MIPMAP_LINEAR); } if (isPureCase) { for (int ndx = 0; ndx < (int)values.size(); ++ndx) { if (isPureIntTester(m_tester)) { const glw::GLint value = (glw::GLint)values[ndx]; gl.glTexParameterIiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIiv"); } else { DE_ASSERT(isPureUintTester(m_tester)); const glw::GLuint value = values[ndx]; gl.glTexParameterIuiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIuiv"); } verifyStateTextureParamInteger(result, gl, m_target, m_pname, values[ndx], m_type); } } else { for (int ndx = 0; ndx < (int)values.size(); ++ndx) { gl.glTexParameteri(m_target, m_pname, values[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameteri"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, values[ndx], m_type); } //check unit conversions with float for (int ndx = 0; ndx < (int)values.size(); ++ndx) { gl.glTexParameterf(m_target, m_pname, (GLfloat)values[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterf"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, values[ndx], m_type); } } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x80(%rdi), %r12d movl %r12d, %edi callq 0x836cd7 movb $0x1, %r13b testb %al, %al jne 0x837b55 movl %r12d, %edi callq 0x836cef movl %eax, %r13d movl 0x7c(%r15), %eax xorl %ecx, %ecx cmpl $0x2801, %eax # imm = 0x2801 movl $0x2702, %edx # imm = 0x2702 cmovnel %ecx, %edx cmpl $0x2800, %eax # imm = 0x2800 movl $0x2601, %r12d # imm = 0x2601 cmovnel %edx, %r12d testb %r13b, %r13b jne 0x837c45 movb %r13b, 0x4f(%rsp) movq 0x8(%r15), %rax movq 0x10(%rax), %r13 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x20216d(%rip), %rsi # 0xa39d0a leaq 0x20216d(%rip), %rdx # 0xa39d11 leaq 0x8(%rsp), %rdi callq 0x334070 leaq 0x60(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x20214c(%rip), %rsi # 0xa39d0a leaq 0x20214c(%rip), %rdx # 0xa39d11 leaq 0x50(%rsp), %rdi callq 0x334070 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx leaq 0x50(%rsp), %rcx movq %r13, %rsi callq 0x35a2a6 movq 0x50(%rsp), %rdi cmpq %rbp, %rdi je 0x837bfd movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi movb 0x4f(%rsp), %r13b je 0x837c1e movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r12d, %r8d callq 0x82fd2a movq 0x28(%rsp), %rdi callq 0x9abf3a movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x18(%rsp), %rbp movq %rbp, -0x10(%rbp) leaq 0x272fa5(%rip), %rsi # 0xaaac02 leaq 0x272fa1(%rip), %rdx # 0xaaac05 leaq 0x8(%rsp), %rdi callq 0x334070 leaq 0x60(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x272f84(%rip), %rsi # 0xaaac02 leaq 0x272f80(%rip), %rdx # 0xaaac05 leaq 0x50(%rsp), %rdi callq 0x334070 leaq 0xe0(%rsp), %rdi leaq 0x8(%rsp), %rdx leaq 0x50(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x50(%rsp), %rdi leaq 0x60(%rsp), %rax cmpq %rax, %rdi je 0x837cc5 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x837cdc movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 xorps %xmm0, %xmm0 movaps %xmm0, 0x70(%rsp) movq $0x0, 0x80(%rsp) movl $0x2600, 0x8(%rsp) # imm = 0x2600 movq 0x78(%rsp), %rsi testq %rsi, %rsi je 0x837d13 movl $0x2600, (%rsi) # imm = 0x2600 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837d22 leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a movl $0x2601, 0x8(%rsp) # imm = 0x2601 movq 0x78(%rsp), %rsi cmpq 0x80(%rsp), %rsi je 0x837d4a movl $0x2601, (%rsi) # imm = 0x2601 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837d59 leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a cmpl $0x2801, 0x7c(%r15) # imm = 0x2801 jne 0x837e43 movl $0x2700, 0x8(%rsp) # imm = 0x2700 movq 0x78(%rsp), %rsi cmpq 0x80(%rsp), %rsi je 0x837d8f movl $0x2700, (%rsi) # imm = 0x2700 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837d9e leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a movl $0x2702, 0x8(%rsp) # imm = 0x2702 movq 0x78(%rsp), %rsi cmpq 0x80(%rsp), %rsi je 0x837dc6 movl $0x2702, (%rsi) # imm = 0x2702 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837dd5 leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a movl $0x2701, 0x8(%rsp) # imm = 0x2701 movq 0x78(%rsp), %rsi cmpq 0x80(%rsp), %rsi je 0x837dfd movl $0x2701, (%rsi) # imm = 0x2701 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837e0c leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a movl $0x2703, 0x8(%rsp) # imm = 0x2703 movq 0x78(%rsp), %rsi cmpq 0x80(%rsp), %rsi je 0x837e34 movl $0x2703, (%rsi) # imm = 0x2703 addq $0x4, %rsi movq %rsi, 0x78(%rsp) jmp 0x837e43 leaq 0x70(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x34051a movq 0x70(%rsp), %r12 movq 0x78(%rsp), %rax subq %r12, %rax shrq $0x2, %rax testb %r13b, %r13b je 0x83839a testl %eax, %eax jle 0x838977 xorl %r13d, %r13d movl 0x80(%r15), %edi callq 0x836cd7 testb %al, %al je 0x837f8e movl (%r12,%r13,4), %eax movl %eax, 0xcc(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xcc(%rsp), %rcx callq 0x9181de movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x838353 leaq 0xb8(%rsp), %rax movq %rax, 0xa8(%rsp) leaq 0xa8(%rsp), %rdi leaq 0x201dba(%rip), %rsi # 0xa39c8a leaq 0x201dbd(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa3e60(%rip), %rax # 0x8dbd43 movq %rax, 0xd0(%rsp) movl %ebp, 0xd8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x33b01c movq 0xa8(%rsp), %rcx movl $0xf, %esi leaq 0xb8(%rsp), %rax cmpq %rax, %rcx leaq 0x60(%rsp), %r12 leaq 0x18(%rsp), %rbp je 0x837f33 movq 0xb8(%rsp), %rsi movq 0xb0(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x837f74 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x837f6b movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x8380a0 movq 0x88(%rsp), %rsi leaq 0xa8(%rsp), %rdi callq 0x325af0 jmp 0x8380b1 movl (%r12,%r13,4), %eax movl %eax, 0xcc(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xcc(%rsp), %rcx callq 0x91833a movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x838353 leaq 0xb8(%rsp), %rax movq %rax, 0xa8(%rsp) leaq 0xa8(%rsp), %rdi leaq 0x201ca8(%rip), %rsi # 0xa39c8a leaq 0x201cab(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa3d4e(%rip), %rax # 0x8dbd43 movq %rax, 0xd0(%rsp) movl %ebp, 0xd8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x33b01c movq 0xa8(%rsp), %rcx movl $0xf, %esi leaq 0xb8(%rsp), %rax cmpq %rax, %rcx leaq 0x60(%rsp), %r12 leaq 0x18(%rsp), %rbp je 0x838045 movq 0xb8(%rsp), %rsi movq 0xb0(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x838086 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83807d movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x8381b2 movq 0x88(%rsp), %rsi leaq 0xa8(%rsp), %rdi callq 0x325af0 jmp 0x8381c3 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x8380d6 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8380dc movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x28(%rsp), %rdi leaq 0x1e43ce(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %r12, 0x50(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83812d movq %rdx, 0x50(%rsp) movq (%rcx), %rdx movq %rdx, 0x60(%rsp) jmp 0x838135 movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x58(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x50(%rsp), %rdi leaq 0x24b7d8(%rip), %rsi # 0xa83931 callq 0x3259c0 movq %rbp, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838181 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x838188 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x9a94bc jmp 0x8382bf leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x8381e8 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8381ee movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x28(%rsp), %rdi leaq 0x1e42bc(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %r12, 0x50(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83823f movq %rdx, 0x50(%rsp) movq (%rcx), %rdx movq %rdx, 0x60(%rsp) jmp 0x838247 movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x58(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x50(%rsp), %rdi leaq 0x24b6d8(%rip), %rsi # 0xa83943 callq 0x3259c0 movq %rbp, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838293 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83829a movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x9a94bc movq 0x8(%rsp), %rdi cmpq %rbp, %rdi je 0x8382d6 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x50(%rsp), %rdi cmpq %r12, %rdi je 0x8382ed movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x838309 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83832e movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x838353 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movq 0x70(%rsp), %rax movl (%rax,%r13,4), %r8d movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd2a incq %r13 movq 0x70(%rsp), %r12 movq 0x78(%rsp), %rax subq %r12, %rax shrq $0x2, %rax cltq cmpq %rax, %r13 jl 0x837e68 jmp 0x838977 testl %eax, %eax jle 0x83867c xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movl (%r12,%rbp,4), %ecx movq %r14, %rdi callq 0x91873c movq %r14, %rdi callq 0x8f77be leaq 0xb8(%rsp), %r12 movl %eax, %r13d testl %eax, %eax je 0x83863a movq %r12, 0xa8(%rsp) leaq 0xa8(%rsp), %rdi leaq 0x2018a0(%rip), %rsi # 0xa39c8a leaq 0x2018a3(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa3946(%rip), %rax # 0x8dbd43 movq %rax, 0xd0(%rsp) movl %r13d, 0xd8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x33b01c movq 0xa8(%rsp), %rcx movl $0xf, %esi cmpq %r12, %rcx je 0x83843c movq 0xb8(%rsp), %rsi movq 0xb0(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x838479 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x838474 movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x838490 movq 0x88(%rsp), %rsi leaq 0xa8(%rsp), %rdi callq 0x325af0 jmp 0x8384a1 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x8384c6 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8384cc movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x28(%rsp), %rdi leaq 0x1e3fde(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x60(%rsp), %rsi movq %rsi, 0x50(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838522 movq %rdx, 0x50(%rsp) movq (%rcx), %rdx movq %rdx, 0x60(%rsp) jmp 0x838528 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x58(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x50(%rsp), %rdi leaq 0x1c6a3e(%rip), %rsi # 0x9fef8a callq 0x3259c0 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838579 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83857f movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x9a94bc movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x8385c0 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x50(%rsp), %rdi leaq 0x60(%rsp), %rax cmpq %rax, %rdi je 0x8385dc movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x8385f8 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83861d movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi cmpq %r12, %rdi je 0x83863a movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movq 0x70(%rsp), %rax movl (%rax,%rbp,4), %r8d movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd2a incq %rbp movq 0x70(%rsp), %r12 movq 0x78(%rsp), %rax subq %r12, %rax shrq $0x2, %rax cltq cmpq %rax, %rbp jl 0x8383a4 movq 0x70(%rsp), %rax movq 0x78(%rsp), %rcx subq %rax, %rcx shrq $0x2, %rcx testl %ecx, %ecx leaq 0xb8(%rsp), %r12 jle 0x838977 xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movl (%rax,%rbp,4), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movq %r14, %rdi callq 0x918496 movq %r14, %rdi callq 0x8f77be movl %eax, %r13d testl %eax, %eax je 0x838934 movq %r12, 0xa8(%rsp) leaq 0xa8(%rsp), %rdi leaq 0x2015a6(%rip), %rsi # 0xa39c8a leaq 0x2015a9(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa364c(%rip), %rax # 0x8dbd43 movq %rax, 0xd0(%rsp) movl %r13d, 0xd8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x33b01c movq 0xa8(%rsp), %rcx movl $0xf, %esi cmpq %r12, %rcx je 0x838736 movq 0xb8(%rsp), %rsi movq 0xb0(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x838773 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83876e movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x83878a movq 0x88(%rsp), %rsi leaq 0xa8(%rsp), %rdi callq 0x325af0 jmp 0x83879b leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x8387c0 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x8387c6 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x28(%rsp), %rdi leaq 0x1e3ce4(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x60(%rsp), %rsi movq %rsi, 0x50(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83881c movq %rdx, 0x50(%rsp) movq (%rcx), %rdx movq %rdx, 0x60(%rsp) jmp 0x838822 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x58(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x50(%rsp), %rdi leaq 0x1c6723(%rip), %rsi # 0x9fef69 callq 0x3259c0 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838873 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x838879 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x9a94bc movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x8388ba movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x50(%rsp), %rdi leaq 0x60(%rsp), %rax cmpq %rax, %rdi je 0x8388d6 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x8388f2 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x838917 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi cmpq %r12, %rdi je 0x838934 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movq 0x70(%rsp), %rax movl (%rax,%rbp,4), %r8d movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd2a incq %rbp movq 0x70(%rsp), %rax movq 0x78(%rsp), %rcx subq %rax, %rcx shrq $0x2, %rcx movslq %ecx, %rcx cmpq %rcx, %rbp jl 0x83869f movq 0x70(%rsp), %rdi testq %rdi, %rdi je 0x838991 movq 0x80(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xe0(%rsp), %rdi callq 0x9abf3a addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838ba3 movq %rax, %rbx movq 0x28(%rsp), %rdi callq 0x9abf3a jmp 0x838b9b jmp 0x838ba3 movq %rax, %rbx movq 0x50(%rsp), %rdi cmpq %rbp, %rdi jne 0x838a14 jmp 0x838a26 jmp 0x838a23 jmp 0x838a4b jmp 0x838ba3 movq %rax, %rbx movq 0x50(%rsp), %rdi leaq 0x60(%rsp), %rax cmpq %rax, %rdi je 0x838a26 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x838a26 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x838b9b movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x838b9b movq %rax, %rbx jmp 0x838b9b jmp 0x838b71 jmp 0x838ab2 jmp 0x838a7b jmp 0x838aad jmp 0x838ab2 jmp 0x838b1a jmp 0x838aad jmp 0x838b15 jmp 0x838b1a jmp 0x838b71 jmp 0x838b15 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %rbp, %rdi jne 0x838ace jmp 0x838adb jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838aad jmp 0x838ab2 jmp 0x838b71 jmp 0x838abc jmp 0x838b15 jmp 0x838b1a movq %rax, %rbx jmp 0x838af7 movq %rax, %rbx jmp 0x838adb jmp 0x838b71 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x838adb movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x50(%rsp), %rdi leaq 0x60(%rsp), %rax cmpq %rax, %rdi je 0x838af7 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x838b1d movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x838b1d movq %rax, %rbx jmp 0x838b42 movq %rax, %rbx movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x838b42 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x838b74 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x838b74 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 jmp 0x838b71 movq %rax, %rbx movq 0x70(%rsp), %rdi testq %rdi, %rdi je 0x838b8e movq 0x80(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0xe0(%rsp), %rdi callq 0x9abf3a movq %rbx, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureLODCase::test(glu::CallLogWrapper&, tcu::ResultCollector&) const
void TextureLODCase::test (glu::CallLogWrapper& gl, tcu::ResultCollector& result) const { const bool isPureCase = isPureIntTester(m_tester) || isPureUintTester(m_tester); const int initialValue = (m_pname == GL_TEXTURE_MIN_LOD) ? (-1000) : (m_pname == GL_TEXTURE_MAX_LOD) ? (1000) : (-1); if ((querySupportsSigned(m_type) || initialValue >= 0) && !isPureCase) { const tcu::ScopedLogSection section(m_testCtx.getLog(), "Initial", "Initial"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, initialValue, m_type); } { const tcu::ScopedLogSection section (m_testCtx.getLog(), "Set", "Set"); const int numIterations = 20; de::Random rnd (0xabcdef); if (isPureCase) { if (isPureIntTester(m_tester)) { for (int ndx = 0; ndx < numIterations; ++ndx) { const GLint ref = rnd.getInt(-1000, 1000); gl.glTexParameterIiv(m_target, m_pname, &ref); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIiv"); verifyStateTextureParamFloat(result, gl, m_target, m_pname, (float)ref, m_type); } } else { DE_ASSERT(isPureUintTester(m_tester)); for (int ndx = 0; ndx < numIterations; ++ndx) { const GLuint ref = (glw::GLuint)rnd.getInt(0, 1000); gl.glTexParameterIuiv(m_target, m_pname, &ref); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIuiv"); verifyStateTextureParamFloat(result, gl, m_target, m_pname, (float)ref, m_type); } } } else { const int minLimit = (querySupportsSigned(m_type)) ? (-1000) : (0); for (int ndx = 0; ndx < numIterations; ++ndx) { const GLfloat ref = rnd.getFloat((float)minLimit, 1000.f); gl.glTexParameterf(m_target, m_pname, ref); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterf"); verifyStateTextureParamFloat(result, gl, m_target, m_pname, ref, m_type); } // check unit conversions with int for (int ndx = 0; ndx < numIterations; ++ndx) { const GLint ref = rnd.getInt(minLimit, 1000); gl.glTexParameteri(m_target, m_pname, ref); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameteri"); verifyStateTextureParamFloat(result, gl, m_target, m_pname, (float)ref, m_type); } } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x80(%rdi), %r12d movl %r12d, %edi callq 0x836cd7 movb $0x1, %bpl testb %al, %al jne 0x838bfe movl %r12d, %edi callq 0x836cef movl %eax, %ebp movl 0x7c(%r15), %ecx movl 0x84(%r15), %edx xorl %eax, %eax cmpl $0x813b, %ecx # imm = 0x813B setne %al movl %eax, %esi negl %esi orl $0x3e8, %esi # imm = 0x3E8 cmpl $0x813a, %ecx # imm = 0x813A movl $0xfffffc18, %r12d # imm = 0xFFFFFC18 cmovnel %esi, %r12d cmpl $0x18, %edx sete %cl cmpl $0x25, %edx sete %dl testb %bpl, %bpl jne 0x838d0d orb %dl, %cl andb %cl, %al jne 0x838d0d movq 0x8(%r15), %rax movq 0x10(%rax), %r13 leaq 0x58(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x2010a5(%rip), %rsi # 0xa39d0a leaq 0x2010a5(%rip), %rdx # 0xa39d11 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x201084(%rip), %rsi # 0xa39d0a leaq 0x201084(%rip), %rdx # 0xa39d11 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0x8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x28(%rsp), %rcx movq %r13, %rsi callq 0x35a2a6 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x838cca movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x838ce6 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r12d, %r8d callq 0x82fd2a movq 0x8(%rsp), %rdi callq 0x9abf3a movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x58(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x271edd(%rip), %rsi # 0xaaac02 leaq 0x271ed9(%rip), %rdx # 0xaaac05 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x271ebc(%rip), %rsi # 0xaaac02 leaq 0x271eb8(%rip), %rdx # 0xaaac05 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0xd0(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x28(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x838d8d movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x838da9 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xd8(%rsp), %rdi movl $0xabcdef, %esi # imm = 0xABCDEF callq 0x9fa2bc testb %bpl, %bpl je 0x8393a5 movl 0x80(%r15), %edi callq 0x836cd7 leaq 0x98(%rsp), %r13 movl $0x14, %ebp testb %al, %al je 0x8390c7 leaq 0xd8(%rsp), %rdi callq 0x9fa2ea movl %eax, %ecx imulq $0x603538b, %rcx, %rcx # imm = 0x603538B shrq $0x20, %rcx movl %eax, %edx subl %ecx, %edx shrl %edx addl %ecx, %edx shrl $0xa, %edx imull $0x7d1, %edx, %ecx # imm = 0x7D1 negl %ecx addl %ecx, %eax addl $0xfffffc18, %eax # imm = 0xFFFFFC18 movl %eax, 0xa8(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xa8(%rsp), %rcx callq 0x9181de movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x839094 movq %r13, 0x88(%rsp) leaq 0x88(%rsp), %rdi leaq 0x200e28(%rip), %rsi # 0xa39c8a leaq 0x200e2b(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa2ece(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x68(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x88(%rsp), %rcx movl $0xf, %esi cmpq %r13, %rcx je 0x838eb1 movq 0x98(%rsp), %rsi movq 0x90(%rsp), %r8 movq 0x70(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x838ee2 movl $0xf, %esi leaq 0x78(%rsp), %rdi cmpq %rdi, 0x68(%rsp) je 0x838edd movq 0x78(%rsp), %rsi cmpq %rsi, %rax jbe 0x838ef6 movq 0x68(%rsp), %rsi leaq 0x88(%rsp), %rdi callq 0x325af0 jmp 0x838f04 leaq 0x68(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x838f29 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x838f2f movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e357b(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838f85 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x838f8b movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x24a982(%rip), %rsi # 0xa83931 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x838fdc movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x838fe2 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x48(%rsp), %rsi callq 0x9a94bc movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839023 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83903f movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83905b movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x839077 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi cmpq %r13, %rdi je 0x839094 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx xorps %xmm0, %xmm0 cvtsi2ssl 0xa8(%rsp), %xmm0 movl 0x84(%r15), %r8d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd74 decl %ebp jne 0x838de5 jmp 0x8399b3 leaq 0xd8(%rsp), %rdi callq 0x9fa2ea movl %eax, %ecx imulq $0x5e1d27b, %rcx, %rcx # imm = 0x5E1D27B shrq $0x20, %rcx movl %eax, %edx subl %ecx, %edx shrl %edx addl %ecx, %edx shrl $0x9, %edx imull $0x3e9, %edx, %ecx # imm = 0x3E9 subl %ecx, %eax movl %eax, 0xa8(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xa8(%rsp), %rcx callq 0x91833a movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x83936f movq %r13, 0x88(%rsp) leaq 0x88(%rsp), %rdi leaq 0x200b4d(%rip), %rsi # 0xa39c8a leaq 0x200b50(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa2bf3(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x68(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x88(%rsp), %rcx movl $0xf, %esi cmpq %r13, %rcx je 0x83918c movq 0x98(%rsp), %rsi movq 0x90(%rsp), %r8 movq 0x70(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x8391bd movl $0xf, %esi leaq 0x78(%rsp), %rdi cmpq %rdi, 0x68(%rsp) je 0x8391b8 movq 0x78(%rsp), %rsi cmpq %rsi, %rax jbe 0x8391d1 movq 0x68(%rsp), %rsi leaq 0x88(%rsp), %rdi callq 0x325af0 jmp 0x8391df leaq 0x68(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x839204 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83920a movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e32a0(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x839260 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x839266 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x24a6b9(%rip), %rsi # 0xa83943 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8392b7 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x8392bd movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x48(%rsp), %rsi callq 0x9a94bc movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x8392fe movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83931a movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x839336 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x839352 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi cmpq %r13, %rdi je 0x83936f movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0xa8(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movl 0x84(%r15), %r8d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd74 decl %ebp jne 0x8390c7 jmp 0x8399b3 movl 0x84(%r15), %eax xorl %ecx, %ecx cmpl $0x25, %eax movl $0xfffffc18, %edx # imm = 0xFFFFFC18 cmovel %ecx, %edx cmpl $0x18, %eax cmovel %ecx, %edx movl %edx, 0xc4(%rsp) cvtsi2ss %edx, %xmm0 movss 0x2198e6(%rip), %xmm1 # 0xa52cb8 movss %xmm0, 0xcc(%rsp) subss %xmm0, %xmm1 movss %xmm1, 0xc8(%rsp) movl $0x14, %r13d leaq 0x88(%rsp), %r12 leaq 0xd8(%rsp), %rdi callq 0x9fa367 mulss 0xc8(%rsp), %xmm0 addss 0xcc(%rsp), %xmm0 movss %xmm0, 0xac(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi movss 0xac(%rsp), %xmm0 callq 0x918496 movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x83969f leaq 0x98(%rsp), %rax movq %rax, 0x88(%rsp) movq %r12, %rdi leaq 0x200827(%rip), %rsi # 0xa39c8a leaq 0x20082a(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa28cd(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %ebp, 0xb8(%rsp) leaq 0x68(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x88(%rsp), %rcx movl $0xf, %esi leaq 0x98(%rsp), %rax cmpq %rax, %rcx je 0x8394b9 movq 0x98(%rsp), %rsi movq 0x90(%rsp), %r8 movq 0x70(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x8394ea movl $0xf, %esi leaq 0x78(%rsp), %rdi cmpq %rdi, 0x68(%rsp) je 0x8394e5 movq 0x78(%rsp), %rsi cmpq %rsi, %rax jbe 0x8394f9 movq 0x68(%rsp), %rsi movq %r12, %rdi callq 0x325af0 jmp 0x839507 leaq 0x68(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83952c movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x839532 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e2f78(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x839588 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83958e movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x1c59b7(%rip), %rsi # 0x9fef69 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8395df movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x8395e5 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x48(%rsp), %rsi callq 0x9a94bc movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839626 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x839642 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83965e movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83967a movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83969f movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r8d movq %rbx, %rdi movq %r14, %rsi movss 0xac(%rsp), %xmm0 callq 0x82fd74 decl %r13d jne 0x8393f6 movl $0x3e9, %eax # imm = 0x3E9 subl 0xc4(%rsp), %eax movl %eax, 0xac(%rsp) movl $0x14, %r13d leaq 0xd8(%rsp), %rdi callq 0x9fa2ea xorl %edx, %edx divl 0xac(%rsp) movl %edx, %ebp addl 0xc4(%rsp), %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi movl %ebp, %ecx callq 0x91873c movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x839989 leaq 0x98(%rsp), %rax movq %rax, 0x88(%rsp) leaq 0x88(%rsp), %rdi leaq 0x200543(%rip), %rsi # 0xa39c8a leaq 0x200546(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa25e9(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x68(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x88(%rsp), %rcx movl $0xf, %esi leaq 0x98(%rsp), %rax cmpq %rax, %rcx je 0x83979e movq 0x98(%rsp), %rsi movq 0x90(%rsp), %r8 movq 0x70(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x8397cf movl $0xf, %esi leaq 0x78(%rsp), %rdi cmpq %rdi, 0x68(%rsp) je 0x8397ca movq 0x78(%rsp), %rsi cmpq %rsi, %rax jbe 0x8397e3 movq 0x68(%rsp), %rsi leaq 0x88(%rsp), %rdi callq 0x325af0 jmp 0x8397f1 leaq 0x68(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x839816 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83981c movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e2c8e(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x839872 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x839878 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x1c56ee(%rip), %rsi # 0x9fef8a callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x8398c9 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x8398cf movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x48(%rsp), %rsi callq 0x9a94bc movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839910 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83992c movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x839948 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x839964 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x839989 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx xorps %xmm0, %xmm0 cvtsi2ss %ebp, %xmm0 movl 0x84(%r15), %r8d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd74 decl %r13d jne 0x8396e4 movq 0xd0(%rsp), %rdi callq 0x9abf3a addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x839bf1 movq %rax, %rbx movq 0x8(%rsp), %rdi callq 0x9abf3a jmp 0x839be9 jmp 0x839bf1 jmp 0x8399fe jmp 0x839a1f jmp 0x839a47 jmp 0x839bf1 jmp 0x839bd9 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x839a22 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x839a22 movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839be9 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x839be9 movq %rax, %rbx jmp 0x839be9 jmp 0x839a51 movq %rax, %rbx jmp 0x839ac7 jmp 0x839a58 movq %rax, %rbx jmp 0x839aab jmp 0x839a5f movq %rax, %rbx jmp 0x839a8f jmp 0x839bd9 jmp 0x839bd9 jmp 0x839a70 movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839a8f movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x839aab movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x839ac7 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x839aea movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x839aea jmp 0x839ae7 movq %rax, %rbx movq 0x88(%rsp), %rdi cmpq %r13, %rdi jne 0x839bbd jmp 0x839bdc jmp 0x839bd9 jmp 0x839bd9 jmp 0x839b1c jmp 0x839b21 jmp 0x839b26 jmp 0x839bd9 jmp 0x839b30 jmp 0x839ba5 movq %rax, %rbx jmp 0x839b87 movq %rax, %rbx jmp 0x839b6b movq %rax, %rbx jmp 0x839b4f jmp 0x839bd9 movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x839b4f movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x839b6b movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x839b87 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x839ba8 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x839ba8 movq %rax, %rbx movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x839bdc movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x839bdc jmp 0x839bd9 jmp 0x839bd9 jmp 0x839bd9 jmp 0x839bd9 jmp 0x839bd9 movq %rax, %rbx movq 0xd0(%rsp), %rdi callq 0x9abf3a movq %rbx, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::TextureStateQueryTests::(anonymous namespace)::TextureCompareModeCase::test(glu::CallLogWrapper&, tcu::ResultCollector&) const
void TextureCompareModeCase::test (glu::CallLogWrapper& gl, tcu::ResultCollector& result) const { const bool isPureCase = isPureIntTester(m_tester) || isPureUintTester(m_tester); if (!isPureCase) { const tcu::ScopedLogSection section(m_testCtx.getLog(), "Initial", "Initial"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, GL_NONE, m_type); } { const tcu::ScopedLogSection section (m_testCtx.getLog(), "Set", "Set"); const GLenum modes[] = {GL_COMPARE_REF_TO_TEXTURE, GL_NONE}; if (isPureCase) { for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(modes); ++ndx) { if (isPureIntTester(m_tester)) { const glw::GLint value = (glw::GLint)modes[ndx]; gl.glTexParameterIiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIiv"); } else { DE_ASSERT(isPureUintTester(m_tester)); const glw::GLuint value = modes[ndx]; gl.glTexParameterIuiv(m_target, m_pname, &value); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterIuiv"); } verifyStateTextureParamInteger(result, gl, m_target, m_pname, modes[ndx], m_type); } } else { for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(modes); ++ndx) { gl.glTexParameteri(m_target, m_pname, modes[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameteri"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, modes[ndx], m_type); } //check unit conversions with float for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(modes); ++ndx) { gl.glTexParameterf(m_target, m_pname, (GLfloat)modes[ndx]); GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glTexParameterf"); verifyStateTextureParamInteger(result, gl, m_target, m_pname, modes[ndx], m_type); } } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x80(%rdi), %r12d movl %r12d, %edi callq 0x836cd7 movb $0x1, %bpl testb %al, %al jne 0x83b252 movl %r12d, %edi callq 0x836cef movl %eax, %ebp testb %bpl, %bpl jne 0x83b316 movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x1fea97(%rip), %rsi # 0xa39d0a leaq 0x1fea97(%rip), %rdx # 0xa39d11 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x1fea76(%rip), %rsi # 0xa39d0a leaq 0x1fea76(%rip), %rdx # 0xa39d11 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx leaq 0x48(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x83b2d3 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83b2ef movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi xorl %r8d, %r8d callq 0x82fd2a movq 0x8(%rsp), %rdi callq 0x9abf3a movq 0x8(%r15), %rax movq 0x10(%rax), %r12 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x26f8d4(%rip), %rsi # 0xaaac02 leaq 0x26f8d0(%rip), %rdx # 0xaaac05 leaq 0x28(%rsp), %rdi callq 0x334070 leaq 0x58(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x26f8b3(%rip), %rsi # 0xaaac02 leaq 0x26f8af(%rip), %rdx # 0xaaac05 leaq 0x48(%rsp), %rdi callq 0x334070 leaq 0xc0(%rsp), %rdi leaq 0x28(%rsp), %rdx leaq 0x48(%rsp), %rcx movq %r12, %rsi callq 0x35a2a6 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x83b396 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83b3b2 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 testb %bpl, %bpl je 0x83b8ac xorl %r13d, %r13d leaq 0x248607(%rip), %r12 # 0xa839cc movl 0x80(%r15), %edi callq 0x836cd7 testb %al, %al je 0x83b4cf movl (%r13,%r12), %eax movl %eax, 0xac(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xac(%rsp), %rcx callq 0x9181de movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x83b87a leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x1fe865(%rip), %rsi # 0xa39c8a leaq 0x1fe868(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa090b(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %ebp, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx leaq 0x58(%rsp), %rbp je 0x83b47a movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83b4b8 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83b4af movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x83b5c5 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x83b5d6 movl (%r13,%r12), %eax movl %eax, 0xac(%rsp) movl 0x78(%r15), %esi movl 0x7c(%r15), %edx movq %r14, %rdi leaq 0xac(%rsp), %rcx callq 0x91833a movq %r14, %rdi callq 0x8f77be movl %eax, %ebp testl %eax, %eax je 0x83b87a leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x1fe76f(%rip), %rsi # 0xa39c8a leaq 0x1fe772(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa0815(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %ebp, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx leaq 0x58(%rsp), %rbp je 0x83b570 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83b5ae movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83b5a5 movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x83b6da movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x83b6eb leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83b5fb movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83b601 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e0ea9(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %rbp, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83b652 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x83b659 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x2482b4(%rip), %rsi # 0xa83931 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83b6aa movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83b6b0 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc jmp 0x83b7ea leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83b710 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83b716 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e0d94(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 movq %rbp, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83b767 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x83b76e movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x2481b1(%rip), %rsi # 0xa83943 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83b7bf movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83b7c5 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83b806 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi cmpq %rbp, %rdi je 0x83b81d movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83b839 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83b85e movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83b87a movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl (%r13,%r12), %r8d movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi callq 0x82fd2a addq $0x4, %r13 cmpq $0x4, %r13 je 0x83b3c5 jmp 0x83be2b xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx leaq 0x24810f(%rip), %rax # 0xa839cc movl (%rbp,%rax), %r13d movq %r14, %rdi movl %r13d, %ecx callq 0x91873c movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x83bb3e leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x1fe394(%rip), %rsi # 0xa39c8a leaq 0x1fe397(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa043a(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx je 0x83b947 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83b981 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83b97c movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x83b995 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x83b9a6 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83b9cb movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83b9d1 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e0ad9(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83ba27 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x83ba2d movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x1c3539(%rip), %rsi # 0x9fef8a callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83ba7e movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83ba84 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83bac5 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x83bae1 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83bafd movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83bb22 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83bb3e movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r13d, %r8d callq 0x82fd2a addq $0x4, %rbp cmpq $0x4, %rbp je 0x83b8ae xorl %ebp, %ebp movl 0x78(%r15), %esi movl 0x7c(%r15), %edx leaq 0x247e52(%rip), %rax # 0xa839cc movl (%rbp,%rax), %r13d xorps %xmm0, %xmm0 cvtsi2ss %r13, %xmm0 movq %r14, %rdi callq 0x918496 movq %r14, %rdi callq 0x8f77be movl %eax, %r12d testl %eax, %eax je 0x83be00 leaq 0x78(%rsp), %rax movq %rax, 0x68(%rsp) leaq 0x68(%rsp), %rdi leaq 0x1fe0d2(%rip), %rsi # 0xa39c8a leaq 0x1fe0d5(%rip), %rdx # 0xa39c94 callq 0x334070 leaq 0xa0178(%rip), %rax # 0x8dbd43 movq %rax, 0xb0(%rsp) movl %r12d, 0xb8(%rsp) leaq 0x88(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x33b01c movq 0x68(%rsp), %rcx movl $0xf, %esi leaq 0x78(%rsp), %rax cmpq %rax, %rcx je 0x83bc09 movq 0x78(%rsp), %rsi movq 0x70(%rsp), %r8 movq 0x90(%rsp), %rdx leaq (%rdx,%r8), %rax cmpq %rsi, %rax jbe 0x83bc43 movl $0xf, %esi leaq 0x98(%rsp), %rdi cmpq %rdi, 0x88(%rsp) je 0x83bc3e movq 0x98(%rsp), %rsi cmpq %rsi, %rax jbe 0x83bc57 movq 0x88(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x325af0 jmp 0x83bc68 leaq 0x88(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x325230 leaq 0x18(%rsp), %rsi movq %rsi, 0x8(%rsp) movq (%rax), %rdx leaq 0x10(%rax), %rcx cmpq %rcx, %rdx je 0x83bc8d movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x83bc93 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rdi leaq 0x1e0817(%rip), %rsi # 0xa1c4d3 callq 0x3259c0 leaq 0x58(%rsp), %rsi movq %rsi, 0x48(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83bce9 movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x83bcef movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x48(%rsp), %rdi leaq 0x1c3256(%rip), %rsi # 0x9fef69 callq 0x3259c0 leaq 0x38(%rsp), %rsi movq %rsi, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x83bd40 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x83bd46 movups (%rcx), %xmm0 movups %xmm0, (%rsi) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x28(%rsp), %rsi callq 0x9a94bc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83bd87 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x83bda3 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83bdbf movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83bde4 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83be00 movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 movl 0x78(%r15), %edx movl 0x7c(%r15), %ecx movl 0x84(%r15), %r9d movq %rbx, %rdi movq %r14, %rsi movl %r13d, %r8d callq 0x82fd2a addq $0x4, %rbp cmpq $0x4, %rbp je 0x83bb6b movq 0xc0(%rsp), %rdi callq 0x9abf3a addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x83bfef movq %rax, %rbx movq 0x8(%rsp), %rdi callq 0x9abf3a jmp 0x83bfe7 jmp 0x83bfef movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi jne 0x83be90 jmp 0x83bea2 jmp 0x83be9f jmp 0x83bec7 jmp 0x83bfef movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x83bea2 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x83bea2 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83bfe7 movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x83bfe7 movq %rax, %rbx jmp 0x83bfe7 jmp 0x83bfd7 jmp 0x83bf21 jmp 0x83bf2b jmp 0x83bf1c jmp 0x83bf21 jmp 0x83bf89 jmp 0x83bf1c jmp 0x83bf84 jmp 0x83bf89 jmp 0x83bfd7 jmp 0x83bf84 jmp 0x83bf2b jmp 0x83bfd7 jmp 0x83bfd7 jmp 0x83bfd7 jmp 0x83bfd7 jmp 0x83bf1c jmp 0x83bf21 jmp 0x83bfd7 jmp 0x83bf2b jmp 0x83bf84 jmp 0x83bf89 movq %rax, %rbx jmp 0x83bf66 movq %rax, %rbx jmp 0x83bf4a jmp 0x83bfd7 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x83bf4a movq 0x38(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x83bf66 movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x83bf8c movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x83bf8c movq %rax, %rbx jmp 0x83bfb1 movq %rax, %rbx movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x83bfb1 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x83bfda movq 0x78(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x83bfda jmp 0x83bfd7 jmp 0x83bfd7 jmp 0x83bfd7 jmp 0x83bfd7 movq %rax, %rbx movq 0xc0(%rsp), %rdi callq 0x9abf3a movq %rbx, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsTextureStateQueryTests.cpp
deqp::gls::ub::ShaderInterface::findStruct(char const*) const
const StructType* ShaderInterface::findStruct (const char* name) const { std::vector<StructType*>::const_iterator pos = std::find_if(m_structs.begin(), m_structs.end(), StructNameEquals(name)); return pos != m_structs.end() ? *pos : DE_NULL; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq (%rdi), %r14 movq 0x8(%rdi), %r15 leaq 0x8(%rsp), %r12 leaq 0x7(%rsp), %rdx movq %r12, %rdi callq 0x333da2 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x857567 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x84f5ff movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 cmpq 0x8(%rbx), %r14 je 0x84f60a movq (%r14), %rax jmp 0x84f60c xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x84f636 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::UniformBlockCase::checkLayoutIndices(deqp::gls::ub::UniformLayout const&) const
bool UniformBlockCase::checkLayoutIndices (const UniformLayout& layout) const { TestLog& log = m_testCtx.getLog(); int numUniforms = (int)layout.uniforms.size(); int numBlocks = (int)layout.blocks.size(); bool isOk = true; // Check uniform block indices. for (int uniformNdx = 0; uniformNdx < numUniforms; uniformNdx++) { const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx]; if (uniform.blockNdx < 0 || !deInBounds32(uniform.blockNdx, 0, numBlocks)) { log << TestLog::Message << "Error: Invalid block index in uniform '" << uniform.name << "'" << TestLog::EndMessage; isOk = false; } } // Check active uniforms. for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) { const BlockLayoutEntry& block = layout.blocks[blockNdx]; for (vector<int>::const_iterator uniformIter = block.activeUniformIndices.begin(); uniformIter != block.activeUniformIndices.end(); uniformIter++) { if (!deInBounds32(*uniformIter, 0, numUniforms)) { log << TestLog::Message << "Error: Invalid active uniform index " << *uniformIter << " in block '" << block.name << "'" << TestLog::EndMessage; isOk = false; } } } return isOk; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x198, %rsp # imm = 0x198 movq 0x8(%rdi), %rax movq 0x10(%rax), %r13 movq 0x8(%rsi), %rax movq 0x20(%rsi), %rbp subq 0x18(%rsi), %rbp shrq $0x6, %rbp movq %rsi, 0x10(%rsp) subq (%rsi), %rax shrq $0x6, %rax movq %rax, 0x8(%rsp) testl %ebp, %ebp jle 0x8522e8 leaq 0x20(%rsp), %rbx movl %ebp, %r15d andl $0x7fffffff, %r15d # imm = 0x7FFFFFFF movb $0x1, %al xorl %r12d, %r12d movq 0x10(%rsp), %rcx movq 0x18(%rcx), %r14 movl 0x28(%r14,%r12), %ecx testl %ecx, %ecx js 0x852264 cmpl 0x8(%rsp), %ecx jl 0x8522d9 movq %r13, 0x18(%rsp) movq %rbx, %rdi callq 0x325e00 movl $0x27, %edx movq %rbx, %rdi leaq 0x232562(%rip), %rsi # 0xa847e2 callq 0x325e70 movq (%r14,%r12), %rsi movq 0x8(%r14,%r12), %rdx movq %rbx, %rdi callq 0x325e70 movl $0x1, %edx movq %rbx, %rdi leaq 0x238057(%rip), %rsi # 0xa8a2fc callq 0x325e70 leaq 0x18(%rsp), %rdi leaq 0x250fd7(%rip), %rsi # 0xaa328d callq 0x9aba2a movq %rbx, %rdi movq 0x40a863(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x90(%rsp), %rdi callq 0x325a80 xorl %eax, %eax addq $0x40, %r12 decq %r15 jne 0x85224c jmp 0x8522ea movb $0x1, %al movq 0x8(%rsp), %rcx testl %ecx, %ecx jle 0x8523ed leaq 0x20(%rsp), %r14 andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF xorl %ebx, %ebx movq %rcx, 0x8(%rsp) movq 0x10(%rsp), %rcx movq (%rcx), %r15 movq %rbx, %rcx shlq $0x6, %rcx movq 0x28(%r15,%rcx), %r12 cmpq 0x30(%r15,%rcx), %r12 je 0x8523dc addq %rcx, %r15 movl (%r12), %ecx testl %ecx, %ecx js 0x85233b cmpl %ebp, %ecx jl 0x8523ce movq %r13, 0x18(%rsp) movq %r14, %rdi callq 0x325e00 movl $0x24, %edx movq %r14, %rdi leaq 0x2324b3(%rip), %rsi # 0xa8480a callq 0x325e70 movl (%r12), %esi movq %r14, %rdi callq 0x325530 movl $0xb, %edx movq %r14, %rdi leaq 0x232373(%rip), %rsi # 0xa846ea callq 0x325e70 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %r14, %rdi callq 0x325e70 movl $0x1, %edx movq %r14, %rdi leaq 0x237f62(%rip), %rsi # 0xa8a2fc callq 0x325e70 leaq 0x18(%rsp), %rdi leaq 0x250ee2(%rip), %rsi # 0xaa328d callq 0x9aba2a movq %r14, %rdi movq 0x40a76e(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x90(%rsp), %rdi callq 0x325a80 xorl %eax, %eax addq $0x4, %r12 cmpq 0x30(%r15), %r12 jne 0x85232b incq %rbx movq 0x8(%rsp), %rcx cmpq %rcx, %rbx jne 0x852309 andb $0x1, %al addq $0x198, %rsp # imm = 0x198 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r15 movq 0x40a71d(%rip), %rsi # 0xc5cb28 movq %rbx, %rdi jmp 0x85241d movq %rax, %r15 movq 0x40a70e(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x90(%rsp), %rdi callq 0x325a80 movq %r15, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::UniformBlockCase::checkIndexQueries(unsigned int, deqp::gls::ub::UniformLayout const&) const
bool UniformBlockCase::checkIndexQueries (deUint32 program, const UniformLayout& layout) const { tcu::TestLog& log = m_testCtx.getLog(); const glw::Functions& gl = m_renderCtx.getFunctions(); bool allOk = true; // \note Spec mandates that uniform blocks are assigned consecutive locations from 0 // to ACTIVE_UNIFORM_BLOCKS. BlockLayoutEntries are stored in that order in UniformLayout. for (int blockNdx = 0; blockNdx < (int)layout.blocks.size(); blockNdx++) { const BlockLayoutEntry& block = layout.blocks[blockNdx]; const int queriedNdx = gl.getUniformBlockIndex(program, block.name.c_str()); if (queriedNdx != blockNdx) { log << TestLog::Message << "ERROR: glGetUniformBlockIndex(" << block.name << ") returned " << queriedNdx << ", expected " << blockNdx << "!" << TestLog::EndMessage; allOk = false; } GLU_EXPECT_NO_ERROR(gl.getError(), "glGetUniformBlockIndex()"); } return allOk; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x198, %rsp # imm = 0x198 movq %rdx, %r15 movl %esi, 0x4(%rsp) movq 0x8(%rdi), %rax movq 0x70(%rdi), %rdi movq 0x10(%rax), %rax movq %rax, 0x8(%rsp) movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r14 movq (%r15), %rbx movq %r15, 0x10(%rsp) movq 0x8(%r15), %rax subq %rbx, %rax shrq $0x6, %rax testl %eax, %eax jle 0x853b08 leaq 0x20(%rsp), %r15 movb $0x1, %al movl %eax, (%rsp) xorl %r12d, %r12d xorl %r13d, %r13d movq (%rbx,%r12), %rsi movl 0x4(%rsp), %edi callq *0xb38(%r14) movl %eax, %ebp movl %eax, %eax cmpq %rax, %r13 je 0x853abd movq 0x8(%rsp), %rax movq %rax, 0x18(%rsp) movq %r15, %rdi callq 0x325e00 movl $0x1e, %edx movq %r15, %rdi leaq 0x230e23(%rip), %rsi # 0xa84845 callq 0x325e70 movq (%rbx,%r12), %rsi movq 0x8(%rbx,%r12), %rdx movq %r15, %rdi callq 0x325e70 movl $0xb, %edx movq %r15, %rdi leaq 0x22eec7(%rip), %rsi # 0xa8290e callq 0x325e70 movq %r15, %rdi movl %ebp, %esi callq 0x325530 movl $0xb, %edx movq %r15, %rdi leaq 0x1f7f90(%rip), %rsi # 0xa4b9f5 callq 0x325e70 movq %r15, %rdi movl %r13d, %esi callq 0x325530 movl $0x1, %edx movq %r15, %rdi leaq 0x1f4b92(%rip), %rsi # 0xa48616 callq 0x325e70 leaq 0x18(%rsp), %rdi leaq 0x24f7f8(%rip), %rsi # 0xaa328d callq 0x9aba2a movq %r15, %rdi movq 0x409084(%rip), %rsi # 0xc5cb28 callq 0x325aa0 leaq 0x90(%rsp), %rdi callq 0x325a80 movl $0x0, (%rsp) callq *0x800(%r14) movl %eax, %edi leaq 0x230d97(%rip), %rsi # 0xa84864 leaq 0x2309e8(%rip), %rdx # 0xa844bc movl $0x75d, %ecx # imm = 0x75D callq 0x8b6518 incq %r13 movq 0x10(%rsp), %rax movq (%rax), %rbx movq 0x8(%rax), %rax subq %rbx, %rax shrq $0x6, %rax cltq addq $0x40, %r12 cmpq %rax, %r13 jl 0x8539e5 movl (%rsp), %eax jmp 0x853b0a movb $0x1, %al andb $0x1, %al addq $0x198, %rsp # imm = 0x198 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x409000(%rip), %rsi # 0xc5cb28 movq %r15, %rdi callq 0x325aa0 leaq 0x90(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::UniformBlockCase::render(unsigned int) const
bool UniformBlockCase::render (deUint32 program) const { tcu::TestLog& log = m_testCtx.getLog(); const glw::Functions& gl = m_renderCtx.getFunctions(); de::Random rnd (deStringHash(getName())); const tcu::RenderTarget& renderTarget = m_renderCtx.getRenderTarget(); const int viewportW = de::min(renderTarget.getWidth(), 128); const int viewportH = de::min(renderTarget.getHeight(), 128); const int viewportX = rnd.getInt(0, renderTarget.getWidth() - viewportW); const int viewportY = rnd.getInt(0, renderTarget.getHeight() - viewportH); gl.clearColor(0.125f, 0.25f, 0.5f, 1.0f); gl.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); // Draw { const float position[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, +1.0f, 0.0f, 1.0f, +1.0f, -1.0f, 0.0f, 1.0f, +1.0f, +1.0f, 0.0f, 1.0f }; const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; gl.viewport(viewportX, viewportY, viewportW, viewportH); glu::VertexArrayBinding posArray = glu::va::Float("a_position", 4, 4, 0, &position[0]); glu::draw(m_renderCtx, program, 1, &posArray, glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0])); GLU_EXPECT_NO_ERROR(gl.getError(), "Draw failed"); } // Verify that all pixels are white. { tcu::Surface pixels (viewportW, viewportH); int numFailedPixels = 0; glu::readPixels(m_renderCtx, viewportX, viewportY, pixels.getAccess()); GLU_EXPECT_NO_ERROR(gl.getError(), "Reading pixels failed"); for (int y = 0; y < pixels.getHeight(); y++) { for (int x = 0; x < pixels.getWidth(); x++) { if (pixels.getPixel(x, y) != tcu::RGBA::white()) numFailedPixels += 1; } } if (numFailedPixels > 0) { log << TestLog::Image("Image", "Rendered image", pixels); log << TestLog::Message << "Image comparison failed, got " << numFailedPixels << " non-white pixels" << TestLog::EndMessage; } return numFailedPixels == 0; } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x258, %rsp # imm = 0x258 movl %esi, 0x2c(%rsp) movq %rdi, %r14 movq 0x8(%rdi), %rax movq 0x70(%rdi), %rdi movq 0x10(%rax), %rax movq %rax, 0x60(%rsp) movq (%rdi), %rax callq *0x18(%rax) movq %rax, %rbx movq 0x10(%r14), %rdi callq 0x9fa3f8 leaq 0x248(%rsp), %r12 movq %r12, %rdi movl %eax, %esi callq 0x9fa2bc movq %r14, 0x68(%rsp) movq 0x70(%r14), %rdi movq (%rdi), %rax callq *0x20(%rax) movq %rax, %rbp movl (%rax), %r14d movl $0x80, %r13d cmpl %r13d, %r14d movl $0x80, %r15d cmovll %r14d, %r15d movl 0x4(%rax), %eax cmpl %r13d, %eax cmovll %eax, %r13d movq %r12, %rdi callq 0x9fa2ea subl %r15d, %r14d incl %r14d xorl %edx, %edx divl %r14d movq %rbx, %r14 movl %edx, %ebx movl 0x4(%rbp), %ebp movq %r12, %rdi callq 0x9fa2ea subl %r13d, %ebp incl %ebp xorl %edx, %edx divl %ebp movl %edx, %r12d movss 0x1a7d84(%rip), %xmm0 # 0x9fbc94 movss 0x1a7d80(%rip), %xmm1 # 0x9fbc98 movss 0x1a7d7c(%rip), %xmm2 # 0x9fbc9c movss 0x1a7d78(%rip), %xmm3 # 0x9fbca0 callq *0x1c0(%r14) movl $0x4500, %edi # imm = 0x4500 callq *0x188(%r14) movaps 0x23040e(%rip), %xmm0 # 0xa84350 movaps %xmm0, 0xb0(%rsp) movaps 0x2303ef(%rip), %xmm0 # 0xa84340 movaps %xmm0, 0xa0(%rsp) movaps 0x2303d0(%rip), %xmm0 # 0xa84330 movaps %xmm0, 0x90(%rsp) movaps 0x2303b1(%rip), %xmm0 # 0xa84320 movaps %xmm0, 0x80(%rsp) movabsq $0x2000200010000, %rax # imm = 0x2000200010000 movq %rax, 0x70(%rsp) movl $0x30001, 0x78(%rsp) # imm = 0x30001 movl %ebx, %edi movl %r12d, %esi movl %r15d, 0x28(%rsp) movl %r15d, %edx movl %r13d, %ecx callq *0x1a00(%r14) leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x1ad67a(%rip), %rsi # 0xa0162f leaq 0x1ad67d(%rip), %rdx # 0xa01639 leaq 0x8(%rsp), %rdi callq 0x334070 leaq 0x38(%rsp), %rdi movl $0x1, -0x8(%rdi) leaq 0x48(%rsp), %rbp movq %rbp, -0x10(%rbp) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx callq 0x334442 movq 0x68(%rsp), %r15 movl $0x0, 0x58(%rsp) movl 0x30(%rsp), %eax leaq 0xd0(%rsp), %rdi movl %eax, -0x8(%rdi) leaq 0xe0(%rsp), %rax movq %rax, -0x10(%rax) movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx addq %rsi, %rdx callq 0x334442 movl 0x58(%rsp), %eax movl %eax, 0xf0(%rsp) movaps 0x1b0957(%rip), %xmm0 # 0xa04990 movups %xmm0, 0xf8(%rsp) movl $0x0, 0x108(%rsp) leaq 0x80(%rsp), %rax movq %rax, 0x110(%rsp) movq 0x38(%rsp), %rdi cmpq %rbp, %rdi je 0x854073 movq 0x48(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x85408f movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x70(%r15), %rdi movabsq $0x600000000, %rax # imm = 0x600000000 leaq 0x30(%rsp), %r8 movq %rax, (%r8) movl $0x1, 0x8(%r8) leaq 0x70(%rsp), %rax movq %rax, 0x10(%r8) leaq 0xc8(%rsp), %rcx movl 0x2c(%rsp), %esi movl $0x1, %edx xorl %r9d, %r9d callq 0x8b7848 callq *0x800(%r14) leaq 0x2307a0(%rip), %rsi # 0xa8487d leaq 0x2303d8(%rip), %rdx # 0xa844bc movl %eax, %edi movl $0x781, %ecx # imm = 0x781 callq 0x8b6518 movq 0xd0(%rsp), %rdi leaq 0xe0(%rsp), %rax cmpq %rax, %rdi je 0x854115 movq 0xe0(%rsp), %rsi incq %rsi callq 0x3251a0 movl %ebx, %ebp leaq 0x8(%rsp), %rdi movl 0x28(%rsp), %esi movl %r13d, %edx callq 0x9a957c movq 0x70(%r15), %rbx movabsq $0x300000008, %rax # imm = 0x300000008 movq %rax, 0x80(%rsp) movl 0x8(%rsp), %edx movl 0xc(%rsp), %ecx movq 0x18(%rsp), %r9 testq %r9, %r9 je 0x854155 movq 0x10(%rsp), %r9 leaq 0xc8(%rsp), %rdi leaq 0x80(%rsp), %rsi movl $0x1, %r8d callq 0x9ad03e leaq 0xc8(%rsp), %rcx movq %rbx, %rdi movl %ebp, %esi movl %r12d, %edx callq 0x8b7e74 callq *0x800(%r14) leaq 0x1f42e4(%rip), %rsi # 0xa48477 leaq 0x230322(%rip), %rdx # 0xa844bc movl %eax, %edi movl $0x78a, %ecx # imm = 0x78A callq 0x8b6518 movl 0xc(%rsp), %eax testl %eax, %eax jle 0x8541eb movl 0x8(%rsp), %ecx movq 0x10(%rsp), %rdx xorl %esi, %esi xorl %edi, %edi xorl %ebp, %ebp movq %rcx, %r8 movl %esi, %r9d testl %ecx, %ecx jle 0x8541e1 movslq %r9d, %r9 xorl %r10d, %r10d cmpl $-0x1, (%rdx,%r9,4) setne %r10b addl %r10d, %ebp incl %r9d decq %r8 jne 0x8541c7 incl %edi addl %ecx, %esi cmpl %eax, %edi jne 0x8541bd jmp 0x8541ed xorl %ebp, %ebp testl %ebp, %ebp jle 0x854365 leaq 0x90(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0x1f444e(%rip), %rsi # 0xa48656 leaq 0x1f444c(%rip), %rdx # 0xa4865b leaq 0x80(%rsp), %rdi callq 0x334070 leaq 0x40(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x1c0ade(%rip), %rsi # 0xa14d0a leaq 0x1c0ae5(%rip), %rdx # 0xa14d18 leaq 0x30(%rsp), %rdi callq 0x334070 leaq 0xc8(%rsp), %rdi leaq 0x80(%rsp), %rsi leaq 0x30(%rsp), %rdx leaq 0x8(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0xc8(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0x9aa92e leaq 0xf8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x854295 movq 0xf8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xd8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8542b6 movq 0xd8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x30(%rsp), %rdi cmpq %r15, %rdi je 0x8542cd movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x80(%rsp), %rdi cmpq %r14, %rdi je 0x8542ea movq 0x90(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xd0(%rsp), %r14 movq 0x60(%rsp), %rax movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x23057f(%rip), %rsi # 0xa84889 movl $0x1d, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movl %ebp, %esi callq 0x325530 leaq 0x1e0be3(%rip), %rsi # 0xa34f0b movl $0x11, %edx movq %r14, %rdi callq 0x325e70 leaq 0x24ef51(%rip), %rsi # 0xaa328d leaq 0xc8(%rsp), %rdi callq 0x9aba2a movq 0x4087d8(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x140(%rsp), %rdi callq 0x325a80 testl %ebp, %ebp sete %bl leaq 0x8(%rsp), %rdi callq 0x9a9590 movl %ebx, %eax addq $0x258, %rsp # imm = 0x258 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x854428 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x34f5c8 jmp 0x8543a2 movq %rax, %rbx movq 0x30(%rsp), %rdi cmpq %r15, %rdi je 0x8543be movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x8543be movq %rax, %rbx movq 0x80(%rsp), %rdi cmpq %r14, %rdi je 0x854476 movq 0x90(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x854476 jmp 0x854428 jmp 0x854421 jmp 0x85442d movq %rax, %rbx movq 0x38(%rsp), %rdi cmpq %rbp, %rdi je 0x854409 movq 0x48(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x854409 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x854480 movq 0x18(%rsp), %rsi jmp 0x85444d jmp 0x854421 movq %rax, %rbx jmp 0x854480 jmp 0x854428 movq %rax, %rbx jmp 0x854476 movq %rax, %rbx movq 0xd0(%rsp), %rdi leaq 0xe0(%rsp), %rax cmpq %rax, %rdi je 0x854480 movq 0xe0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x854480 movq %rax, %rbx movq 0x4086c7(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x140(%rsp), %rdi callq 0x325a80 leaq 0x8(%rsp), %rdi callq 0x9a9590 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::ub::(anonymous namespace)::computeStd140BaseAlignment(deqp::gls::ub::VarType const&)
int computeStd140BaseAlignment (const VarType& type) { const int vec4Alignment = (int)sizeof(deUint32)*4; if (type.isBasicType()) { glu::DataType basicType = type.getBasicType(); if (glu::isDataTypeMatrix(basicType)) { bool isRowMajor = !!(type.getFlags() & LAYOUT_ROW_MAJOR); int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) : glu::getDataTypeMatrixNumRows(basicType); return getDataTypeArrayStride(glu::getDataTypeFloatVec(vecSize)); } else return getDataTypeByteAlignment(basicType); } else if (type.isArrayType()) { int elemAlignment = computeStd140BaseAlignment(type.getElementType()); // Round up to alignment of vec4 return deRoundUp32(elemAlignment, vec4Alignment); } else { DE_ASSERT(type.isStructType()); int maxBaseAlignment = 0; for (StructType::ConstIterator memberIter = type.getStruct().begin(); memberIter != type.getStruct().end(); memberIter++) maxBaseAlignment = de::max(maxBaseAlignment, computeStd140BaseAlignment(memberIter->getType())); return deRoundUp32(maxBaseAlignment, vec4Alignment); } }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movl (%rdi), %eax cmpl $0x1, %eax je 0x854e40 testl %eax, %eax jne 0x854e60 movl 0x8(%rbx), %edi leal -0x5(%rdi), %eax cmpl $0x9, %eax setae %al leal -0x12(%rdi), %ecx cmpl $0x9, %ecx setae %cl testb %cl, %al jne 0x854e96 testb $0x40, 0x4(%rbx) jne 0x854eaf callq 0x8bb891 jmp 0x854eb4 movq 0x8(%rbx), %rdi callq 0x854e08 movl %eax, %ecx leal 0xf(%rcx), %edx testl %eax, %eax cmovnsl %eax, %edx andl $-0x10, %edx leal 0x10(%rdx), %eax cmpl %ecx, %edx cmovel %ecx, %eax jmp 0x854ed0 movq 0x8(%rbx), %rax movq 0x20(%rax), %r14 cmpq 0x28(%rax), %r14 je 0x854eab xorl %eax, %eax movl %eax, %ebp leaq 0x20(%r14), %rdi callq 0x854e08 cmpl %eax, %ebp cmovgl %ebp, %eax addq $0x40, %r14 movq 0x8(%rbx), %rcx cmpq 0x28(%rcx), %r14 jne 0x854e70 addl $0xf, %eax andl $-0x10, %eax jmp 0x854ed0 decl %edi cmpl $0x26, %edi jae 0x854eab movl %edi, %eax leaq 0x22f4e6(%rip), %rcx # 0xa8438c movl (%rcx,%rax,4), %eax jmp 0x854ed0 xorl %eax, %eax jmp 0x854ed0 callq 0x8bb8a8 movl %eax, %edi callq 0x8bb879 movl %eax, %edi callq 0x8bb822 shll $0x2, %eax cmpl $0x11, %eax movl $0x10, %ecx cmovll %ecx, %eax popq %rbx popq %r14 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::ub::(anonymous namespace)::generateDeclaration(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, deqp::gls::ub::VarType const&, char const*, int, unsigned int)
void generateDeclaration (std::ostringstream& src, const VarType& type, const char* name, int indentLevel, deUint32 unusedHints) { deUint32 flags = type.getFlags(); if ((flags & LAYOUT_MASK) != 0) src << "layout(" << LayoutFlagsFmt(flags & LAYOUT_MASK) << ") "; if ((flags & PRECISION_MASK) != 0) src << PrecisionFlagsFmt(flags & PRECISION_MASK) << " "; if (type.isBasicType()) src << glu::getDataTypeName(type.getBasicType()) << " " << name; else if (type.isArrayType()) { std::vector<int> arraySizes; const VarType* curType = &type; while (curType->isArrayType()) { arraySizes.push_back(curType->getArraySize()); curType = &curType->getElementType(); } if (curType->isBasicType()) { if ((curType->getFlags() & PRECISION_MASK) != 0) src << PrecisionFlagsFmt(curType->getFlags() & PRECISION_MASK) << " "; src << glu::getDataTypeName(curType->getBasicType()); } else { DE_ASSERT(curType->isStructType()); generateLocalDeclaration(src, curType->getStruct(), indentLevel+1); } src << " " << name; for (std::vector<int>::const_iterator sizeIter = arraySizes.begin(); sizeIter != arraySizes.end(); sizeIter++) src << "[" << *sizeIter << "]"; } else { generateLocalDeclaration(src, type.getStruct(), indentLevel+1); src << " " << name; } src << ";"; // Print out unused hints. if (unusedHints != 0) src << " // unused in " << (unusedHints == UNUSED_BOTH ? "both shaders" : unusedHints == UNUSED_VERTEX ? "vertex shader" : unusedHints == UNUSED_FRAGMENT ? "fragment shader" : "???"); src << "\n"; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, %r14d movl %ecx, %r12d movq %rdx, 0x30(%rsp) movq %rsi, %r15 movq %rdi, %rbx movl 0x4(%rsi), %ebp movl %ebp, %r13d andl $0xf8, %r13d je 0x8560a6 leaq 0x22e8b9(%rip), %rsi # 0xa8492e movl $0x7, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x10(%rsp), %rsi movl %r13d, (%rsi) movq %rbx, %rdi callq 0x84edf0 leaq 0x20842d(%rip), %rsi # 0xa5e4c6 movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 andl $0x7, %ebp je 0x8560ce leaq 0x10(%rsp), %rsi movl %ebp, (%rsi) movq %rbx, %rdi callq 0x84ed98 leaq 0x243c7e(%rip), %rsi # 0xa99d3f movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movl (%r15), %eax cmpl $0x1, %eax je 0x856111 testl %eax, %eax jne 0x856165 movl 0x8(%r15), %edi callq 0x8bb810 testq %rax, %rax movl %r14d, %ebp je 0x85622c movq %rax, %r15 movq %rax, %rdi callq 0x325680 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x856243 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %r13 movaps %xmm0, (%r13) movq $0x0, 0x10(%r13) leaq 0xc(%rsp), %rbp movl (%r15), %eax cmpl $0x1, %eax jne 0x8561af movl 0x10(%r15), %eax movl %eax, 0xc(%rsp) movq 0x18(%rsp), %rsi cmpq 0x20(%rsp), %rsi je 0x856154 movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x18(%rsp) jmp 0x85615f movq %r13, %rdi movq %rbp, %rdx callq 0x33455c movq 0x8(%r15), %r15 jmp 0x85612b movq 0x8(%r15), %rsi incl %r12d movq %rbx, %rdi movl %r12d, %edx callq 0x85642b leaq 0x243bc1(%rip), %rsi # 0xa99d3f movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movq 0x30(%rsp), %r15 testq %r15, %r15 movl %r14d, %ebp je 0x85627c movq %r15, %rdi callq 0x325680 movq %rbx, %rdi movq %r15, %rsi jmp 0x85626f testl %eax, %eax jne 0x856212 movl 0x4(%r15), %eax andl $0x7, %eax movl %r14d, %ebp je 0x8561e2 leaq 0xc(%rsp), %rsi movl %eax, (%rsi) movq %rbx, %rdi callq 0x84ed98 leaq 0x243b6a(%rip), %rsi # 0xa99d3f movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movl 0x8(%r15), %edi callq 0x8bb810 movq %rax, %r15 testq %rax, %rax je 0x856298 movq %r15, %rdi callq 0x325680 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8562af movq 0x8(%r15), %rsi incl %r12d movq %rbx, %rdi movl %r12d, %edx callq 0x85642b movl %r14d, %ebp jmp 0x8562af movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x326070 leaq 0x243af5(%rip), %rsi # 0xa99d3f movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movq 0x30(%rsp), %r14 testq %r14, %r14 je 0x85627c movq %r14, %rdi callq 0x325680 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x856364 movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x326070 jmp 0x856364 movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x326070 leaq 0x243a89(%rip), %rsi # 0xa99d3f movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movq 0x30(%rsp), %r14 testq %r14, %r14 je 0x8562e5 movq %r14, %rdi callq 0x325680 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8562fc movq (%rbx), %rax movq -0x18(%rax), %rax leaq (%rbx,%rax), %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x326070 movq 0x10(%rsp), %r12 cmpq 0x18(%rsp), %r12 je 0x85634d leaq 0x1f3e42(%rip), %r14 # 0xa4a151 leaq 0x1ed7c8(%rip), %r15 # 0xa43ade movl $0x1, %edx movq %rbx, %rdi movq %r14, %rsi callq 0x325e70 movl (%r12), %esi movq %rbx, %rdi callq 0x325530 movl $0x1, %edx movq %rax, %rdi movq %r15, %rsi callq 0x325e70 addq $0x4, %r12 cmpq 0x18(%rsp), %r12 jne 0x856316 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x856364 movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 leaq 0x1b990f(%rip), %rsi # 0xa0fc7a movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 testl %ebp, %ebp je 0x8563e0 leaq 0x22e5b3(%rip), %rsi # 0xa84936 movl $0xe, %edx movq %rbx, %rdi callq 0x325e70 cmpl $0x400, %ebp # imm = 0x400 je 0x8563a9 cmpl $0xc00, %ebp # imm = 0xC00 jne 0x8563b2 leaq 0x22e59e(%rip), %r14 # 0xa84945 jmp 0x8563ca leaq 0x1ae83c(%rip), %r14 # 0xa04bec jmp 0x8563ca cmpl $0x800, %ebp # imm = 0x800 leaq 0x1ae7db(%rip), %rax # 0xa04b9a leaq 0x1a9214(%rip), %r14 # 0x9ff5da cmoveq %rax, %r14 movq %r14, %rdi callq 0x325680 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 leaq 0x1fdb4e(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x856409 jmp 0x856409 jmp 0x856409 movq %rax, %rbx movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x856423 movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsUniformBlockCase.cpp
deqp::gls::Array::usageTypeToString[abi:cxx11](deqp::gls::Array::Usage)
std::string Array::usageTypeToString(Usage usage) { static const char* usages[] = { "dynamic_draw", // USAGE_DYNAMIC_DRAW = 0, "static_draw", // USAGE_STATIC_DRAW, "stream_draw", // USAGE_STREAM_DRAW, "stream_read", // USAGE_STREAM_READ, "stream_copy", // USAGE_STREAM_COPY, "static_read", // USAGE_STATIC_READ, "static_copy", // USAGE_STATIC_COPY, "dynamic_read", // USAGE_DYNAMIC_READ, "dynamic_copy", // USAGE_DYNAMIC_COPY, }; return de::getSizedArrayElement<Array::USAGE_LAST>(usages, (int)usage); }
pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movslq %esi, %rax leaq 0x3fcb12(%rip), %rcx # 0xc55d20 movq (%rcx,%rax,8), %rsi leaq 0xf(%rsp), %rdx callq 0x333da2 movq %rbx, %rax addq $0x10, %rsp popq %rbx retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::ContextArray::data(deqp::gls::Array::Target, int, char const*, deqp::gls::Array::Usage)
void ContextArray::data (Target target, int size, const char* ptr, Usage usage) { m_size = size; m_target = target; if (m_storage == STORAGE_BUFFER) { m_ctx.bindBuffer(targetToGL(target), m_glBuffer); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); m_ctx.bufferData(targetToGL(target), size, ptr, usageToGL(usage)); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferData()"); } else if (m_storage == STORAGE_USER) { if (m_data) delete[] m_data; m_data = new char[size]; std::memcpy(m_data, ptr, size); } else DE_ASSERT(false); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movl %edx, %ebp movq %rdi, %r14 movl %edx, 0x24(%rdi) movl %esi, 0x34(%rdi) movl 0x8(%rdi), %eax testl %eax, %eax je 0x859495 cmpl $0x1, %eax jne 0x8594ce movl %r8d, %r15d movq 0x10(%r14), %rdi movslq %esi, %rax leaq 0x22c606(%rip), %rcx # 0xa85a08 movl (%rcx,%rax,4), %r12d movl 0x18(%r14), %edx movq (%rdi), %rax movl %r12d, %esi callq *0x128(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fd1aa(%rip), %rsi # 0xa565d4 leaq 0x22c60a(%rip), %r13 # 0xa85a3b movl %eax, %edi movq %r13, %rdx movl $0x1f1, %ecx # imm = 0x1F1 callq 0x8b6518 movq 0x10(%r14), %rdi movslq %ebp, %rdx movslq %r15d, %rax leaq 0x22c43f(%rip), %rcx # 0xa85890 movl (%rcx,%rax,4), %r8d movq (%rdi), %rax movl %r12d, %esi movq %rbx, %rcx callq *0x140(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1eff8f(%rip), %rsi # 0xa49407 movl %eax, %edi movq %r13, %rdx movl $0x1f4, %ecx # imm = 0x1F4 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x8b6518 movq 0x28(%r14), %rdi testq %rdi, %rdi je 0x8594a3 callq 0x3255d0 movslq %ebp, %r15 movq %r15, %rdi callq 0x325740 movq %rax, 0x28(%r14) movq %rax, %rdi movq %rbx, %rsi movq %r15, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x325120 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::ContextArray::subdata(deqp::gls::Array::Target, int, int, char const*)
void ContextArray::subdata (Target target, int offset, int size, const char* ptr) { m_target = target; if (m_storage == STORAGE_BUFFER) { m_ctx.bindBuffer(targetToGL(target), m_glBuffer); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); m_ctx.bufferSubData(targetToGL(target), offset, size, ptr); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferSubData()"); } else if (m_storage == STORAGE_USER) std::memcpy(m_data + offset, ptr, size); else DE_ASSERT(false); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movl %ecx, %ebp movl %edx, %r15d movq %rdi, %r14 movl %esi, 0x34(%rdi) movl 0x8(%rdi), %eax testl %eax, %eax je 0x8595bd cmpl $0x1, %eax jne 0x8595dd movq 0x10(%r14), %rdi movslq %esi, %rax leaq 0x22c4d3(%rip), %rcx # 0xa85a08 movl (%rcx,%rax,4), %r12d movl 0x18(%r14), %edx movq (%rdi), %rax movl %r12d, %esi callq *0x128(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fd077(%rip), %rsi # 0xa565d4 leaq 0x22c4d7(%rip), %r13 # 0xa85a3b movl %eax, %edi movq %r13, %rdx movl $0x209, %ecx # imm = 0x209 callq 0x8b6518 movq 0x10(%r14), %rdi movslq %r15d, %rdx movslq %ebp, %rcx movq (%rdi), %rax movl %r12d, %esi movq %rbx, %r8 callq *0x148(%rax) movq 0x10(%r14), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1effd8(%rip), %rsi # 0xa49578 movl %eax, %edi movq %r13, %rdx movl $0x20c, %ecx # imm = 0x20C addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x8b6518 movslq %r15d, %rdi addq 0x28(%r14), %rdi movslq %ebp, %rdx movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x325120 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::ContextArray::glBind(unsigned int)
void ContextArray::glBind (deUint32 loc) { if (m_storage == STORAGE_BUFFER) { m_ctx.bindBuffer(targetToGL(m_target), m_glBuffer); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); if (!inputTypeIsFloatType(m_inputType)) { // Input is not float type if (outputTypeIsFloatType(m_outputType)) { // Output type is float type m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, (GLvoid*)((GLintptr)m_offset)); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); } else { // Output type is int type m_ctx.vertexAttribIPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_stride, (GLvoid*)((GLintptr)m_offset)); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribIPointer()"); } } else { // Input type is float type // Output type must be float type DE_ASSERT(m_outputType == OUTPUTTYPE_FLOAT || m_outputType == OUTPUTTYPE_VEC2 || m_outputType == OUTPUTTYPE_VEC3 || m_outputType == OUTPUTTYPE_VEC4); m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, (GLvoid*)((GLintptr)m_offset)); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); } m_ctx.bindBuffer(targetToGL(m_target), 0); } else if (m_storage == STORAGE_USER) { m_ctx.bindBuffer(targetToGL(m_target), 0); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); if (!inputTypeIsFloatType(m_inputType)) { // Input is not float type if (outputTypeIsFloatType(m_outputType)) { // Output type is float type m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, m_data + m_offset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); } else { // Output type is int type m_ctx.vertexAttribIPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_stride, m_data + m_offset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribIPointer()"); } } else { // Input type is float type // Output type must be float type DE_ASSERT(m_outputType == OUTPUTTYPE_FLOAT || m_outputType == OUTPUTTYPE_VEC2 || m_outputType == OUTPUTTYPE_VEC3 || m_outputType == OUTPUTTYPE_VEC4); m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, m_data + m_offset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); } } else DE_ASSERT(false); }
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %esi, %ebp movq %rdi, %rbx movl 0x8(%rdi), %eax testl %eax, %eax je 0x859736 cmpl $0x1, %eax jne 0x8597f7 movq 0x10(%rbx), %rdi movslq 0x34(%rbx), %rax leaq 0x22c39c(%rip), %r14 # 0xa85a08 movl (%r14,%rax,4), %esi movl 0x18(%rbx), %edx movq (%rdi), %rax callq *0x128(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fcf44(%rip), %rsi # 0xa565d4 leaq 0x22c3a4(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x230, %ecx # imm = 0x230 callq 0x8b6518 movslq 0x38(%rbx), %rax cmpq $0x9, %rax ja 0x859800 movl $0x207, %ecx # imm = 0x207 btl %eax, %ecx jae 0x859800 movq 0x10(%rbx), %rdi movl 0x30(%rbx), %edx leaq 0x22c1f3(%rip), %rcx # 0xa858c0 movl (%rcx,%rax,4), %ecx movzbl 0x40(%rbx), %r8d movl 0x44(%rbx), %r9d movslq 0x48(%rbx), %rax movq (%rdi), %r10 movq %rax, (%rsp) movl %ebp, %esi callq *0x270(%r10) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fcee2(%rip), %rsi # 0xa565e3 leaq 0x22c333(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x24b, %ecx # imm = 0x24B callq 0x8b6518 movq 0x10(%rbx), %rdi movslq 0x34(%rbx), %rax movl (%r14,%rax,4), %esi movq (%rdi), %rax movq 0x128(%rax), %rax xorl %edx, %edx addq $0x10, %rsp popq %rbx popq %r14 popq %rbp jmpq *%rax movq 0x10(%rbx), %rdi movslq 0x34(%rbx), %rax leaq 0x22c2c3(%rip), %rcx # 0xa85a08 movl (%rcx,%rax,4), %esi movq (%rdi), %rax xorl %edx, %edx callq *0x128(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fce6d(%rip), %rsi # 0xa565d4 leaq 0x22c2cd(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x253, %ecx # imm = 0x253 callq 0x8b6518 movslq 0x38(%rbx), %rax cmpq $0x9, %rax ja 0x85985f movl $0x207, %ecx # imm = 0x207 btl %eax, %ecx jae 0x85985f movq 0x10(%rbx), %rdi movl 0x30(%rbx), %edx leaq 0x22c11c(%rip), %rcx # 0xa858c0 movl (%rcx,%rax,4), %ecx movzbl 0x40(%rbx), %r8d movl 0x44(%rbx), %r9d movslq 0x48(%rbx), %rax addq 0x28(%rbx), %rax movq (%rdi), %r10 movq %rax, (%rsp) movl %ebp, %esi callq *0x270(%r10) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fce07(%rip), %rsi # 0xa565e3 leaq 0x22c258(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x26e, %ecx # imm = 0x26E addq $0x10, %rsp popq %rbx popq %r14 popq %rbp jmp 0x8b6518 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq cmpl $0x3, 0x3c(%rbx) movq 0x10(%rbx), %rdi movl 0x30(%rbx), %edx leaq 0x22c0ae(%rip), %rcx # 0xa858c0 movl (%rcx,%rax,4), %ecx ja 0x8598c2 movzbl 0x40(%rbx), %r8d movl 0x44(%rbx), %r9d movslq 0x48(%rbx), %rax movq (%rdi), %r10 movq %rax, (%rsp) movl %ebp, %esi callq *0x270(%r10) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fcd97(%rip), %rsi # 0xa565e3 leaq 0x22c1e8(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x23a, %ecx # imm = 0x23A jmp 0x85970f cmpl $0x3, 0x3c(%rbx) movq 0x10(%rbx), %rdi movl 0x30(%rbx), %edx leaq 0x22c04f(%rip), %rcx # 0xa858c0 movl (%rcx,%rax,4), %ecx ja 0x8598fc movzbl 0x40(%rbx), %r8d movl 0x44(%rbx), %r9d movslq 0x48(%rbx), %rax addq 0x28(%rbx), %rax movq (%rdi), %r10 movq %rax, (%rsp) movl %ebp, %esi callq *0x270(%r10) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1fcd34(%rip), %rsi # 0xa565e3 leaq 0x22c185(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x25d, %ecx # imm = 0x25D jmp 0x8597ea movl 0x44(%rbx), %r8d movslq 0x48(%rbx), %r9 movq (%rdi), %rax movl %ebp, %esi callq *0x278(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x22c1d8(%rip), %rsi # 0xa85ac1 leaq 0x22c14b(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x240, %ecx # imm = 0x240 jmp 0x85970f movl 0x44(%rbx), %r8d movslq 0x48(%rbx), %r9 addq 0x28(%rbx), %r9 movq (%rdi), %rax movl %ebp, %esi callq *0x278(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x22c19a(%rip), %rsi # 0xa85ac1 leaq 0x22c10d(%rip), %rdx # 0xa85a3b movl %eax, %edi movl $0x263, %ecx # imm = 0x263 jmp 0x8597ea
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::GLValue::getMaxValue(deqp::gls::Array::InputType)
GLValue GLValue::getMaxValue (Array::InputType type) { GLValue rangesHi[(int)Array::INPUTTYPE_LAST]; rangesHi[(int)Array::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); rangesHi[(int)Array::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); rangesHi[(int)Array::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); rangesHi[(int)Array::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); rangesHi[(int)Array::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); rangesHi[(int)Array::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); rangesHi[(int)Array::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); rangesHi[(int)Array::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); rangesHi[(int)Array::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); rangesHi[(int)Array::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); return rangesHi[(int)type]; }
pushq %rbx subq $0xd0, %rsp movl %edi, %ebx xorl %eax, %eax movl $0xc, 0x10(%rsp,%rax) addq $0x10, %rax cmpq $0xc0, %rax jne 0x85bec2 movl $0x0, 0x10(%rsp) movl $0x42fe0000, 0x18(%rsp) # imm = 0x42FE0000 movl $0x2, 0x30(%rsp) movabsq $0x405fc00000000000, %rax # imm = 0x405FC00000000000 movq %rax, 0x38(%rsp) movl $0x3, 0x40(%rsp) movb $0x7f, 0x48(%rsp) movl $0x5, 0x60(%rsp) movb $-0x1, 0x68(%rsp) movl $0x6, 0x70(%rsp) movw $0xfffa, 0x78(%rsp) # imm = 0xFFFA movl $0x4, 0x50(%rsp) movw $0x7ff8, 0x58(%rsp) # imm = 0x7FF8 movl $0x1, 0x20(%rsp) movl $0x7ff8, 0x28(%rsp) # imm = 0x7FF8 movl $0x7, 0x80(%rsp) movl $0x7fffffff, 0x88(%rsp) # imm = 0x7FFFFFFF movl $0x8, 0x90(%rsp) movl $0xffffffff, 0x98(%rsp) # imm = 0xFFFFFFFF leaq 0xc(%rsp), %rdi movl $0x43800000, (%rdi) # imm = 0x43800000 callq 0x8641ae movl $0x9, 0xa0(%rsp) movw %ax, 0xa8(%rsp) movslq %ebx, %rcx shlq $0x4, %rcx movl 0x10(%rsp,%rcx), %eax movq 0x18(%rsp,%rcx), %rdx addq $0xd0, %rsp popq %rbx retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::RandomArrayGenerator::generateQuads(int, int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::Array::InputType, deqp::gls::GLValue, deqp::gls::GLValue, float)
char* RandomArrayGenerator::generateQuads (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float gridSize) { char* data = DE_NULL; switch (type) { case Array::INPUTTYPE_FLOAT: data = createQuads<GLValue::Float>(seed, count, componentCount, offset, stride, primitive, min.fl, max.fl, gridSize); break; case Array::INPUTTYPE_FIXED: data = createQuads<GLValue::Fixed>(seed, count, componentCount, offset, stride, primitive, min.fi, max.fi, gridSize); break; case Array::INPUTTYPE_DOUBLE: data = createQuads<GLValue::Double>(seed, count, componentCount, offset, stride, primitive, min.d, max.d, gridSize); break; case Array::INPUTTYPE_BYTE: data = createQuads<GLValue::Byte>(seed, count, componentCount, offset, stride, primitive, min.b, max.b, gridSize); break; case Array::INPUTTYPE_SHORT: data = createQuads<GLValue::Short>(seed, count, componentCount, offset, stride, primitive, min.s, max.s, gridSize); break; case Array::INPUTTYPE_UNSIGNED_BYTE: data = createQuads<GLValue::Ubyte>(seed, count, componentCount, offset, stride, primitive, min.ub, max.ub, gridSize); break; case Array::INPUTTYPE_UNSIGNED_SHORT: data = createQuads<GLValue::Ushort>(seed, count, componentCount, offset, stride, primitive, min.us, max.us, gridSize); break; case Array::INPUTTYPE_UNSIGNED_INT: data = createQuads<GLValue::Uint>(seed, count, componentCount, offset, stride, primitive, min.ui, max.ui, gridSize); break; case Array::INPUTTYPE_INT: data = createQuads<GLValue::Int>(seed, count, componentCount, offset, stride, primitive, min.i, max.i, gridSize); break; case Array::INPUTTYPE_HALF: data = createQuads<GLValue::Half>(seed, count, componentCount, offset, stride, primitive, min.h, max.h, gridSize); break; case Array::INPUTTYPE_INT_2_10_10_10: case Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10: data = createQuadsPacked(seed, count, componentCount, offset, stride, primitive); break; default: DE_ASSERT(false); break; } return data; }
pushq %rbx movl 0x10(%rsp), %r11d cmpq $0xb, %r11 ja 0x85c5d4 movaps %xmm0, %xmm2 leaq 0x28(%rsp), %rax leaq 0x18(%rsp), %r10 leaq 0x2292f8(%rip), %rbx # 0xa857f0 movslq (%rbx,%r11,4), %r11 addq %rbx, %r11 jmpq *%r11 popq %rbx jmp 0x85c5d8 movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x860dc8 jmp 0x85c5ce movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x86248e jmp 0x85c5ce movsd 0x8(%r10), %xmm0 movsd 0x8(%rax), %xmm1 popq %rbx jmp 0x8603be movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x86090c jmp 0x85c5ce movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x861fd0 jmp 0x85c5ce movss 0x8(%r10), %xmm0 movss 0x8(%rax), %xmm1 popq %rbx jmp 0x85f9d2 movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x85fef8 jmp 0x85c5ce movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x8612e2 jmp 0x85c5ce movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x861702 jmp 0x85c5ce movl 0x8(%r10), %r10d movl 0x8(%rax), %eax movaps %xmm2, %xmm0 pushq %rax pushq %r10 callq 0x861b60 addq $0x10, %rsp popq %rbx retq xorl %eax, %eax jmp 0x85c5d2
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::VertexArrayTest::VertexArrayTest(tcu::TestContext&, glu::RenderContext&, char const*, char const*)
VertexArrayTest::VertexArrayTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name ,const char* desc) : TestCase (testCtx, name, desc) , m_renderCtx (renderCtx) , m_refBuffers (DE_NULL) , m_refContext (DE_NULL) , m_glesContext (DE_NULL) , m_glArrayPack (DE_NULL) , m_rrArrayPack (DE_NULL) , m_isOk (false) , m_maxDiffRed (deCeilFloatToInt32(256.0f * (2.0f / (float)(1 << m_renderCtx.getRenderTarget().getPixelFormat().redBits)))) , m_maxDiffGreen (deCeilFloatToInt32(256.0f * (2.0f / (float)(1 << m_renderCtx.getRenderTarget().getPixelFormat().greenBits)))) , m_maxDiffBlue (deCeilFloatToInt32(256.0f * (2.0f / (float)(1 << m_renderCtx.getRenderTarget().getPixelFormat().blueBits)))) { }
pushq %rbp pushq %r14 pushq %rbx movq %rdx, %r14 movq %rdi, %rbx movq %rcx, %rdx movq %r8, %rcx callq 0x9a9abc leaq 0x3f965c(%rip), %rax # 0xc55f38 movq %rax, (%rbx) movq %r14, 0x70(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x78(%rbx) movups %xmm0, 0x88(%rbx) movups %xmm0, 0x91(%rbx) movq (%r14), %rax movq %r14, %rdi callq *0x20(%rax) movb 0x8(%rax), %cl movl $0x1, %ebp movl $0x1, %eax shll %cl, %eax cvtsi2ss %eax, %xmm1 movss 0x1a4988(%rip), %xmm0 # 0xa012a4 divss %xmm1, %xmm0 mulss 0x1d9f9c(%rip), %xmm0 # 0xa368c4 callq 0x325610 cvttss2si %xmm0, %eax movl %eax, 0xa4(%rbx) movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x20(%rax) movb 0xc(%rax), %cl shll %cl, %ebp xorps %xmm1, %xmm1 cvtsi2ss %ebp, %xmm1 movss 0x1a494f(%rip), %xmm0 # 0xa012a4 divss %xmm1, %xmm0 mulss 0x1d9f63(%rip), %xmm0 # 0xa368c4 callq 0x325610 cvttss2si %xmm0, %eax movl %eax, 0xa8(%rbx) movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x20(%rax) movb 0x10(%rax), %cl movl $0x1, %eax shll %cl, %eax xorps %xmm1, %xmm1 cvtsi2ss %eax, %xmm1 movss 0x1a4911(%rip), %xmm0 # 0xa012a4 divss %xmm1, %xmm0 mulss 0x1d9f25(%rip), %xmm0 # 0xa368c4 callq 0x325610 cvttss2si %xmm0, %eax movl %eax, 0xac(%rbx) popq %rbx popq %r14 popq %rbp retq movq %rax, %r14 movq %rbx, %rdi callq 0x9a98c4 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::MultiVertexArrayTest::Spec::ArraySpec::ArraySpec(deqp::gls::Array::InputType, deqp::gls::Array::OutputType, deqp::gls::Array::Storage, deqp::gls::Array::Usage, int, int, int, bool, deqp::gls::GLValue, deqp::gls::GLValue)
MultiVertexArrayTest::Spec::ArraySpec::ArraySpec(Array::InputType inputType_, Array::OutputType outputType_, Array::Storage storage_, Array::Usage usage_, int componentCount_, int offset_, int stride_, bool normalize_, GLValue min_, GLValue max_) : inputType (inputType_) , outputType (outputType_) , storage (storage_) , usage (usage_) , componentCount(componentCount_) , offset (offset_) , stride (stride_) , normalize (normalize_) , min (min_) , max (max_) { }
movb 0x18(%rsp), %al movl 0x10(%rsp), %r10d movl 0x8(%rsp), %r11d movl %esi, (%rdi) movl %edx, 0x4(%rdi) movl %ecx, 0x8(%rdi) movl %r8d, 0xc(%rdi) movl %r9d, 0x10(%rdi) movl %r11d, 0x14(%rdi) movl %r10d, 0x18(%rdi) movb %al, 0x1c(%rdi) movups 0x20(%rsp), %xmm0 movups %xmm0, 0x20(%rdi) movups 0x30(%rsp), %xmm0 movups %xmm0, 0x30(%rdi) retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
void deqp::gls::calcShaderColorCoord<unsigned int>(tcu::Vector<float, 2>&, tcu::Vector<float, 3>&, tcu::Vector<unsigned int, 4> const&, bool, int)
void calcShaderColorCoord (tcu::Vec2& coord, tcu::Vec3& color, const tcu::Vector<T, 4>& attribValue, bool isCoordinate, int numComponents) { if (isCoordinate) switch (numComponents) { case 1: coord = tcu::Vec2((float)attribValue.x(), (float)attribValue.x()); break; case 2: coord = tcu::Vec2((float)attribValue.x(), (float)attribValue.y()); break; case 3: coord = tcu::Vec2((float)attribValue.x() + (float)attribValue.z(), (float)attribValue.y()); break; case 4: coord = tcu::Vec2((float)attribValue.x() + (float)attribValue.z(), (float)attribValue.y() + (float)attribValue.w()); break; default: DE_ASSERT(false); } else { switch (numComponents) { case 1: color = color * (float)attribValue.x(); break; case 2: color.x() = color.x() * (float)attribValue.x(); color.y() = color.y() * (float)attribValue.y(); break; case 3: color.x() = color.x() * (float)attribValue.x(); color.y() = color.y() * (float)attribValue.y(); color.z() = color.z() * (float)attribValue.z(); break; case 4: color.x() = color.x() * (float)attribValue.x() * (float)attribValue.w(); color.y() = color.y() * (float)attribValue.y() * (float)attribValue.w(); color.z() = color.z() * (float)attribValue.z() * (float)attribValue.w(); break; default: DE_ASSERT(false); } } }
decl %r8d testl %ecx, %ecx je 0x85f85d cmpl $0x3, %r8d ja 0x85f992 leaq 0x225f0d(%rip), %rax # 0xa85750 movslq (%rax,%r8,4), %rcx addq %rax, %rcx jmpq *%rcx movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movss %xmm0, (%rdi) movss %xmm0, 0x4(%rdi) retq cmpl $0x3, %r8d ja 0x85f992 leaq 0x225ed2(%rip), %rax # 0xa85740 movslq (%rax,%r8,4), %rcx addq %rax, %rcx jmpq *%rcx movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movl $0x0, -0x8(%rsp) movq $0x0, -0x10(%rsp) xorl %eax, %eax movss (%rsi,%rax,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, -0x10(%rsp,%rax,4) incq %rax cmpq $0x3, %rax jne 0x85f891 movl -0x8(%rsp), %eax movl %eax, 0x8(%rsi) movq -0x10(%rsp), %rax movq %rax, (%rsi) retq movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movl 0x8(%rdx), %eax cvtsi2ss %rax, %xmm1 movl 0x4(%rdx), %eax cvtsi2ss %rax, %xmm2 addss %xmm0, %xmm1 movss %xmm1, (%rdi) movss %xmm2, 0x4(%rdi) retq movl (%rdx), %eax cvtsi2ss %rax, %xmm0 mulss (%rsi), %xmm0 movss %xmm0, (%rsi) movl 0x4(%rdx), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x4(%rsi), %xmm0 movss %xmm0, 0x4(%rsi) movl 0x8(%rdx), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x8(%rsi), %xmm0 jmp 0x85f98d movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movl 0x8(%rdx), %eax cvtsi2ss %rax, %xmm1 movl 0x4(%rdx), %eax cvtsi2ss %rax, %xmm2 movl 0xc(%rdx), %eax cvtsi2ss %rax, %xmm3 addss %xmm0, %xmm1 addss %xmm2, %xmm3 movss %xmm1, (%rdi) movss %xmm3, 0x4(%rdi) retq movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movl 0xc(%rdx), %eax cvtsi2ss %rax, %xmm1 mulss (%rsi), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, (%rsi) movl 0x4(%rdx), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x4(%rsi), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, 0x4(%rsi) movl 0x8(%rdx), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x8(%rsi), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, 0x8(%rsi) retq movl (%rdx), %eax cvtsi2ss %rax, %xmm0 movl 0x4(%rdx), %eax cvtsi2ss %rax, %xmm1 movss %xmm0, (%rdi) movss %xmm1, 0x4(%rdi) retq movl (%rdx), %eax cvtsi2ss %rax, %xmm0 mulss (%rsi), %xmm0 movss %xmm0, (%rsi) movl 0x4(%rdx), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x4(%rsi), %xmm0 movss %xmm0, 0x4(%rsi) retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createQuads<deqp::gls::GLValue::WrappedFloatType<double>>(int, int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::WrappedFloatType<double>, deqp::gls::GLValue::WrappedFloatType<double>, float)
char* RandomArrayGenerator::createQuads (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primitive, T min, T max, float gridSize) { int componentStride = sizeof(T); int quadStride = 0; if (stride == 0) stride = componentCount * componentStride; DE_ASSERT(stride >= componentCount * componentStride); switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* resultData = new char[offset + quadStride * count]; char* _data = resultData; resultData = resultData + offset; deRandom rnd; deRandom_init(&rnd, seed); switch (primitive) { case Array::PRIMITIVE_TRIANGLES: { const T minQuadSize = T::fromFloat(deFloatAbs(max.template to<float>() - min.template to<float>()) * gridSize); const T minDiff = minValue<T>() > minQuadSize ? minValue<T>() : minQuadSize; for (int quadNdx = 0; quadNdx < count; ++quadNdx) { T x1, x2; T y1, y2; T z, w; // attempt to find a good (i.e not extremely small) quad for (int attemptNdx = 0; attemptNdx < 4; ++attemptNdx) { x1 = roundTo(minDiff, getRandom<T>(rnd, min, max)); x2 = roundTo(minDiff, getRandom<T>(rnd, minDiff, abs<T>(max - x1))); y1 = roundTo(minDiff, getRandom<T>(rnd, min, max)); y2 = roundTo(minDiff, getRandom<T>(rnd, minDiff, abs<T>(max - y1))); z = (componentCount > 2) ? roundTo(minDiff, (getRandom<T>(rnd, min, max))) : (T::create(0)); w = (componentCount > 3) ? roundTo(minDiff, (getRandom<T>(rnd, min, max))) : (T::create(1)); // no additional components, all is good if (componentCount <= 2) break; // The result quad is too thin? if ((deFloatAbs(x2.template to<float>() + z.template to<float>()) < minDiff.template to<float>()) || (deFloatAbs(y2.template to<float>() + w.template to<float>()) < minDiff.template to<float>())) continue; // all ok break; } alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 2]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 2 + componentStride]), y1 + y2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 3]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 3 + componentStride]), y1 + y2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 4]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 4 + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 5]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 5 + componentStride]), y1 + y2); if (componentCount > 2) { for (int i = 0; i < 6; i++) alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * i + componentStride * 2]), z); } if (componentCount > 3) { for (int i = 0; i < 6; i++) alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * i + componentStride * 3]), w); } } break; } default: DE_ASSERT(false); break; } return _data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xd8, %rsp movss %xmm2, 0x8(%rsp) movsd %xmm1, 0x18(%rsp) movsd %xmm0, 0x10(%rsp) movl %r9d, %r12d movl %edx, %ebx movl %esi, %ebp movl %edi, %r15d leal (,%rbx,8), %r14d testl %r8d, %r8d cmovnel %r8d, %r14d leal (%r14,%r14), %edx xorl %eax, %eax cmpl $0x1, %r9d movq %rdx, 0xa0(%rsp) leal (%rdx,%rdx,2), %r13d cmovnel %eax, %r13d movl %r13d, %eax imull %esi, %eax movl %ecx, 0x4(%rsp) addl %ecx, %eax movslq %eax, %rdi callq 0x325740 movq %rax, 0x58(%rsp) leaq 0xc8(%rsp), %rdi movl %r15d, %esi callq 0x9fa2bc cmpl $0x1, %r12d jne 0x8608f4 testl %ebp, %ebp jle 0x8608f4 movslq 0x4(%rsp), %rax movq 0x58(%rsp), %r12 addq %rax, %r12 cvtsd2ss 0x18(%rsp), %xmm3 xorps %xmm0, %xmm0 cvtsd2ss 0x10(%rsp), %xmm0 subss %xmm0, %xmm3 movaps 0x1a0a5a(%rip), %xmm0 # 0xa00ed0 xorps %xmm3, %xmm0 movaps %xmm0, %xmm1 cmpless %xmm3, %xmm1 movaps %xmm1, %xmm2 movaps %xmm3, 0x60(%rsp) andps %xmm3, %xmm2 andnps %xmm0, %xmm1 orps %xmm2, %xmm1 mulss 0x8(%rsp), %xmm1 movss 0x1aea00(%rip), %xmm3 # 0xa0eea0 maxss %xmm1, %xmm3 xorps %xmm0, %xmm0 cvtss2sd %xmm3, %xmm0 movsd %xmm0, 0x8(%rsp) leal (%r14,%r14,2), %eax movq %rax, 0x98(%rsp) leal (,%r14,4), %eax movq %rax, 0x90(%rsp) leal (%r14,%r14,4), %eax movq %rax, 0x88(%rsp) movl %ebp, %eax movq %rax, 0x80(%rsp) movl $0x10, 0x24(%rsp) movl $0x18, 0x20(%rsp) xorl %ebp, %ebp leaq 0xc8(%rsp), %r15 movl %r13d, 0x3c(%rsp) movss %xmm3, 0x4(%rsp) xorl %r13d, %r13d movsd 0x10(%rsp), %xmm0 ucomisd 0x18(%rsp), %xmm0 ja 0x860531 movq %r15, %rdi callq 0x9fa367 mulss 0x60(%rsp), %xmm0 cvtss2sd %xmm0, %xmm0 addsd 0x10(%rsp), %xmm0 movsd %xmm0, 0x30(%rsp) movsd 0x8(%rsp), %xmm1 callq 0x325cd0 movsd 0x8(%rsp), %xmm1 movsd 0x30(%rsp), %xmm2 subsd %xmm0, %xmm2 movsd 0x18(%rsp), %xmm0 movsd %xmm2, 0x30(%rsp) subsd %xmm2, %xmm0 xorps %xmm2, %xmm2 cvtsd2ss %xmm0, %xmm2 andps 0x225170(%rip), %xmm2 # 0xa856e0 movss 0x4(%rsp), %xmm0 ucomiss %xmm2, %xmm0 movaps %xmm1, %xmm0 ja 0x8605ab movq %r15, %rdi movaps %xmm2, 0x40(%rsp) callq 0x9fa367 movsd 0x8(%rsp), %xmm1 movaps 0x40(%rsp), %xmm2 subss 0x4(%rsp), %xmm2 mulss %xmm0, %xmm2 xorps %xmm0, %xmm0 cvtss2sd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, 0xc0(%rsp) callq 0x325cd0 movsd %xmm0, 0xb8(%rsp) movsd 0x10(%rsp), %xmm0 ucomisd 0x18(%rsp), %xmm0 ja 0x8605e8 movq %r15, %rdi callq 0x9fa367 mulss 0x60(%rsp), %xmm0 cvtss2sd %xmm0, %xmm0 addsd 0x10(%rsp), %xmm0 movsd %xmm0, 0x40(%rsp) movsd 0x8(%rsp), %xmm1 callq 0x325cd0 movsd 0x8(%rsp), %xmm1 movsd 0x40(%rsp), %xmm2 subsd %xmm0, %xmm2 movsd 0x18(%rsp), %xmm0 movsd %xmm2, 0x40(%rsp) subsd %xmm2, %xmm0 xorps %xmm2, %xmm2 cvtsd2ss %xmm0, %xmm2 andps 0x2250b9(%rip), %xmm2 # 0xa856e0 movss 0x4(%rsp), %xmm0 ucomiss %xmm2, %xmm0 movaps %xmm1, %xmm0 ja 0x860662 movq %r15, %rdi movaps %xmm2, 0x70(%rsp) callq 0x9fa367 movsd 0x8(%rsp), %xmm1 movaps 0x70(%rsp), %xmm2 subss 0x4(%rsp), %xmm2 mulss %xmm0, %xmm2 xorps %xmm0, %xmm0 cvtss2sd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, 0x70(%rsp) callq 0x325cd0 movsd %xmm0, 0xb0(%rsp) xorpd %xmm7, %xmm7 cmpl $0x3, %ebx jl 0x8606c0 movsd 0x10(%rsp), %xmm0 ucomisd 0x18(%rsp), %xmm0 ja 0x8606a5 movq %r15, %rdi callq 0x9fa367 mulss 0x60(%rsp), %xmm0 cvtss2sd %xmm0, %xmm0 addsd 0x10(%rsp), %xmm0 movsd %xmm0, 0x28(%rsp) movsd 0x8(%rsp), %xmm1 callq 0x325cd0 movsd 0x28(%rsp), %xmm7 subsd %xmm0, %xmm7 movsd 0x2072ef(%rip), %xmm8 # 0xa679b8 cmpl $0x4, %ebx jl 0x860723 movsd %xmm7, 0x28(%rsp) movsd 0x10(%rsp), %xmm0 ucomisd 0x18(%rsp), %xmm0 ja 0x8606fa movq %r15, %rdi callq 0x9fa367 mulss 0x60(%rsp), %xmm0 cvtss2sd %xmm0, %xmm0 addsd 0x10(%rsp), %xmm0 movsd %xmm0, 0xa8(%rsp) movsd 0x8(%rsp), %xmm1 callq 0x325cd0 movsd 0xa8(%rsp), %xmm8 subsd %xmm0, %xmm8 movsd 0x28(%rsp), %xmm7 movsd 0xc0(%rsp), %xmm5 subsd 0xb8(%rsp), %xmm5 movsd 0x70(%rsp), %xmm6 subsd 0xb0(%rsp), %xmm6 cmpl $0x3, %ebx movss 0x4(%rsp), %xmm3 movaps 0x1a077c(%rip), %xmm4 # 0xa00ed0 jl 0x8607c9 xorps %xmm0, %xmm0 cvtsd2ss %xmm5, %xmm0 xorps %xmm1, %xmm1 cvtsd2ss %xmm7, %xmm1 addss %xmm0, %xmm1 movaps %xmm1, %xmm0 xorps %xmm4, %xmm0 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 andps %xmm2, %xmm1 andnps %xmm0, %xmm2 orps %xmm1, %xmm2 ucomiss %xmm2, %xmm3 jbe 0x86078c cmpl $0x2, %r13d jbe 0x8607c1 jmp 0x8607c9 xorps %xmm0, %xmm0 cvtsd2ss %xmm6, %xmm0 xorps %xmm1, %xmm1 cvtsd2ss %xmm8, %xmm1 addss %xmm0, %xmm1 movaps %xmm1, %xmm0 xorps %xmm4, %xmm0 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 andps %xmm2, %xmm1 andnps %xmm0, %xmm2 orps %xmm1, %xmm2 ucomiss %xmm2, %xmm3 jbe 0x8607c9 cmpl $0x3, %r13d jae 0x8607c9 incl %r13d jmp 0x86050b movl 0x3c(%rsp), %r13d movl %r13d, %eax imull %ebp, %eax leal 0x8(%rax), %edx movslq %eax, %rcx movsd 0x30(%rsp), %xmm0 movsd %xmm0, (%r12,%rcx) movslq %edx, %rdx movsd 0x40(%rsp), %xmm1 movsd %xmm1, (%r12,%rdx) leal (%rax,%r14), %edx movslq %edx, %rdx addsd %xmm0, %xmm5 movsd %xmm5, (%r12,%rdx) leal 0x8(%rcx,%r14), %edx movslq %edx, %rdx movsd %xmm1, (%r12,%rdx) movq 0xa0(%rsp), %rsi leal (%rax,%rsi), %edx movslq %edx, %rdx movsd %xmm0, (%r12,%rdx) leal 0x8(%rcx,%rsi), %edx movslq %edx, %rdx addsd %xmm1, %xmm6 movsd %xmm6, (%r12,%rdx) movq 0x98(%rsp), %rsi leal (%rax,%rsi), %edx movslq %edx, %rdx movsd %xmm0, (%r12,%rdx) leal 0x8(%rcx,%rsi), %edx movslq %edx, %rdx movsd %xmm6, (%r12,%rdx) movq 0x90(%rsp), %rsi leal (%rax,%rsi), %edx movslq %edx, %rdx movsd %xmm5, (%r12,%rdx) leal 0x8(%rcx,%rsi), %edx movslq %edx, %rdx movsd %xmm1, (%r12,%rdx) movq 0x88(%rsp), %rdx addl %edx, %eax cltq movsd %xmm5, (%r12,%rax) leal (%rcx,%rdx), %eax addl $0x8, %eax cltq movsd %xmm6, (%r12,%rax) cmpl $0x3, %ebx jl 0x8608ba movl $0x6, %eax movl 0x24(%rsp), %ecx movslq %ecx, %rcx movsd %xmm7, (%r12,%rcx) addl %r14d, %ecx decq %rax jne 0x8608a9 cmpl $0x4, %ebx jl 0x8608d9 movl $0x6, %eax movl 0x20(%rsp), %ecx movslq %ecx, %rcx movsd %xmm8, (%r12,%rcx) addl %r14d, %ecx decq %rax jne 0x8608c8 incq %rbp addl %r13d, 0x24(%rsp) addl %r13d, 0x20(%rsp) cmpq 0x80(%rsp), %rbp jne 0x860508 movq 0x58(%rsp), %rax addq $0xd8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createQuads<deqp::gls::GLValue::WrappedType<int>>(int, int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::WrappedType<int>, deqp::gls::GLValue::WrappedType<int>, float)
char* RandomArrayGenerator::createQuads (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primitive, T min, T max, float gridSize) { int componentStride = sizeof(T); int quadStride = 0; if (stride == 0) stride = componentCount * componentStride; DE_ASSERT(stride >= componentCount * componentStride); switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* resultData = new char[offset + quadStride * count]; char* _data = resultData; resultData = resultData + offset; deRandom rnd; deRandom_init(&rnd, seed); switch (primitive) { case Array::PRIMITIVE_TRIANGLES: { const T minQuadSize = T::fromFloat(deFloatAbs(max.template to<float>() - min.template to<float>()) * gridSize); const T minDiff = minValue<T>() > minQuadSize ? minValue<T>() : minQuadSize; for (int quadNdx = 0; quadNdx < count; ++quadNdx) { T x1, x2; T y1, y2; T z, w; // attempt to find a good (i.e not extremely small) quad for (int attemptNdx = 0; attemptNdx < 4; ++attemptNdx) { x1 = roundTo(minDiff, getRandom<T>(rnd, min, max)); x2 = roundTo(minDiff, getRandom<T>(rnd, minDiff, abs<T>(max - x1))); y1 = roundTo(minDiff, getRandom<T>(rnd, min, max)); y2 = roundTo(minDiff, getRandom<T>(rnd, minDiff, abs<T>(max - y1))); z = (componentCount > 2) ? roundTo(minDiff, (getRandom<T>(rnd, min, max))) : (T::create(0)); w = (componentCount > 3) ? roundTo(minDiff, (getRandom<T>(rnd, min, max))) : (T::create(1)); // no additional components, all is good if (componentCount <= 2) break; // The result quad is too thin? if ((deFloatAbs(x2.template to<float>() + z.template to<float>()) < minDiff.template to<float>()) || (deFloatAbs(y2.template to<float>() + w.template to<float>()) < minDiff.template to<float>())) continue; // all ok break; } alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 2]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 2 + componentStride]), y1 + y2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 3]), x1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 3 + componentStride]), y1 + y2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 4]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 4 + componentStride]), y1); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 5]), x1 + x2); alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * 5 + componentStride]), y1 + y2); if (componentCount > 2) { for (int i = 0; i < 6; i++) alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * i + componentStride * 2]), z); } if (componentCount > 3) { for (int i = 0; i < 6; i++) alignmentSafeAssignment<T>(&(resultData[quadNdx * quadStride + stride * i + componentStride * 3]), w); } } break; } default: DE_ASSERT(false); break; } return _data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movss %xmm0, 0x8(%rsp) movl %r9d, %r14d movl %ecx, %ebp movl %esi, %r12d movl %edi, %r15d movq %rdx, 0x10(%rsp) leal (,%rdx,4), %eax testl %r8d, %r8d cmovnel %r8d, %eax movq %rax, 0x50(%rsp) leal (%rax,%rax), %ecx xorl %eax, %eax cmpl $0x1, %r9d movq %rcx, 0x80(%rsp) leal (%rcx,%rcx,2), %ecx cmovnel %eax, %ecx movl %ecx, 0x18(%rsp) movl %ecx, %eax imull %esi, %eax addl %ebp, %eax movslq %eax, %rdi callq 0x325740 movq %rax, 0x48(%rsp) leaq 0x38(%rsp), %rdi movl %r15d, %esi callq 0x9fa2bc cmpl $0x1, %r14d jne 0x862477 movl 0xc8(%rsp), %r15d xorps %xmm0, %xmm0 cvtsi2ss %r15d, %xmm0 cvtsi2ssl 0xc0(%rsp), %xmm1 subss %xmm1, %xmm0 movaps 0x19ee5c(%rip), %xmm1 # 0xa00ed0 xorps %xmm0, %xmm1 movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 andps %xmm2, %xmm0 andnps %xmm1, %xmm2 orps %xmm0, %xmm2 mulss 0x8(%rsp), %xmm2 cvttss2si %xmm2, %eax cmpl $0x4000001, %eax # imm = 0x4000001 movl $0x4000000, %ebx # imm = 0x4000000 cmovgel %eax, %ebx testl %r12d, %r12d jle 0x862477 movslq %ebp, %rax movq 0x48(%rsp), %r8 addq %rax, %r8 movl %r15d, %eax subl 0xc0(%rsp), %eax movl %eax, 0xc(%rsp) cvtsi2ss %ebx, %xmm3 movq 0x50(%rsp), %rax leal (%rax,%rax,2), %ecx movq %rcx, 0x70(%rsp) leal (,%rax,4), %ecx movq %rcx, 0x68(%rsp) leal (%rax,%rax,4), %eax movq %rax, 0x60(%rsp) movl %r12d, %eax movq %rax, 0x58(%rsp) movl $0x8, %edi movl $0xc, %r9d movq $0x0, 0x20(%rsp) movaps 0x19edc7(%rip), %xmm4 # 0xa00ed0 movss %xmm3, 0x8(%rsp) movq %r8, 0x78(%rsp) movl %r9d, 0x28(%rsp) movl %edi, 0x2c(%rsp) movl $0x0, 0x1c(%rsp) movl 0xc0(%rsp), %eax movl %eax, %ebp cmpl %eax, %r15d jle 0x862159 leaq 0x38(%rsp), %rdi callq 0x9fa2ea movaps 0x19ed8c(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl 0xc(%rsp) movl %edx, %ebp addl 0xc0(%rsp), %ebp movl %ebp, %eax cltd idivl %ebx subl %edx, %ebp movl %r15d, %r14d subl %ebp, %r14d andl $0x7fffffff, %r14d # imm = 0x7FFFFFFF movl %ebx, %r12d subl %ebx, %r14d jbe 0x862197 leaq 0x38(%rsp), %rdi callq 0x9fa2ea movaps 0x19ed4a(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl %r14d movl %edx, %r12d addl %ebx, %r12d movl %r12d, %eax cltd idivl %ebx movl %edx, 0x34(%rsp) movl 0xc0(%rsp), %eax movl %eax, %r13d cmpl %eax, %r15d jle 0x8621d8 leaq 0x38(%rsp), %rdi callq 0x9fa2ea movaps 0x19ed0f(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl 0xc(%rsp) movl %edx, %r13d addl 0xc0(%rsp), %r13d movl %r13d, %eax cltd idivl %ebx subl %edx, %r13d subl %r13d, %r15d andl $0x7fffffff, %r15d # imm = 0x7FFFFFFF movl %ebx, %r14d subl %ebx, %r15d jbe 0x862215 leaq 0x38(%rsp), %rdi callq 0x9fa2ea movaps 0x19eccc(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl %r15d movl %edx, %r14d addl %ebx, %r14d movl %r14d, %eax cltd idivl %ebx movl %edx, %esi xorl %r15d, %r15d cmpl $0x3, 0x10(%rsp) jl 0x862271 movl 0xc0(%rsp), %eax movl %eax, %r15d cmpl %eax, 0xc8(%rsp) jle 0x862268 leaq 0x38(%rsp), %rdi movl %esi, %r15d callq 0x9fa2ea movl %r15d, %esi movaps 0x19ec7f(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl 0xc(%rsp) movl %edx, %r15d addl 0xc0(%rsp), %r15d movl %r15d, %eax cltd idivl %ebx subl %edx, %r15d movl $0x1, %ecx cmpl $0x4, 0x10(%rsp) jl 0x8622c4 movl 0xc0(%rsp), %eax movl %eax, %ecx cmpl %eax, 0xc8(%rsp) jle 0x8622bd leaq 0x38(%rsp), %rdi movl %esi, 0x30(%rsp) callq 0x9fa2ea movl 0x30(%rsp), %esi movaps 0x19ec28(%rip), %xmm4 # 0xa00ed0 movss 0x8(%rsp), %xmm3 xorl %edx, %edx divl 0xc(%rsp) movl %edx, %ecx addl 0xc0(%rsp), %ecx movl %ecx, %eax cltd idivl %ebx subl %edx, %ecx subl 0x34(%rsp), %r12d subl %esi, %r14d cmpl $0x3, 0x10(%rsp) movl 0x1c(%rsp), %eax jl 0x862355 xorps %xmm0, %xmm0 cvtsi2ss %r12d, %xmm0 xorps %xmm1, %xmm1 cvtsi2ss %r15d, %xmm1 addss %xmm0, %xmm1 movaps %xmm1, %xmm0 xorps %xmm4, %xmm0 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 andps %xmm2, %xmm1 andnps %xmm0, %xmm2 orps %xmm1, %xmm2 ucomiss %xmm2, %xmm3 jbe 0x86230e cmpl $0x2, %eax jbe 0x862342 jmp 0x862355 xorps %xmm0, %xmm0 cvtsi2ss %r14d, %xmm0 xorps %xmm1, %xmm1 cvtsi2ss %ecx, %xmm1 addss %xmm0, %xmm1 movaps %xmm1, %xmm0 xorps %xmm4, %xmm0 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 andps %xmm2, %xmm1 andnps %xmm0, %xmm2 orps %xmm1, %xmm2 ucomiss %xmm2, %xmm3 jbe 0x862355 cmpl $0x3, %eax jae 0x862355 incl %eax movl %eax, 0x1c(%rsp) movl 0xc8(%rsp), %r15d jmp 0x862125 movl 0x18(%rsp), %eax imull 0x20(%rsp), %eax leal 0x4(%rax), %esi movslq %eax, %rdx movq 0x78(%rsp), %r9 movl %ebp, (%r9,%rdx) movslq %esi, %rsi movl %r13d, (%r9,%rsi) movq 0x50(%rsp), %rdi leal (%rax,%rdi), %esi addl %ebp, %r12d movslq %esi, %rsi movl %r12d, (%r9,%rsi) leal (%rdx,%rdi), %esi addl $0x4, %esi movslq %esi, %rsi movl %r13d, (%r9,%rsi) movq 0x80(%rsp), %r8 leal (%rax,%r8), %esi addl %r13d, %r14d movslq %esi, %rsi movl %ebp, (%r9,%rsi) leal (%rdx,%r8), %esi addl $0x4, %esi movslq %esi, %rsi movl %r14d, (%r9,%rsi) movq 0x70(%rsp), %r8 leal (%rax,%r8), %esi movslq %esi, %rsi movl %ebp, (%r9,%rsi) leal 0x4(%rdx,%r8), %esi movslq %esi, %rsi movl %r14d, (%r9,%rsi) movq 0x68(%rsp), %r8 leal (%rax,%r8), %esi movslq %esi, %rsi movl %r12d, (%r9,%rsi) leal 0x4(%rdx,%r8), %esi movslq %esi, %rsi movl %r13d, (%r9,%rsi) movq 0x60(%rsp), %rsi addl %esi, %eax cltq movl %r12d, (%r9,%rax) leal 0x4(%rdx,%rsi), %eax cltq movl %r14d, (%r9,%rax) movq %r9, %r8 movq %rdi, %rsi cmpl $0x3, 0x10(%rsp) movl 0x2c(%rsp), %edi jl 0x86242c movl $0x6, %eax movl %edi, %edx movslq %edx, %rdx movl %r15d, (%r8,%rdx) addl %esi, %edx decq %rax jne 0x86241e cmpl $0x4, 0x10(%rsp) movl 0xc8(%rsp), %r15d movl 0x28(%rsp), %r9d jl 0x862456 movl $0x6, %eax movl %r9d, %edx movslq %edx, %rdx movl %ecx, (%r8,%rdx) addl %esi, %edx decq %rax jne 0x862448 movq 0x20(%rsp), %rcx incq %rcx movl 0x18(%rsp), %eax addl %eax, %edi addl %eax, %r9d movq %rcx, 0x20(%rsp) cmpq 0x58(%rsp), %rcx jne 0x862114 movq 0x48(%rsp), %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createPerQuads<deqp::gls::GLValue::WrappedFloatType<float>>(int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::WrappedFloatType<float>, deqp::gls::GLValue::WrappedFloatType<float>)
char* RandomArrayGenerator::createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive primitive, T min, T max) { deRandom rnd; deRandom_init(&rnd, seed); int componentStride = sizeof(T); if (stride == 0) stride = componentStride * componentCount; int quadStride = 0; switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* data = new char[count * quadStride]; for (int quadNdx = 0; quadNdx < count; quadNdx++) { for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) { T val = getRandom<T>(rnd, min, max); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); } } return data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movss %xmm1, 0x4(%rsp) movss %xmm0, (%rsp) movl %r8d, %r14d movl %ecx, %r15d movl %edx, %ebx movl %esi, %ebp movl %edi, %esi leaq 0x68(%rsp), %rdi callq 0x9fa2bc movq %rbx, 0x20(%rsp) leal (,%rbx,4), %ebx testl %r15d, %r15d cmovnel %r15d, %ebx leal (%rbx,%rbx), %r15d xorl %eax, %eax cmpl $0x1, %r14d leal (%r15,%r15,2), %ecx cmovnel %eax, %ecx movl %ecx, 0x10(%rsp) movl %ecx, %eax imull %ebp, %eax movslq %eax, %rdi callq 0x325740 movss (%rsp), %xmm1 movq %rax, 0x18(%rsp) testl %ebp, %ebp jle 0x8630a1 movss 0x4(%rsp), %xmm0 subss %xmm1, %xmm0 movss %xmm0, 0x14(%rsp) movslq %ebx, %rax movq %rax, 0x48(%rsp) movslq %r15d, %rax movq %rax, 0x40(%rsp) leal (%rbx,%rbx,2), %eax cltq movq %rax, 0x38(%rsp) movl %ebx, %eax shll $0x2, %eax cltq movq %rax, 0x30(%rsp) leal (%rbx,%rbx,4), %eax cltq movq %rax, 0x28(%rsp) movl %ebp, %eax movq %rax, 0x50(%rsp) movl 0x20(%rsp), %r13d shlq $0x2, %r13 movq $0x0, 0x8(%rsp) cmpl $0x0, 0x20(%rsp) jle 0x863089 movl 0x10(%rsp), %eax imull 0x8(%rsp), %eax movslq %eax, %rbp addq 0x18(%rsp), %rbp movq 0x48(%rsp), %rax leaq (%rax,%rbp), %r15 movq 0x40(%rsp), %rax leaq (%rax,%rbp), %r12 movq 0x38(%rsp), %rax leaq (%rbp,%rax), %rdi movq 0x30(%rsp), %rax leaq (%rax,%rbp), %r14 movq 0x28(%rsp), %rax leaq (%rax,%rbp), %r10 xorl %ebx, %ebx movq %rdi, 0x60(%rsp) movq %r10, 0x58(%rsp) ucomiss 0x4(%rsp), %xmm1 movaps %xmm1, %xmm0 ja 0x86305a leaq 0x68(%rsp), %rdi callq 0x9fa367 movq 0x58(%rsp), %r10 movq 0x60(%rsp), %rdi movss (%rsp), %xmm1 mulss 0x14(%rsp), %xmm0 addss %xmm1, %xmm0 movslq %ebx, %rax movss %xmm0, (%rbp,%rax) movss %xmm0, (%r15,%rax) movss %xmm0, (%r12,%rax) movss %xmm0, (%rdi,%rax) movss %xmm0, (%r14,%rax) movss %xmm0, (%r10,%rax) addq $0x4, %rbx cmpq %rbx, %r13 jne 0x86302d movq 0x8(%rsp), %rdx incq %rdx movq %rdx, 0x8(%rsp) cmpq 0x50(%rsp), %rdx jne 0x862fd7 movq 0x18(%rsp), %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createPerQuads<deqp::gls::GLValue::WrappedType<unsigned char>>(int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::WrappedType<unsigned char>, deqp::gls::GLValue::WrappedType<unsigned char>)
char* RandomArrayGenerator::createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive primitive, T min, T max) { deRandom rnd; deRandom_init(&rnd, seed); int componentStride = sizeof(T); if (stride == 0) stride = componentStride * componentCount; int quadStride = 0; switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* data = new char[count * quadStride]; for (int quadNdx = 0; quadNdx < count; quadNdx++) { for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) { T val = getRandom<T>(rnd, min, max); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); } } return data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r9d, %ebx movl %r8d, %r14d movl %ecx, %r15d movl %edx, %ebp movl %esi, %r13d movl %edi, %esi leaq 0x78(%rsp), %rdi callq 0x9fa2bc testl %r15d, %r15d movl %ebp, 0x4(%rsp) cmovel %ebp, %r15d leal (%r15,%r15), %r12d xorl %ecx, %ecx cmpl $0x1, %r14d leal (%r12,%r12,2), %edx movl $0x0, %eax movq %rax, 0x10(%rsp) cmovnel %ecx, %edx movl %edx, 0x1c(%rsp) movl %edx, %eax imull %r13d, %eax movslq %eax, %rdi callq 0x325740 movq %rax, 0x8(%rsp) testl %r13d, %r13d jle 0x86395d movb 0xc0(%rsp), %bpl movzbl %bpl, %edx movzbl %bl, %eax subl %eax, %edx movl %edx, 0x24(%rsp) movslq %r15d, %rdx movslq %r12d, %rsi leal (%r15,%r15,2), %eax movslq %eax, %rdi movl %r15d, %eax shll $0x2, %eax movslq %eax, %r8 leal (%r15,%r15,4), %eax movslq %eax, %r9 movl %r13d, %eax movq %rax, 0x50(%rsp) movl 0x4(%rsp), %r12d movq 0x8(%rsp), %rax addq %rax, %rdx movq %rdx, 0x48(%rsp) addq %rax, %rsi movq %rsi, 0x40(%rsp) addq %rax, %rdi movq %rdi, 0x38(%rsp) addq %rax, %r8 movq %r8, 0x30(%rsp) addq %rax, %r9 movq %r9, 0x28(%rsp) xorl %edx, %edx movl %ebx, 0x20(%rsp) movq %rdx, 0x58(%rsp) cmpl $0x0, 0x4(%rsp) jle 0x86393c movslq 0x10(%rsp), %r15 movq 0x8(%rsp), %rax leaq (%rax,%r15), %r13 movq 0x48(%rsp), %rax leaq (%rax,%r15), %rdi movq 0x40(%rsp), %rax leaq (%rax,%r15), %r9 movq 0x38(%rsp), %rax leaq (%rax,%r15), %r11 movq 0x30(%rsp), %rax addq %r15, %rax addq 0x28(%rsp), %r15 xorl %r14d, %r14d movq %rdi, 0x70(%rsp) movq %r9, 0x68(%rsp) movq %rax, 0x60(%rsp) movl %ebx, %edx cmpb %bpl, %bl jae 0x86391b leaq 0x78(%rsp), %rdi movq %r11, %rbx callq 0x9fa2ea movq %rbx, %r11 movq 0x68(%rsp), %r9 movq 0x70(%rsp), %rdi movl 0x20(%rsp), %ebx xorl %edx, %edx divl 0x24(%rsp) movq 0x60(%rsp), %rax addb %bl, %dl movb %dl, (%r13,%r14) movb %dl, (%rdi,%r14) movb %dl, (%r9,%r14) movb %dl, (%r11,%r14) movb %dl, (%rax,%r14) movb %dl, (%r15,%r14) incq %r14 cmpq %r14, %r12 jne 0x8638e9 movq 0x58(%rsp), %rdx incq %rdx movq 0x10(%rsp), %rax addl 0x1c(%rsp), %eax movq %rax, 0x10(%rsp) cmpq 0x50(%rsp), %rdx jne 0x863891 movq 0x8(%rsp), %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createPerQuads<deqp::gls::GLValue::WrappedType<unsigned int>>(int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::WrappedType<unsigned int>, deqp::gls::GLValue::WrappedType<unsigned int>)
char* RandomArrayGenerator::createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive primitive, T min, T max) { deRandom rnd; deRandom_init(&rnd, seed); int componentStride = sizeof(T); if (stride == 0) stride = componentStride * componentCount; int quadStride = 0; switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* data = new char[count * quadStride]; for (int quadNdx = 0; quadNdx < count; quadNdx++) { for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) { T val = getRandom<T>(rnd, min, max); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); } } return data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r9d, %ebx movl %r8d, %r15d movl %ecx, %r12d movl %edx, %r14d movl %esi, %ebp movl %edi, %esi leaq 0x78(%rsp), %rdi callq 0x9fa2bc movq %r14, 0x28(%rsp) leal (,%r14,4), %r14d testl %r12d, %r12d cmovnel %r12d, %r14d leal (%r14,%r14), %r12d xorl %eax, %eax cmpl $0x1, %r15d leal (%r12,%r12,2), %ecx cmovnel %eax, %ecx movl %ecx, 0x14(%rsp) movl %ecx, %eax imull %ebp, %eax movslq %eax, %rdi callq 0x325740 movq %rax, 0x20(%rsp) testl %ebp, %ebp jle 0x863ccd movl 0xc0(%rsp), %ecx movl %ecx, %eax subl %ebx, %eax movl %eax, 0x1c(%rsp) movslq %r14d, %rax movq %rax, 0x50(%rsp) movslq %r12d, %rax movq %rax, 0x48(%rsp) leal (%r14,%r14,2), %eax cltq movq %rax, 0x40(%rsp) movl %r14d, %eax shll $0x2, %eax cltq movq %rax, 0x38(%rsp) leal (%r14,%r14,4), %eax cltq movq %rax, 0x30(%rsp) movl %ebp, %eax movq %rax, 0x58(%rsp) movl 0x28(%rsp), %esi shlq $0x2, %rsi movq $0x0, 0x8(%rsp) movl %ebx, 0x18(%rsp) cmpl $0x0, 0x28(%rsp) jle 0x863cb5 movl 0x14(%rsp), %eax imull 0x8(%rsp), %eax movslq %eax, %r13 addq 0x20(%rsp), %r13 movq 0x50(%rsp), %rax leaq (%rax,%r13), %rdi movq 0x48(%rsp), %rax leaq (%rax,%r13), %r8 movq 0x40(%rsp), %rax leaq (%r13,%rax), %r12 movq 0x38(%rsp), %rax leaq (%rax,%r13), %r11 movq 0x30(%rsp), %rax leaq (%rax,%r13), %r14 xorl %r15d, %r15d movq %rdi, 0x70(%rsp) movq %r8, 0x68(%rsp) movq %r14, 0x60(%rsp) movl %ebx, %edx cmpl %ebx, %ecx jbe 0x863c91 leaq 0x78(%rsp), %rdi movl %ecx, %ebp movq %rsi, %r14 movq %r11, %rbx callq 0x9fa2ea movq %rbx, %r11 movq 0x68(%rsp), %r8 movl 0x18(%rsp), %ebx movq 0x70(%rsp), %rdi movq %r14, %rsi movq 0x60(%rsp), %r14 movl %ebp, %ecx xorl %edx, %edx divl 0x1c(%rsp) addl %ebx, %edx movslq %r15d, %rax movl %edx, (%r13,%rax) movl %edx, (%rdi,%rax) movl %edx, (%r8,%rax) movl %edx, (%r12,%rax) movl %edx, (%r11,%rax) movl %edx, (%r14,%rax) addq $0x4, %r15 cmpq %r15, %rsi jne 0x863c56 movq 0x8(%rsp), %rdx incq %rdx movq %rdx, 0x8(%rsp) cmpq 0x58(%rsp), %rdx jne 0x863bfa movq 0x20(%rsp), %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
char* deqp::gls::RandomArrayGenerator::createPerQuads<deqp::gls::GLValue::Half>(int, int, int, int, deqp::gls::Array::Primitive, deqp::gls::GLValue::Half, deqp::gls::GLValue::Half)
char* RandomArrayGenerator::createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive primitive, T min, T max) { deRandom rnd; deRandom_init(&rnd, seed); int componentStride = sizeof(T); if (stride == 0) stride = componentStride * componentCount; int quadStride = 0; switch (primitive) { case Array::PRIMITIVE_TRIANGLES: quadStride = stride * 6; break; default: DE_ASSERT(false); break; } char* data = new char[count * quadStride]; for (int quadNdx = 0; quadNdx < count; quadNdx++) { for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) { T val = getRandom<T>(rnd, min, max); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); alignmentSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); } } return data; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r9d, %ebx movl %r8d, %r15d movl %ecx, %r12d movl %edx, %r14d movl %esi, %r13d movl %edi, %esi leaq 0x78(%rsp), %rdi callq 0x9fa2bc movq %r14, 0x20(%rsp) addl %r14d, %r14d testl %r12d, %r12d cmovnel %r12d, %r14d leal (%r14,%r14), %r12d xorl %eax, %eax cmpl $0x1, %r15d leal (%r12,%r12,2), %ecx cmovnel %eax, %ecx movl %ecx, 0x10(%rsp) movl %ecx, %eax imull %r13d, %eax movslq %eax, %rdi callq 0x325740 movq %rax, 0x18(%rsp) testl %r13d, %r13d jle 0x86408e movslq %r14d, %rax movq %rax, 0x48(%rsp) movslq %r12d, %rax movq %rax, 0x40(%rsp) leal (%r14,%r14,2), %eax cltq movq %rax, 0x38(%rsp) movl %r14d, %eax shll $0x2, %eax cltq movq %rax, 0x30(%rsp) leal (%r14,%r14,4), %eax cltq movq %rax, 0x28(%rsp) movl %r13d, %eax movq %rax, 0x50(%rsp) movl 0x20(%rsp), %eax addq %rax, %rax movq %rax, 0x58(%rsp) movq $0x0, 0x8(%rsp) movq %rsp, %r12 cmpl $0x0, 0x20(%rsp) jle 0x864076 movl 0x10(%rsp), %eax imull 0x8(%rsp), %eax movslq %eax, %r13 addq 0x18(%rsp), %r13 movq 0x48(%rsp), %rax addq %r13, %rax movq %rax, 0x70(%rsp) movq 0x40(%rsp), %rax addq %r13, %rax movq %rax, 0x68(%rsp) movq 0x38(%rsp), %rax addq %r13, %rax movq %rax, 0x60(%rsp) movq 0x30(%rsp), %rax leaq (%rax,%r13), %rbp movq 0x28(%rsp), %rax leaq (%rax,%r13), %r15 xorl %r14d, %r14d movzwl 0xc0(%rsp), %eax movw %ax, (%rsp) movq %r12, %rdi callq 0x34a23c movl %eax, 0x4(%rsp) movw %bx, (%rsp) movq %r12, %rdi callq 0x34a23c movd %eax, %xmm0 ucomiss 0x4(%rsp), %xmm0 movl %ebx, %eax ja 0x864039 movzwl 0xc0(%rsp), %eax movw %ax, (%rsp) movq %r12, %rdi callq 0x34a23c movl %eax, 0x4(%rsp) movw %bx, (%rsp) movq %r12, %rdi callq 0x34a23c movl %eax, 0x14(%rsp) leaq 0x78(%rsp), %rdi callq 0x9fa367 movss 0x4(%rsp), %xmm1 movss 0x14(%rsp), %xmm2 subss %xmm2, %xmm1 mulss %xmm0, %xmm1 addss %xmm2, %xmm1 movss %xmm1, (%rsp) movq %r12, %rdi callq 0x8641ae movslq %r14d, %rcx movw %ax, (%r13,%rcx) movq 0x70(%rsp), %rdx movw %ax, (%rdx,%rcx) movq 0x68(%rsp), %rdx movw %ax, (%rdx,%rcx) movq 0x60(%rsp), %rdx movw %ax, (%rdx,%rcx) movw %ax, (%rbp,%rcx) movw %ax, (%r15,%rcx) addq $0x2, %r14 cmpq %r14, 0x58(%rsp) jne 0x863fb1 movq 0x8(%rsp), %rcx incq %rcx movq %rcx, 0x8(%rsp) cmpq 0x50(%rsp), %rcx jne 0x863f59 movq 0x18(%rsp), %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsVertexArrayTests.cpp
deqp::gls::AttributePack::newArray(deqp::gls::DrawTestSpec::Storage)
void AttributePack::newArray (DrawTestSpec::Storage storage) { m_arrays.push_back(new AttributeArray(storage, m_ctx)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx movl $0x58, %edi callq 0x325210 movq %rax, %r14 movq 0x10(%rbx), %rdx movq %rax, %rdi movl %ebp, %esi callq 0x864772 movq 0x20(%rbx), %rax cmpq 0x28(%rbx), %rax je 0x864682 movq %r14, (%rax) addq $0x8, 0x20(%rbx) jmp 0x86473f movq 0x18(%rbx), %rdx movq %rax, %r15 subq %rdx, %r15 movabsq $0x7ffffffffffffff8, %rcx # imm = 0x7FFFFFFFFFFFFFF8 cmpq %rcx, %r15 je 0x86474e movq %r15, %r12 sarq $0x3, %r12 cmpq %rdx, %rax movl $0x1, %eax cmovneq %r12, %rax leaq (%rax,%r12), %rbp movabsq $0xfffffffffffffff, %rcx # imm = 0xFFFFFFFFFFFFFFF cmpq %rcx, %rbp cmovaeq %rcx, %rbp addq %r12, %rax cmovbq %rcx, %rbp testq %rbp, %rbp je 0x8646eb leaq (,%rbp,8), %rdi movq %rdx, %r13 callq 0x325210 movq %r13, %rdx movq %rax, %r13 jmp 0x8646ee xorl %r13d, %r13d movq %r14, (%r13,%r12,8) testq %r15, %r15 jle 0x86470c movq %r13, %rdi movq %rdx, %rsi movq %rdx, %r14 movq %r15, %rdx callq 0x325220 movq %r14, %rdx leaq (%r15,%r13), %r14 addq $0x8, %r14 testq %rdx, %rdx je 0x864728 movq 0x28(%rbx), %rsi subq %rdx, %rsi movq %rdx, %rdi callq 0x3251a0 movq %r13, 0x18(%rbx) movq %r14, 0x20(%rbx) leaq (,%rbp,8), %rax addq %r13, %rax movq %rax, 0x28(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x197260(%rip), %rdi # 0x9fb9b5 callq 0x325930 movq %rax, %rbx movl $0x58, %esi movq %r14, %rdi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::AttributePack::render(deqp::gls::DrawTestSpec::Primitive, deqp::gls::DrawTestSpec::DrawMethod, int, int, deqp::gls::DrawTestSpec::IndexType, void const*, int, int, int, int, int, float, float, deqp::gls::(anonymous namespace)::AttributeArray*)
void AttributePack::render (DrawTestSpec::Primitive primitive, DrawTestSpec::DrawMethod drawMethod, int firstVertex, int vertexCount, DrawTestSpec::IndexType indexType, const void* indexOffset, int rangeStart, int rangeEnd, int instanceCount, int indirectOffset, int baseVertex, float coordScale, float colorScale, AttributeArray* indexArray) { DE_ASSERT(m_program != DE_NULL); DE_ASSERT(m_programID != 0); m_ctx.viewport(0, 0, m_screen.getWidth(), m_screen.getHeight()); m_ctx.clearColor(0.0, 0.0, 0.0, 1.0); m_ctx.clear(GL_COLOR_BUFFER_BIT); m_ctx.useProgram(m_programID); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glUseProgram()"); m_ctx.uniform1f(m_ctx.getUniformLocation(m_programID, "u_coordScale"), coordScale); m_ctx.uniform1f(m_ctx.getUniformLocation(m_programID, "u_colorScale"), colorScale); if (m_useVao) m_ctx.bindVertexArray(m_vaoID); if (indexArray) indexArray->bindIndexArray(DrawTestSpec::TARGET_ELEMENT_ARRAY); for (int arrayNdx = 0; arrayNdx < (int)m_arrays.size(); arrayNdx++) { std::stringstream attribName; attribName << "a_" << arrayNdx; deUint32 loc = m_ctx.getAttribLocation(m_programID, attribName.str().c_str()); if (m_arrays[arrayNdx]->isBound()) { m_ctx.enableVertexAttribArray(loc); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glEnableVertexAttribArray()"); } m_arrays[arrayNdx]->bindAttribute(loc); } if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS) { m_ctx.drawArrays(primitiveToGL(primitive), firstVertex, vertexCount); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArrays()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED) { m_ctx.drawArraysInstanced(primitiveToGL(primitive), firstVertex, vertexCount, instanceCount); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysInstanced()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) { m_ctx.drawElements(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), indexOffset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElements()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED) { m_ctx.drawRangeElements(primitiveToGL(primitive), rangeStart, rangeEnd, vertexCount, indexTypeToGL(indexType), indexOffset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawRangeElements()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED) { m_ctx.drawElementsInstanced(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), indexOffset, instanceCount); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsInstanced()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT) { struct DrawCommand { GLuint count; GLuint primCount; GLuint first; GLuint reservedMustBeZero; }; deUint8* buffer = new deUint8[sizeof(DrawCommand) + indirectOffset]; { DrawCommand command; command.count = vertexCount; command.primCount = instanceCount; command.first = firstVertex; command.reservedMustBeZero = 0; memcpy(buffer + indirectOffset, &command, sizeof(command)); if (m_logEnabled) m_testCtx.getLog() << tcu::TestLog::Message << "DrawArraysIndirectCommand:\n" << "\tcount: " << command.count << "\n" << "\tprimCount: " << command.primCount << "\n" << "\tfirst: " << command.first << "\n" << "\treservedMustBeZero: " << command.reservedMustBeZero << "\n" << tcu::TestLog::EndMessage; } GLuint indirectBuf = 0; m_ctx.genBuffers(1, &indirectBuf); m_ctx.bindBuffer(GL_DRAW_INDIRECT_BUFFER, indirectBuf); m_ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(DrawCommand) + indirectOffset, buffer, GL_STATIC_DRAW); delete [] buffer; GLU_EXPECT_NO_ERROR(m_ctx.getError(), "Setup draw indirect buffer"); m_ctx.drawArraysIndirect(primitiveToGL(primitive), (const deInt8*)DE_NULL + indirectOffset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysIndirect()"); m_ctx.deleteBuffers(1, &indirectBuf); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT) { struct DrawCommand { GLuint count; GLuint primCount; GLuint firstIndex; GLint baseVertex; GLuint reservedMustBeZero; }; deUint8* buffer = new deUint8[sizeof(DrawCommand) + indirectOffset]; { DrawCommand command; // index offset must be converted to firstIndex by dividing with the index element size DE_ASSERT(((const deUint8*)indexOffset - (const deUint8*)DE_NULL) % gls::DrawTestSpec::indexTypeSize(indexType) == 0); // \note This is checked in spec validation command.count = vertexCount; command.primCount = instanceCount; command.firstIndex = (glw::GLuint)(((const deUint8*)indexOffset - (const deUint8*)DE_NULL) / gls::DrawTestSpec::indexTypeSize(indexType)); command.baseVertex = baseVertex; command.reservedMustBeZero = 0; memcpy(buffer + indirectOffset, &command, sizeof(command)); if (m_logEnabled) m_testCtx.getLog() << tcu::TestLog::Message << "DrawElementsIndirectCommand:\n" << "\tcount: " << command.count << "\n" << "\tprimCount: " << command.primCount << "\n" << "\tfirstIndex: " << command.firstIndex << "\n" << "\tbaseVertex: " << command.baseVertex << "\n" << "\treservedMustBeZero: " << command.reservedMustBeZero << "\n" << tcu::TestLog::EndMessage; } GLuint indirectBuf = 0; m_ctx.genBuffers(1, &indirectBuf); m_ctx.bindBuffer(GL_DRAW_INDIRECT_BUFFER, indirectBuf); m_ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(DrawCommand) + indirectOffset, buffer, GL_STATIC_DRAW); delete [] buffer; GLU_EXPECT_NO_ERROR(m_ctx.getError(), "Setup draw indirect buffer"); m_ctx.drawElementsIndirect(primitiveToGL(primitive), indexTypeToGL(indexType), (const deInt8*)DE_NULL + indirectOffset); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysIndirect()"); m_ctx.deleteBuffers(1, &indirectBuf); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX) { m_ctx.drawElementsBaseVertex(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), indexOffset, baseVertex); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsBaseVertex()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX) { m_ctx.drawElementsInstancedBaseVertex(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), indexOffset, instanceCount, baseVertex); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsInstancedBaseVertex()"); } else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) { m_ctx.drawRangeElementsBaseVertex(primitiveToGL(primitive), rangeStart, rangeEnd, vertexCount, indexTypeToGL(indexType), indexOffset, baseVertex); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawRangeElementsBaseVertex()"); } else DE_ASSERT(DE_FALSE); for (int arrayNdx = 0; arrayNdx < (int)m_arrays.size(); arrayNdx++) { if (m_arrays[arrayNdx]->isBound()) { std::stringstream attribName; attribName << "a_" << arrayNdx; deUint32 loc = m_ctx.getAttribLocation(m_programID, attribName.str().c_str()); m_ctx.disableVertexAttribArray(loc); GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDisableVertexAttribArray()"); } } if (m_useVao) m_ctx.bindVertexArray(0); m_ctx.useProgram(0); m_ctx.readPixels(m_screen, 0, 0, m_screen.getWidth(), m_screen.getHeight()); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1e8, %rsp # imm = 0x1E8 movss %xmm1, 0x28(%rsp) movss %xmm0, 0x30(%rsp) movl %r9d, 0x24(%rsp) movl %r8d, 0x1c(%rsp) movl %ecx, %ebp movl %edx, 0x5c(%rsp) movl %esi, 0x20(%rsp) movq %rdi, %rbx movq 0x250(%rsp), %r15 movq 0x10(%rdi), %rdi movl 0x38(%rbx), %ecx movl 0x3c(%rbx), %r8d movq (%rdi), %rax xorl %esi, %esi xorl %edx, %edx callq *0x28(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax movss 0x190162(%rip), %xmm3 # 0x9fbca0 xorps %xmm0, %xmm0 xorps %xmm1, %xmm1 xorps %xmm2, %xmm2 callq *0x150(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x4000, %esi # imm = 0x4000 callq *0x168(%rax) movq 0x10(%rbx), %rdi movl 0x54(%rbx), %esi movq (%rdi), %rax callq *0x3b0(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1ea99f(%rip), %rsi # 0xa56522 leaq 0x21aee0(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x78f, %ecx # imm = 0x78F callq 0x8b6518 movq 0x10(%rbx), %r14 movl 0x54(%rbx), %esi movq (%r14), %rax leaq 0x219f33(%rip), %rdx # 0xa85ada movq %r14, %rdi callq *0x330(%rax) movq (%r14), %rcx movq %r14, %rdi movl %eax, %esi movss 0x30(%rsp), %xmm0 callq *0x2d0(%rcx) movq 0x10(%rbx), %r14 movl 0x54(%rbx), %esi movq (%r14), %rax leaq 0x1ae0c9(%rip), %rdx # 0xa19c9e movq %r14, %rdi callq *0x330(%rax) movq (%r14), %rcx movq %r14, %rdi movl %eax, %esi movss 0x28(%rsp), %xmm0 callq *0x2d0(%rcx) cmpb $0x1, 0x50(%rbx) jne 0x86bc08 movq 0x10(%rbx), %rdi movl 0x58(%rbx), %esi movq (%rdi), %rax callq *0x258(%rax) movl %ebp, 0x28(%rsp) testq %r15, %r15 je 0x86bc2d cmpl $0x1, (%r15) jne 0x86bc2d movq 0x8(%r15), %rdi movl 0x10(%r15), %edx movq (%rdi), %rax movl $0x8893, %esi # imm = 0x8893 callq *0x128(%rax) movq 0x20(%rbx), %rax subq 0x18(%rbx), %rax shrq $0x3, %rax testl %eax, %eax jle 0x86c007 leaq 0x70(%rsp), %rbp xorl %r12d, %r12d leaq 0x60(%rsp), %r13 movq %r13, %rdi callq 0x3254d0 movl $0x2, %edx movq %rbp, %rdi leaq 0x21a11a(%rip), %rsi # 0xa85d7f callq 0x325e70 movq %rbp, %rdi movl %r12d, %esi callq 0x325530 movq 0x10(%rbx), %r14 movl 0x54(%rbx), %r15d leaq 0x38(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x325660 movq 0x38(%rsp), %rdx movq (%r14), %rax movq %r14, %rdi movl %r15d, %esi callq *0x2c8(%rax) movl %eax, %r14d movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0x86bcbf movq 0x48(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x18(%rbx), %rax movq (%rax,%r12,8), %rax cmpb $0x1, 0x24(%rax) jne 0x86bd04 movq 0x10(%rbx), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x280(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl %eax, %edi leaq 0x1ea8c5(%rip), %rsi # 0xa565b8 leaq 0x21ad70(%rip), %rdx # 0xa86a6a movl $0x7a4, %ecx # imm = 0x7A4 callq 0x8b6518 movq 0x18(%rbx), %rax movq (%rax,%r12,8), %r15 cmpb $0x0, 0x24(%r15) je 0x86bd71 movl (%r15), %eax testl %eax, %eax je 0x86bdd5 cmpl $0x1, %eax jne 0x86bd69 movq 0x8(%r15), %rdi movslq 0x28(%r15), %rax leaq 0x219cd6(%rip), %rcx # 0xa85a08 movl (%rcx,%rax,4), %esi movl 0x10(%r15), %edx movq (%rdi), %rax callq *0x128(%rax) movq 0x8(%r15), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl %eax, %edi leaq 0x1ea87c(%rip), %rsi # 0xa565d4 leaq 0x21ad0b(%rip), %rdx # 0xa86a6a movl $0x431, %ecx # imm = 0x431 callq 0x8b6518 xorl %r9d, %r9d jmp 0x86be1d movl 0x2c(%r15), %eax cmpl $0x8, %eax je 0x86beba cmpl $0x7, %eax je 0x86beb3 testl %eax, %eax jne 0x86bedd movl 0x20(%r15), %eax decl %eax cmpl $0x3, %eax ja 0x86bedd movss 0x40(%r15), %xmm0 movss 0x44(%r15), %xmm1 movss 0x48(%r15), %xmm2 leaq 0x21a391(%rip), %rcx # 0xa86148 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x8(%r15), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x298(%rax) jmp 0x86bedd movq 0x8(%r15), %rdi movslq 0x28(%r15), %rax leaq 0x219c24(%rip), %rcx # 0xa85a08 movl (%rcx,%rax,4), %esi movq (%rdi), %rax xorl %edx, %edx callq *0x128(%rax) movq 0x8(%r15), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl %eax, %edi leaq 0x1ea7cc(%rip), %rsi # 0xa565d4 leaq 0x21ac5b(%rip), %rdx # 0xa86a6a movl $0x438, %ecx # imm = 0x438 callq 0x8b6518 movq 0x18(%r15), %r9 movslq 0x2c(%r15), %rax cmpq $0x9, %rax ja 0x86bf18 movl $0x207, %ecx # imm = 0x207 btl %eax, %ecx jae 0x86bf18 movq 0x8(%r15), %rdi movl 0x20(%r15), %edx leaq 0x21a538(%rip), %rcx # 0xa86380 movl (%rcx,%rax,4), %ecx movzbl 0x34(%r15), %r8d movl 0x38(%r15), %eax movslq 0x3c(%r15), %rsi addq %rsi, %r9 movq (%rdi), %rsi movq 0x270(%rsi), %r10 movq %r9, (%rsp) movl %r14d, %esi movl %eax, %r9d callq *%r10 movq 0x8(%r15), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl $0x45c, %ecx # imm = 0x45C leaq 0x1ea758(%rip), %rsi # 0xa565e3 movl %eax, %edi leaq 0x21abd6(%rip), %rdx # 0xa86a6a callq 0x8b6518 movl 0x50(%r15), %edx testl %edx, %edx je 0x86bedd movq 0x8(%r15), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x290(%rax) jmp 0x86bedd movl $0x2b8, %eax # imm = 0x2B8 jmp 0x86bebf movl $0x2c0, %eax # imm = 0x2C0 movl 0x40(%r15), %edx movl 0x44(%r15), %ecx movl 0x48(%r15), %r8d movl 0x4c(%r15), %r9d movq 0x8(%r15), %rdi movq (%rdi), %r10 movl %r14d, %esi callq *(%r10,%rax) movq %r13, %rdi movq 0x3f0ec9(%rip), %rsi # 0xc5cdb0 callq 0x325b00 leaq 0xe0(%rsp), %rdi callq 0x325a80 movq 0x20(%rbx), %rax subq 0x18(%rbx), %rax incq %r12 shrq $0x3, %rax cltq cmpq %rax, %r12 jl 0x86bc4e jmp 0x86c007 cmpl $0x3, 0x30(%r15) ja 0x86bf7b cmpb $0x0, 0x55(%r15) movl $0x80e1, %edx # imm = 0x80E1 jne 0x86bf2f movl 0x20(%r15), %edx movq 0x8(%r15), %rdi leaq 0x21a446(%rip), %rcx # 0xa86380 movl (%rcx,%rax,4), %ecx movzbl 0x34(%r15), %r8d movl 0x38(%r15), %eax movslq 0x3c(%r15), %rsi addq %rsi, %r9 movq (%rdi), %rsi movq 0x270(%rsi), %r10 movq %r9, (%rsp) movl %r14d, %esi movl %eax, %r9d callq *%r10 movq 0x8(%r15), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl $0x44b, %ecx # imm = 0x44B jmp 0x86be84 movq 0x8(%r15), %rdi movl 0x20(%r15), %edx leaq 0x21a3f6(%rip), %rcx # 0xa86380 movl (%rcx,%rax,4), %ecx movl 0x38(%r15), %r8d movslq 0x3c(%r15), %rax addq %rax, %r9 movq (%rdi), %rax movl %r14d, %esi callq *0x278(%rax) movq 0x8(%r15), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl $0x451, %ecx # imm = 0x451 leaq 0x219b04(%rip), %rsi # 0xa85ac1 jmp 0x86be8b movq 0x8(%r15), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x2a8(%rax) jmp 0x86bedd movss 0x4c(%r15), %xmm3 movq 0x8(%r15), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x2b0(%rax) jmp 0x86bedd movq 0x8(%r15), %rdi movq (%rdi), %rax movl %r14d, %esi callq *0x2a0(%rax) jmp 0x86bedd movl 0x5c(%rsp), %eax cmpl $0x9, %eax ja 0x86c806 movl 0x248(%rsp), %r12d movl 0x240(%rsp), %edi movl 0x238(%rsp), %ebp movl 0x230(%rsp), %ecx movl 0x228(%rsp), %edx movq 0x220(%rsp), %r15 movl %eax, %eax leaq 0x21a10f(%rip), %rsi # 0xa86158 movslq (%rsi,%rax,4), %rax addq %rsi, %rax jmpq *%rax movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x21a34e(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movq (%rdi), %rax movl 0x28(%rsp), %edx movl 0x1c(%rsp), %ecx callq *0x340(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x19a19f(%rip), %rsi # 0xa06229 leaq 0x21a9d9(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x7ad, %ecx # imm = 0x7AD jmp 0x86c801 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x21a303(%rip), %rsi # 0xa863b0 movl (%rsi,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x21a320(%rip), %r8 # 0xa863dc movl (%r8,%rax,4), %r9d movq (%rdi), %rax movq %r15, (%rsp) movl 0x1c(%rsp), %r8d callq *0x370(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21acf7(%rip), %rsi # 0xa86ddd leaq 0x21a97d(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x7bc, %ecx # imm = 0x7BC jmp 0x86c801 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x21a2a7(%rip), %rsi # 0xa863b0 movl (%rsi,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x21a2c4(%rip), %r8 # 0xa863dc movl (%r8,%rax,4), %r9d movq (%rdi), %rax movl %r12d, 0x8(%rsp) movq %r15, (%rsp) movl 0x1c(%rsp), %r8d callq *0x378(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21ada8(%rip), %rsi # 0xa86eef leaq 0x21a91c(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x830, %ecx # imm = 0x830 jmp 0x86c801 movslq %edi, %r12 leaq 0x10(%r12), %r15 movq %r15, %rdi callq 0x325740 movq %rax, %r14 movl 0x1c(%rsp), %eax movl %eax, (%r14,%r12) movl %ebp, 0x4(%r14,%r12) movl 0x28(%rsp), %r13d movl %r13d, 0x8(%r14,%r12) movl $0x0, 0xc(%r14,%r12) cmpb $0x1, 0x51(%rbx) jne 0x86c2bc movq (%rbx), %rax movq 0x10(%rax), %rax leaq 0x68(%rsp), %r12 movq %rax, -0x8(%r12) movq %r12, %rdi callq 0x325e00 leaq 0x21ac3c(%rip), %rsi # 0xa86df3 movl $0x1b, %edx movq %r12, %rdi callq 0x325e70 leaq 0x21ac44(%rip), %rsi # 0xa86e0f movl $0x8, %edx movq %r12, %rdi callq 0x325e70 movl 0x1c(%rsp), %esi movq %r12, %rdi callq 0x3257b0 leaq 0x1e7d4a(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r12, %rdi callq 0x325e70 leaq 0x21ac19(%rip), %rsi # 0xa86e18 movl $0xc, %edx movq %r12, %rdi callq 0x325e70 movl %ebp, %esi movq %r12, %rdi callq 0x3257b0 leaq 0x1e7d18(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r12, %rdi callq 0x325e70 leaq 0x21abf4(%rip), %rsi # 0xa86e25 movl $0x8, %edx movq %r12, %rdi callq 0x325e70 movl %r13d, %esi movq %r12, %rdi callq 0x3257b0 leaq 0x1e7ce5(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r12, %rdi callq 0x325e70 leaq 0x21abca(%rip), %rsi # 0xa86e2e movl $0x15, %edx movq %r12, %rdi callq 0x325e70 movq %r12, %rdi xorl %esi, %esi callq 0x3257b0 leaq 0x1e7cb3(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r12, %rdi callq 0x325e70 leaq 0x236ff7(%rip), %rsi # 0xaa328d leaq 0x60(%rsp), %rdi callq 0x9aba2a movq 0x3f0881(%rip), %rsi # 0xc5cb28 movq %r12, %rdi callq 0x325aa0 leaq 0xd8(%rsp), %rdi callq 0x325a80 leaq 0x60(%rsp), %r12 movl $0x0, (%r12) movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x1, %esi movq %r12, %rdx callq *0x130(%rax) movq 0x10(%rbx), %rdi movl (%r12), %edx movq (%rdi), %rax movl $0x8f3f, %esi # imm = 0x8F3F callq *0x128(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x8f3f, %esi # imm = 0x8F3F movq %r15, %rdx movq %r14, %rcx movl $0x88e4, %r8d # imm = 0x88E4 callq *0x140(%rax) movq %r14, %rdi callq 0x3255d0 movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21ab16(%rip), %rsi # 0xa86e44 leaq 0x21a735(%rip), %r14 # 0xa86a6a movl %eax, %edi movq %r14, %rdx movl $0x7e9, %ecx # imm = 0x7E9 callq 0x8b6518 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x21a05c(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movl 0x240(%rsp), %edx movq (%rdi), %rax callq *0x380(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21aae4(%rip), %rsi # 0xa86e5f movl %eax, %edi movq %r14, %rdx movl $0x7ec, %ecx # imm = 0x7EC callq 0x8b6518 movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x1, %esi movq %r12, %rdx jmp 0x86c79e movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x21a002(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x21a01f(%rip), %rcx # 0xa863dc movl (%rcx,%rax,4), %ecx movq (%rdi), %rax movl 0x1c(%rsp), %edx movq %r15, %r8 callq *0x350(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21a9e8(%rip), %rsi # 0xa86dcc leaq 0x21a67f(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x7b7, %ecx # imm = 0x7B7 jmp 0x86c801 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x219fa9(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x219fc6(%rip), %rcx # 0xa863dc movl (%rcx,%rax,4), %ecx movq (%rdi), %rax movl 0x1c(%rsp), %edx movq %r15, %r8 movl %r12d, %r9d callq *0x360(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21aa70(%rip), %rsi # 0xa86eb0 leaq 0x21a623(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x826, %ecx # imm = 0x826 jmp 0x86c801 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x219f4d(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movq (%rdi), %rax movl 0x28(%rsp), %edx movl 0x1c(%rsp), %ecx movl %ebp, %r8d callq *0x348(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1b0a58(%rip), %rsi # 0xa1cee6 leaq 0x21a5d5(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x7b2, %ecx # imm = 0x7B2 jmp 0x86c801 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x219eff(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x219f1c(%rip), %rcx # 0xa863dc movl (%rcx,%rax,4), %ecx movq (%rdi), %rax movl 0x1c(%rsp), %edx movq %r15, %r8 movl %ebp, %r9d callq *0x358(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x1b0a18(%rip), %rsi # 0xa1cf02 leaq 0x21a579(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x7c1, %ecx # imm = 0x7C1 jmp 0x86c801 movslq %edi, %r13 leaq 0x14(%r13), %rdi movq %rdi, 0x30(%rsp) callq 0x325740 movq %rax, %r14 movslq 0x24(%rsp), %rcx leaq 0x219d93(%rip), %rax # 0xa862b0 movq %rcx, 0x28(%rsp) movslq (%rax,%rcx,4), %rcx movq %r15, %rax cqto idivq %rcx movq %rax, %r15 movl 0x1c(%rsp), %eax movl %eax, (%r14,%r13) movl %ebp, 0x4(%r14,%r13) movl %r15d, 0x8(%r14,%r13) movl %r12d, 0xc(%r14,%r13) movl $0x0, 0x10(%r14,%r13) cmpb $0x1, 0x51(%rbx) jne 0x86c6b2 movq (%rbx), %rax movq 0x10(%rax), %rax leaq 0x68(%rsp), %r13 movq %rax, -0x8(%r13) movq %r13, %rdi callq 0x325e00 leaq 0x21a8fc(%rip), %rsi # 0xa86e76 movl $0x1d, %edx movq %r13, %rdi callq 0x325e70 leaq 0x21a881(%rip), %rsi # 0xa86e0f movl $0x8, %edx movq %r13, %rdi callq 0x325e70 movl 0x1c(%rsp), %esi movq %r13, %rdi callq 0x3257b0 leaq 0x1e7987(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r13, %rdi callq 0x325e70 leaq 0x21a856(%rip), %rsi # 0xa86e18 movl $0xc, %edx movq %r13, %rdi callq 0x325e70 movl %ebp, %esi movq %r13, %rdi callq 0x3257b0 leaq 0x1e7955(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r13, %rdi callq 0x325e70 leaq 0x21a8a0(%rip), %rsi # 0xa86e94 movl $0xd, %edx movq %r13, %rdi callq 0x325e70 movl %r15d, %esi movq %r13, %rdi callq 0x3257b0 leaq 0x1e7922(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r13, %rdi callq 0x325e70 leaq 0x21a87b(%rip), %rsi # 0xa86ea2 movl $0xd, %edx movq %r13, %rdi callq 0x325e70 movq %r13, %rdi movl %r12d, %esi callq 0x325530 leaq 0x1e78ef(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r13, %rdi callq 0x325e70 leaq 0x21a7d4(%rip), %rsi # 0xa86e2e movl $0x15, %edx movq %r13, %rdi callq 0x325e70 movq %r13, %rdi xorl %esi, %esi callq 0x3257b0 leaq 0x1e78bd(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r13, %rdi callq 0x325e70 leaq 0x236c01(%rip), %rsi # 0xaa328d leaq 0x60(%rsp), %rdi callq 0x9aba2a movq 0x3f048b(%rip), %rsi # 0xc5cb28 movq %r13, %rdi callq 0x325aa0 leaq 0xd8(%rsp), %rdi callq 0x325a80 leaq 0x60(%rsp), %r15 movl $0x0, (%r15) movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x1, %esi movq %r15, %rdx callq *0x130(%rax) movq 0x10(%rbx), %rdi movl (%r15), %edx movq (%rdi), %rax movl $0x8f3f, %esi # imm = 0x8F3F callq *0x128(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x8f3f, %esi # imm = 0x8F3F movq 0x30(%rsp), %rdx movq %r14, %rcx movl $0x88e4, %r8d # imm = 0x88E4 callq *0x140(%rax) movq %r14, %rdi callq 0x3255d0 movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21a720(%rip), %rsi # 0xa86e44 leaq 0x21a33f(%rip), %r14 # 0xa86a6a movl %eax, %edi movq %r14, %rdx movl $0x81c, %ecx # imm = 0x81C callq 0x8b6518 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x219c66(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi leaq 0x219c88(%rip), %rax # 0xa863dc movq 0x28(%rsp), %rcx movl (%rax,%rcx,4), %edx movl 0x240(%rsp), %ecx movq (%rdi), %rax callq *0x388(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21a6df(%rip), %rsi # 0xa86e5f movl %eax, %edi movq %r14, %rdx movl $0x81f, %ecx # imm = 0x81F callq 0x8b6518 movq 0x10(%rbx), %rdi movq (%rdi), %rax movl $0x1, %esi movq %r15, %rdx callq *0x138(%rax) jmp 0x86c806 movq 0x10(%rbx), %rdi movslq 0x20(%rsp), %rax leaq 0x219bfa(%rip), %rcx # 0xa863b0 movl (%rcx,%rax,4), %esi movslq 0x24(%rsp), %rax leaq 0x219c17(%rip), %rcx # 0xa863dc movl (%rcx,%rax,4), %ecx movq (%rdi), %rax movl %r12d, (%rsp) movl 0x1c(%rsp), %edx movq %r15, %r8 movl %ebp, %r9d callq *0x368(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) leaq 0x21a6d8(%rip), %rsi # 0xa86ecb leaq 0x21a270(%rip), %rdx # 0xa86a6a movl %eax, %edi movl $0x82b, %ecx # imm = 0x82B callq 0x8b6518 movq 0x18(%rbx), %rax movq 0x20(%rbx), %rcx subq %rax, %rcx shrq $0x3, %rcx testl %ecx, %ecx jle 0x86c91b leaq 0x70(%rsp), %r14 xorl %r13d, %r13d leaq 0x60(%rsp), %rbp movq (%rax,%r13,8), %rax cmpb $0x1, 0x24(%rax) jne 0x86c8fd movq %rbp, %rdi callq 0x3254d0 movl $0x2, %edx movq %r14, %rdi leaq 0x219530(%rip), %rsi # 0xa85d7f callq 0x325e70 movq %r14, %rdi movl %r13d, %esi callq 0x325530 movq 0x10(%rbx), %r12 movl 0x54(%rbx), %r15d leaq 0x38(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x325660 movq 0x38(%rsp), %rdx movq (%r12), %rax movq %r12, %rdi movl %r15d, %esi callq *0x2c8(%rax) movl %eax, %r12d movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0x86c8aa movq 0x48(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x10(%rbx), %rdi movq (%rdi), %rax movl %r12d, %esi callq *0x288(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax callq *0x3c8(%rax) movl %eax, %edi leaq 0x219582(%rip), %rsi # 0xa85e52 leaq 0x21a193(%rip), %rdx # 0xa86a6a movl $0x83f, %ecx # imm = 0x83F callq 0x8b6518 movq %rbp, %rdi movq 0x3f04c5(%rip), %rsi # 0xc5cdb0 callq 0x325b00 leaq 0xe0(%rsp), %rdi callq 0x325a80 incq %r13 movq 0x18(%rbx), %rax movq 0x20(%rbx), %rcx subq %rax, %rcx shrq $0x3, %rcx movslq %ecx, %rcx cmpq %rcx, %r13 jl 0x86c82a leaq 0x38(%rbx), %r14 cmpb $0x0, 0x50(%rbx) je 0x86c934 movq 0x10(%rbx), %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x258(%rax) movq 0x10(%rbx), %rdi movq (%rdi), %rax xorl %esi, %esi callq *0x3b0(%rax) movq 0x10(%rbx), %rdi movl 0x38(%rbx), %r8d movl 0x3c(%rbx), %r9d movq (%rdi), %rax movq %r14, %rsi xorl %edx, %edx xorl %ecx, %ecx callq *0x400(%rax) addq $0x1e8, %rsp # imm = 0x1E8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x3f01ad(%rip), %rsi # 0xc5cb28 movq %r12, %rdi jmp 0x86c98d movq %rax, %rbx movq 0x3f019e(%rip), %rsi # 0xc5cb28 movq %r13, %rdi callq 0x325aa0 leaq 0xd8(%rsp), %rdi jmp 0x86c9e5 jmp 0x86c9a4 jmp 0x86c9c9 jmp 0x86c9c9 jmp 0x86c9c9 movq %rax, %rbx movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0x86c9cc movq 0x48(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86c9cc jmp 0x86c9c9 jmp 0x86c9c9 movq %rax, %rbx movq 0x3f03dd(%rip), %rsi # 0xc5cdb0 leaq 0x60(%rsp), %rdi callq 0x325b00 leaq 0xe0(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::DrawTest::compare(deqp::gls::DrawTestSpec::Primitive)
bool DrawTest::compare (gls::DrawTestSpec::Primitive primitiveType) { const tcu::Surface& ref = m_rrArrayPack->getSurface(); const tcu::Surface& screen = m_glArrayPack->getSurface(); if (m_renderCtx.getRenderTarget().getNumSamples() > 1) { // \todo [mika] Improve compare when using multisampling m_testCtx.getLog() << tcu::TestLog::Message << "Warning: Comparision of result from multisample render targets are not as stricts as without multisampling. Might produce false positives!" << tcu::TestLog::EndMessage; return tcu::fuzzyCompare(m_testCtx.getLog(), "Compare Results", "Compare Results", ref.getAccess(), screen.getAccess(), 0.3f, tcu::COMPARE_LOG_RESULT); } else { const PrimitiveClass primitiveClass = getDrawPrimitiveClass(primitiveType); const int maxAllowedInvalidPixelsWithPoints = 0; //!< points are unlikely to have overlapping fragments const int maxAllowedInvalidPixelsWithLines = 5; //!< line are allowed to have a few bad pixels const int maxAllowedInvalidPixelsWithTriangles = 10; switch (primitiveClass) { case PRIMITIVECLASS_POINT: { // Point are extremely unlikely to have overlapping regions, don't allow any no extra / missing pixels return tcu::intThresholdPositionDeviationErrorThresholdCompare(m_testCtx.getLog(), "CompareResult", "Result of rendering", ref.getAccess(), screen.getAccess(), tcu::UVec4(m_maxDiffRed, m_maxDiffGreen, m_maxDiffBlue, 256), tcu::IVec3(1, 1, 0), //!< 3x3 search kernel true, //!< relax comparison on the image boundary maxAllowedInvalidPixelsWithPoints, //!< error threshold tcu::COMPARE_LOG_RESULT); } case PRIMITIVECLASS_LINE: { // Lines can potentially have a large number of overlapping pixels. Pixel comparison may potentially produce // false negatives in such pixels if for example the pixel in question is overdrawn by another line in the // reference image but not in the resultin image. Relax comparison near line intersection points (areas) and // compare only coverage, not color, in such pixels return intersectionRelaxedLineImageCompare(m_testCtx.getLog(), "CompareResult", "Result of rendering", ref, screen, tcu::IVec3(m_maxDiffRed, m_maxDiffGreen, m_maxDiffBlue), maxAllowedInvalidPixelsWithLines); } case PRIMITIVECLASS_TRIANGLE: { // Triangles are likely to partially or fully overlap. Pixel difference comparison is fragile in pixels // where there could be potential overlapping since the pixels might be covered by one triangle in the // reference image and by the other in the result image. Relax comparsion near primitive edges and // compare only coverage, not color, in such pixels. const tcu::IVec3 renderTargetThreshold = m_renderCtx.getRenderTarget().getPixelFormat().getColorThreshold().toIVec().xyz(); return edgeRelaxedImageCompare(m_testCtx.getLog(), "CompareResult", "Result of rendering", ref, screen, tcu::IVec3(m_maxDiffRed, m_maxDiffGreen, m_maxDiffBlue), renderTargetThreshold, maxAllowedInvalidPixelsWithTriangles); } default: DE_ASSERT(false); return false; } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x588, %rsp # imm = 0x588 movl %esi, %ebp movq %rdi, %rbx movq 0x98(%rdi), %rax movq %rax, 0x18(%rsp) movq 0x70(%rdi), %rdi movq 0x90(%rbx), %r12 movq (%rdi), %rax callq *0x20(%rax) cmpl $0x2, 0x20(%rax) jl 0x86cb7d movq 0x8(%rbx), %rax movq 0x10(%rax), %rax leaq 0x358(%rsp), %r14 movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x2193e9(%rip), %rsi # 0xa85e6f movl $0x8a, %edx movq %r14, %rdi callq 0x325e70 leaq 0x2367f3(%rip), %rsi # 0xaa328d leaq 0x350(%rsp), %rdi callq 0x9aba2a movq 0x3f007a(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 movq 0x8(%rbx), %rax movq 0x10(%rax), %rbx movabsq $0x300000008, %r15 # imm = 0x300000008 movq %r15, 0x228(%rsp) movq 0x18(%rsp), %rax movl 0x38(%rax), %edx movl 0x3c(%rax), %ecx movq 0x48(%rax), %r9 testq %r9, %r9 je 0x86caf5 movq 0x40(%rax), %r9 leaq 0x350(%rsp), %r14 leaq 0x228(%rsp), %rsi movq %r14, %rdi movl $0x1, %r8d callq 0x9aced2 movq %r15, 0x2b8(%rsp) movl 0x38(%r12), %edx movl 0x3c(%r12), %ecx movq 0x48(%r12), %r9 testq %r9, %r9 je 0x86cb34 movq 0x40(%r12), %r9 leaq 0x228(%rsp), %r15 leaq 0x2b8(%rsp), %rsi movq %r15, %rdi movl $0x1, %r8d callq 0x9aced2 leaq 0x2193a1(%rip), %rdx # 0xa85efa movss 0x19eb37(%rip), %xmm0 # 0xa0b698 movq %rbx, %rdi movq %rdx, %rsi movq %r14, %rcx movq %r15, %r8 movl $0x1, %r9d callq 0x99e22c jmp 0x86ccba movl $0x3, %eax cmpl $0xa, %ebp ja 0x86cb93 movl %ebp, %eax leaq 0x2199a4(%rip), %rcx # 0xa86534 movl (%rcx,%rax,4), %eax movq 0x18(%rsp), %rsi leaq 0x38(%rsi), %rcx movq %rcx, 0x38(%rsp) leaq 0x38(%r12), %rcx movq %rcx, 0x20(%rsp) xorl %ebp, %ebp movl %eax, %eax leaq 0x2195ca(%rip), %rcx # 0xa86180 movslq (%rcx,%rax,4), %rax addq %rcx, %rax movq %r12, 0x60(%rsp) jmpq *%rax movq 0x8(%rbx), %rax movq 0x10(%rax), %r14 movabsq $0x300000008, %r12 # imm = 0x300000008 movq %r12, 0x228(%rsp) movl 0x38(%rsi), %edx movl 0x3c(%rsi), %ecx movq 0x48(%rsi), %r9 testq %r9, %r9 je 0x86cbf1 movq 0x40(%rsi), %r9 leaq 0x350(%rsp), %r15 leaq 0x228(%rsp), %rsi movl $0x1, %ebp movq %r15, %rdi movl $0x1, %r8d callq 0x9aced2 movq %r12, 0x2b8(%rsp) movq 0x60(%rsp), %rax movl 0x38(%rax), %edx movl 0x3c(%rax), %ecx movq 0x48(%rax), %r9 testq %r9, %r9 je 0x86cc34 movq 0x40(%rax), %r9 leaq 0x228(%rsp), %r12 leaq 0x2b8(%rsp), %r13 movq %r12, %rdi movq %r13, %rsi movl $0x1, %r8d callq 0x9aced2 movq 0xa0(%rbx), %rax movl 0xa8(%rbx), %ecx movq %rax, (%r13) movl %ecx, 0x8(%r13) movl $0x100, 0xc(%r13) # imm = 0x100 movabsq $0x100000001, %rax # imm = 0x100000001 leaq 0x4d0(%rsp), %r10 movq %rax, (%r10) xorl %eax, %eax movl %eax, 0x8(%r10) leaq 0x1afe3c(%rip), %rsi # 0xa1cad0 leaq 0x19691c(%rip), %rdx # 0xa035b7 leaq 0x2b8(%rsp), %r9 movq %r14, %rdi movq %r15, %rcx movq %r12, %r8 pushq %rbp pushq %rax pushq %rbp pushq %r10 callq 0x9a47ab addq $0x20, %rsp movl %eax, %ebp jmp 0x86e884 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax movq %rax, 0x30(%rsp) movl 0xa0(%rbx), %edx movl 0xa4(%rbx), %ecx movl 0xa8(%rbx), %eax movl %edx, 0x10(%rsp) movl %edx, 0x48(%rsp) movl %ecx, 0x14(%rsp) movl %ecx, 0x4c(%rsp) movl %eax, 0xc(%rsp) movl %eax, 0x50(%rsp) movaps 0x1d52a1(%rip), %xmm0 # 0xa41fa0 movups %xmm0, 0x78(%rsp) movaps 0x1d5285(%rip), %xmm0 # 0xa41f90 movups %xmm0, 0x218(%rsp) movl 0x38(%rsi), %ebx movl 0x3c(%rsi), %r14d movabsq $0x300000007, %rax # imm = 0x300000007 leaq 0x350(%rsp), %rsi movq %rax, (%rsi) leaq 0x560(%rsp), %r15 movq %r15, %rdi movl %ebx, %edx movl %r14d, %ecx movl $0x1, %r8d callq 0x9b4270 leaq 0x148(%rsp), %rdi movq %r15, %rsi callq 0x41071a leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx xorl %ecx, %ecx movl %ebx, %r8d movl $0x1, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 leal -0x1(%r14), %ecx leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx movl %ecx, 0x2c(%rsp) movl %ebx, %r8d movl $0x1, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx xorl %ecx, %ecx movl $0x1, %r8d movl %r14d, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 leal -0x1(%rbx), %edx leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi movl %edx, 0x58(%rsp) xorl %ecx, %ecx movl $0x1, %r8d movl %r14d, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 movl $0x0, 0x8(%rsp) cmpl $0x2, 0x2c(%rsp) jl 0x86d0ff movl 0x14(%rsp), %eax shll $0x8, %eax movl 0xc(%rsp), %ecx shll $0x10, %ecx orl %eax, %ecx orl 0x10(%rsp), %ecx movl %ecx, 0x4(%rsp) movl $0x2, %eax subl %ebx, %eax movq %rax, 0x40(%rsp) movl $0x0, 0x8(%rsp) movl $0x1, %r13d cmpl $0x2, 0x58(%rsp) jl 0x86d0f1 movl $0x1, %edx movq 0x18(%rsp), %rcx movl 0x38(%rcx), %eax imull %r13d, %eax addl %edx, %eax cltq movq 0x40(%rcx), %rcx movl (%rcx,%rax,4), %edi movl %edi, 0x228(%rsp) movq 0x60(%rsp), %rcx movl 0x38(%rcx), %eax movl %r13d, %r12d imull %r13d, %eax movq %rdx, %rbx addl %edx, %eax cltq movq 0x40(%rcx), %rcx movl (%rcx,%rax,4), %ebp movl %ebp, 0x2b8(%rsp) movl %edi, (%rsp) movl %ebp, %esi movl 0x4(%rsp), %edx movl $0x7, %ecx callq 0x9a8d53 movl %eax, %r13d movb $0x1, %r14b movb $0x1, %r15b testb %al, %al jne 0x86cf0b movq 0x38(%rsp), %rdi movl %ebx, %esi movl %r12d, %edx leaq 0x2b8(%rsp), %rcx leaq 0x48(%rsp), %r8 callq 0x8704f2 movl %eax, %r15d testb %r13b, %r13b movl %r12d, %r13d jne 0x86cf32 movq 0x20(%rsp), %rdi movl %ebx, %esi movl %r13d, %edx leaq 0x228(%rsp), %rcx leaq 0x48(%rsp), %r8 callq 0x8704f2 movl %eax, %r14d andb %r14b, %r15b cmpb $0x1, %r15b jne 0x86cf70 testl $0xffffff, %ebp # imm = 0xFFFFFF je 0x86d034 movl %ebp, %eax movl $0xff, %edx andl %edx, %eax movl %ebp, %ecx shrl $0x10, %ecx andl %edx, %ecx addl %eax, %ecx movl $0xff, %eax shrl $0x8, %ebp andl %eax, %ebp addl %ecx, %ebp shrl $0x3, %ebp addl $0x32, %ebp jmp 0x86d03b movl %ebx, %edi movl %r13d, %esi movq 0x38(%rsp), %rdx callq 0x8705b3 testb %al, %al jne 0x86cf9a movl %ebx, %edi movl %r13d, %esi movq 0x20(%rsp), %rdx callq 0x8705b3 testb %al, %al je 0x86d076 xorl %r14d, %r14d testl $0xffffff, (%rsp) # imm = 0xFFFFFF setne %r14b xorl %ecx, %ecx testl $0xffffff, %ebp # imm = 0xFFFFFF setne %cl movq 0x38(%rsp), %rdi movl %ebx, %esi movl %r13d, %edx callq 0x87065b movl %eax, %r15d movq 0x20(%rsp), %rdi movl %ebx, %esi movl %r13d, %edx movl %r14d, %ecx callq 0x87065b testb %r15b, %r15b je 0x86d015 testb %al, %al je 0x86d015 testl $0xffffff, %ebp # imm = 0xFFFFFF je 0x86d099 movl %ebp, %eax movl $0xff, %edx andl %edx, %eax movl %ebp, %ecx shrl $0x10, %ecx andl %edx, %ecx addl %eax, %ecx movl $0xff, %eax shrl $0x8, %ebp andl %eax, %ebp addl %ecx, %ebp shrl $0x3, %ebp addl $0x32, %ebp jmp 0x86d0a0 leaq 0x148(%rsp), %rdi leaq 0x218(%rsp), %rsi movl %ebx, %edx movl %r13d, %ecx xorl %r8d, %r8d callq 0x9af5c4 jmp 0x86d093 xorl %ebp, %ebp movl $0xff, %eax movl %ebp, 0x350(%rsp) movl %eax, 0x354(%rsp) movl %ebp, 0x358(%rsp) movl %eax, 0x35c(%rsp) leaq 0x148(%rsp), %rdi leaq 0x350(%rsp), %rsi movl %ebx, %edx movl %r13d, %ecx xorl %r8d, %r8d callq 0x9af5c4 jmp 0x86d0d9 leaq 0x148(%rsp), %rdi leaq 0x218(%rsp), %rsi movl %ebx, %edx movl %r13d, %ecx xorl %r8d, %r8d callq 0x9af5c4 incl 0x8(%rsp) jmp 0x86d0d9 xorl %ebp, %ebp movl $0xff, %eax movl %ebp, 0x350(%rsp) movl %eax, 0x354(%rsp) movl %ebp, 0x358(%rsp) movl %eax, 0x35c(%rsp) leaq 0x148(%rsp), %rdi leaq 0x350(%rsp), %rsi movl %ebx, %edx movl %r13d, %ecx xorl %r8d, %r8d callq 0x9af5c4 movq 0x40(%rsp), %rax addl %ebx, %eax incl %eax movl %ebx, %ecx incl %ecx movl %ecx, %edx cmpl $0x1, %eax jne 0x86ce8a incl %r13d cmpl 0x2c(%rsp), %r13d jne 0x86ce7a leaq 0x358(%rsp), %r14 movq 0x30(%rsp), %rax movq %rax, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x219df0(%rip), %rsi # 0xa86f0f movl $0x12, %edx movq %r14, %rdi callq 0x325e70 movl 0x8(%rsp), %ebx leaq 0x219deb(%rip), %rsi # 0xa86f22 movl $0x2a, %edx movq %r14, %rdi callq 0x325e70 leaq 0x219e02(%rip), %rsi # 0xa86f4d movl $0x24, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movl $0x5, %esi callq 0x325530 leaq 0x1e6dc9(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r14, %rdi callq 0x325e70 leaq 0x219df2(%rip), %rsi # 0xa86f72 movl $0x1c, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movl %ebx, %esi callq 0x325530 leaq 0x2360ef(%rip), %rsi # 0xaa328d leaq 0x350(%rsp), %rdi callq 0x9aba2a movq 0x3ef976(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 cmpl $0x6, %ebx setl %bpl jge 0x86e339 leaq 0x2c8(%rsp), %r14 movq %r14, -0x10(%r14) movabsq $0x52657261706d6f43, %rax # imm = 0x52657261706D6F43 movq %rax, (%r14) movabsq $0x746c757365526572, %rax # imm = 0x746C757365526572 movq %rax, 0x5(%r14) movq $0xd, -0x8(%r14) movb $0x0, 0xd(%r14) leaq 0x4e0(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x350(%rsp), %rsi movq $0x13, (%rsi) leaq 0x4d0(%rsp), %rdi xorl %edx, %edx callq 0x325a10 leaq 0x4d0(%rsp), %rdx movq %rax, (%rdx) movq 0x350(%rsp), %rcx movq %rcx, 0x10(%rdx) movups 0x196367(%rip), %xmm0 # 0xa035b7 movups %xmm0, (%rax) movl $0x676e6972, 0xf(%rax) # imm = 0x676E6972 movq %rcx, 0x8(%rdx) movq (%rdx), %rax movb $0x0, (%rax,%rcx) leaq 0x228(%rsp), %rdi leaq 0x2b8(%rsp), %rsi callq 0x34f564 movq 0x30(%rsp), %rbx movq 0x228(%rsp), %rsi movq 0x248(%rsp), %rdx movq %rbx, %rdi callq 0x9ab85c leaq 0x118(%rsp), %r12 movq %r12, -0x10(%r12) movl $0x75736552, %eax # imm = 0x75736552 movl %eax, (%r12) movw $0x746c, %cx # imm = 0x746C movw %cx, 0x4(%r12) movl $0x6, %edx movq %rdx, -0x8(%r12) xorl %esi, %esi movb %sil, 0x6(%r12) leaq 0x180(%rsp), %r13 movq %r13, -0x10(%r13) movl %eax, (%r13) movw %cx, 0x4(%r13) movq %rdx, -0x8(%r13) movb %sil, 0x6(%r13) leaq 0x350(%rsp), %rdi leaq 0x108(%rsp), %rsi leaq 0x170(%rsp), %rdx movq 0x20(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x350(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e movq %rbx, %rdi callq 0x9ab8b2 leaq 0x380(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86d346 movq 0x380(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x360(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86d367 movq 0x360(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x170(%rsp), %rdi cmpq %r13, %rdi je 0x86d384 movq 0x180(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r12, %rdi je 0x86d3a1 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x258(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86d3c2 movq 0x258(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x238(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86d3e3 movq 0x238(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4d0(%rsp), %rdi cmpq %r15, %rdi je 0x86d400 movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x2b8(%rsp), %rdi cmpq %r14, %rdi je 0x86e877 movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86e877 movq 0x70(%rbx), %rdi movq (%rdi), %rax callq *0x20(%rax) movl 0x14(%rax), %esi movb $0x8, %cl subb %sil, %cl movl $0x1000000, %edi # imm = 0x1000000 shll %cl, %edi movb $0x8, %r8b subb 0x8(%rax), %r8b movb $0x8, %dl testl %esi, %esi cmovgl %edi, %ebp movb $0x8, %cl subb 0xc(%rax), %cl movl $0x100, %edi # imm = 0x100 shll %cl, %edi subb 0x10(%rax), %dl movl $0x10000, %eax # imm = 0x10000 movl %edx, %ecx shll %cl, %eax btsl %r8d, %edi orl %eax, %edi orl %ebp, %edi leaq 0x2b8(%rsp), %rsi movl %edi, (%rsi) leaq 0x228(%rsp), %r14 movq %r14, %rdi callq 0x9a8c66 movq %r14, 0x350(%rsp) movabsq $0x100000000, %rax # imm = 0x100000000 movq %rax, 0x358(%rsp) movl $0x2, 0x360(%rsp) movq $0x0, 0x48(%rsp) movl $0x0, 0x50(%rsp) movl $0x2, %eax movslq 0x350(%rsp,%rax,4), %rcx movl 0x228(%rsp,%rcx,4), %ecx movl %ecx, 0x40(%rsp,%rax,4) incq %rax cmpq $0x5, %rax jne 0x86d4c2 movq 0x8(%rbx), %rax movq 0x10(%rax), %rax movq %rax, 0x348(%rsp) movl 0xa0(%rbx), %ecx movl 0xa4(%rbx), %edx movl 0xa8(%rbx), %eax movl %ecx, (%rsp) movl %ecx, 0x6c(%rsp) movl %edx, 0x4(%rsp) movl %edx, 0x70(%rsp) movl %eax, %r13d movl %eax, 0x74(%rsp) movaps 0x1d4a83(%rip), %xmm0 # 0xa41fa0 movups %xmm0, 0x78(%rsp) movaps 0x1d4a67(%rip), %xmm0 # 0xa41f90 movups %xmm0, 0x218(%rsp) movq 0x18(%rsp), %rax movl 0x38(%rax), %ebp movl 0x3c(%rax), %ebx movabsq $0x300000007, %rax # imm = 0x300000007 leaq 0x350(%rsp), %rsi movq %rax, (%rsi) leaq 0x560(%rsp), %r14 movq %r14, %rdi movl %ebp, %edx movl %ebx, %ecx movl $0x1, %r8d callq 0x9b4270 leaq 0x148(%rsp), %rdi movq %r14, %rsi callq 0x41071a leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx xorl %ecx, %ecx movl %ebp, %r15d movl %ebp, %r8d movl $0x1, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 leal -0x1(%rbx), %ecx leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx movl %ecx, 0x68(%rsp) movl %r15d, %r8d movl $0x1, %r9d callq 0x9bab47 movl %r13d, %r14d leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi xorl %edx, %edx xorl %ecx, %ecx movl $0x1, %r8d movl %ebx, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 decl %r15d leaq 0x350(%rsp), %rdi leaq 0x148(%rsp), %rsi movl %r15d, 0x30(%rsp) movl %r15d, %edx xorl %ecx, %ecx movl $0x1, %r8d movl %ebx, %r9d callq 0x9bab47 leaq 0x350(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x9bb6a6 movl $0x0, 0xc(%rsp) cmpl $0x2, 0x68(%rsp) movq 0x18(%rsp), %rbx jl 0x86dad6 movl 0x4(%rsp), %eax shll $0x8, %eax shll $0x10, %r14d orl %eax, %r14d orl (%rsp), %r14d movl $0x1, (%rsp) movq $0x0, 0x58(%rsp) movl $0x2, 0x14(%rsp) movl $0x0, 0xc(%rsp) movl %r14d, 0x10(%rsp) movl 0x30(%rsp), %r15d cmpl $0x2, %r15d jl 0x86dab4 movl $0x1, %r13d movq $0x0, 0x40(%rsp) movl 0x38(%rbx), %eax movl (%rsp), %edx imull %edx, %eax addl %r13d, %eax cltq movq 0x40(%rbx), %rcx movl (%rcx,%rax,4), %edi movl %edi, 0x4d0(%rsp) movl 0x38(%r12), %eax imull %edx, %eax movl %r13d, 0x4(%rsp) addl %r13d, %eax cltq movq 0x40(%r12), %rcx movl (%rcx,%rax,4), %esi movl %esi, 0x108(%rsp) movl %edi, 0x2c(%rsp) movl %esi, 0x8(%rsp) movl %r14d, %edx movl $0x7, %ecx callq 0x9a8d53 movl %eax, %ebp movb $0x1, %r13b testb %al, %al jne 0x86d748 movq 0x20(%rsp), %rdi movl 0x4(%rsp), %esi movl (%rsp), %edx leaq 0x4d0(%rsp), %rcx leaq 0x6c(%rsp), %r8 callq 0x8704f2 movl %eax, %r13d testb %bpl, %bpl je 0x86d78b testb %r13b, %r13b movl 0x8(%rsp), %esi je 0x86d7b2 testl $0xffffff, %esi # imm = 0xFFFFFF je 0x86d98d movl %esi, %eax movl $0xff, %edx andl %edx, %eax movl %esi, %ecx shrl $0x10, %ecx andl %edx, %ecx addl %eax, %ecx movl $0xff, %eax shrl $0x8, %esi andl %eax, %esi addl %ecx, %esi shrl $0x3, %esi addl $0x32, %esi jmp 0x86d994 movq 0x38(%rsp), %rdi movl 0x4(%rsp), %esi movl (%rsp), %edx leaq 0x108(%rsp), %rcx leaq 0x6c(%rsp), %r8 callq 0x8704f2 movl 0x8(%rsp), %esi testb %al, %r13b jne 0x86d756 movl 0x38(%rbx), %r13d movq 0x40(%rbx), %rbp movq 0x58(%rsp), %rbx imull %r13d, %ebx movq 0x40(%rsp), %rax leal (%rax,%rbx), %r14d movq $-0x1, %r12 xorl %r15d, %r15d movslq %r14d, %rax movl (%rbp,%rax,4), %ecx movl %ecx, 0x350(%rsp) leal 0x1(%rax), %ecx movslq %ecx, %rcx movl (%rbp,%rcx,4), %ecx movl %ecx, 0x228(%rsp) addl $0x2, %eax cltq movl (%rbp,%rax,4), %eax movl %eax, 0x2b8(%rsp) leaq 0x350(%rsp), %rdi leaq 0x228(%rsp), %rsi leaq 0x2b8(%rsp), %rdx leaq 0x48(%rsp), %rcx callq 0x8706df testb %al, %al jne 0x86d845 testq %r12, %r12 leaq 0x1(%r12), %rax setg %r15b addl %r13d, %r14d movq %rax, %r12 cmpq $0x2, %rax jne 0x86d7d6 jmp 0x86d84f testb $0x1, %r15b je 0x86d8e9 movl 0x14(%rsp), %eax movl %eax, %r14d imull %r13d, %r14d movq 0x40(%rsp), %rax addl %eax, %r14d imull (%rsp), %r13d addl %eax, %r13d addl %eax, %ebx movb $0x1, %r12b xorl %r15d, %r15d leal (%rbx,%r15), %eax cltq movl (%rbp,%rax,4), %eax movl %eax, 0x350(%rsp) leal (%r15,%r13), %eax cltq movl (%rbp,%rax,4), %eax movl %eax, 0x228(%rsp) leal (%r14,%r15), %eax cltq movl (%rbp,%rax,4), %eax movl %eax, 0x2b8(%rsp) leaq 0x350(%rsp), %rdi leaq 0x228(%rsp), %rsi leaq 0x2b8(%rsp), %rdx leaq 0x48(%rsp), %rcx callq 0x8706df testb %al, %al jne 0x86d8df leaq -0x1(%r15), %rax testq %rax, %rax setle %r12b incq %r15 cmpq $0x3, %r15 jne 0x86d872 testb $0x1, %r12b je 0x86d9d8 xorl %ecx, %ecx testl $0xffffff, 0x2c(%rsp) # imm = 0xFFFFFF setne %cl xorl %ebp, %ebp testl $0xffffff, 0x8(%rsp) # imm = 0xFFFFFF setne %bpl movq 0x20(%rsp), %rdi movl 0x4(%rsp), %r13d movl %r13d, %esi movl (%rsp), %ebx movl %ebx, %edx callq 0x87065b movl %eax, %r14d movq 0x38(%rsp), %rdi movl %r13d, %esi movl %ebx, %edx movl %ebp, %ecx callq 0x87065b testb %r14b, %r14b je 0x86da19 testb %al, %al je 0x86da19 movl 0x8(%rsp), %esi testl $0xffffff, %esi # imm = 0xFFFFFF movq 0x60(%rsp), %r12 movl 0x30(%rsp), %r15d je 0x86da51 movl %esi, %eax movl $0xff, %edx andl %edx, %eax movl %esi, %ecx shrl $0x10, %ecx andl %edx, %ecx addl %eax, %ecx movl $0xff, %eax shrl $0x8, %esi andl %eax, %esi addl %ecx, %esi shrl $0x3, %esi addl $0x32, %esi movq 0x18(%rsp), %rbx movl 0x10(%rsp), %r14d jmp 0x86da62 xorl %esi, %esi movl $0xff, %eax movl 0x4(%rsp), %r13d movl %esi, 0x350(%rsp) movl %eax, 0x354(%rsp) movl %esi, 0x358(%rsp) movl %eax, 0x35c(%rsp) leaq 0x148(%rsp), %rdi leaq 0x350(%rsp), %rsi movl %r13d, %edx movl (%rsp), %ecx xorl %r8d, %r8d callq 0x9af5c4 jmp 0x86da9c leaq 0x148(%rsp), %rdi leaq 0x218(%rsp), %rsi movl 0x4(%rsp), %edx movl (%rsp), %ecx xorl %r8d, %r8d callq 0x9af5c4 movq 0x60(%rsp), %r12 movq 0x18(%rsp), %rbx movl 0x10(%rsp), %r14d movl 0x30(%rsp), %r15d incl 0xc(%rsp) movl 0x4(%rsp), %r13d jmp 0x86da9c leaq 0x148(%rsp), %rdi leaq 0x218(%rsp), %rsi movl %r13d, %edx movl (%rsp), %ecx xorl %r8d, %r8d callq 0x9af5c4 movq 0x60(%rsp), %r12 movl 0x30(%rsp), %r15d incl 0xc(%rsp) movq 0x18(%rsp), %rbx movl 0x10(%rsp), %r14d jmp 0x86da9c xorl %esi, %esi movq 0x18(%rsp), %rbx movl 0x10(%rsp), %r14d movl $0xff, %eax movl %esi, 0x350(%rsp) movl %eax, 0x354(%rsp) movl %esi, 0x358(%rsp) movl %eax, 0x35c(%rsp) leaq 0x148(%rsp), %rdi leaq 0x350(%rsp), %rsi movl %r13d, %edx movl (%rsp), %ecx xorl %r8d, %r8d callq 0x9af5c4 incl %r13d movq 0x40(%rsp), %rax incl %eax movq %rax, 0x40(%rsp) cmpl %r15d, %r13d jne 0x86d6cc movl (%rsp), %eax incl %eax movq 0x58(%rsp), %rcx incl %ecx movq %rcx, 0x58(%rsp) incl 0x14(%rsp) movl %eax, (%rsp) cmpl 0x68(%rsp), %eax jne 0x86d6ae leaq 0x358(%rsp), %r14 movq 0x348(%rsp), %rbx movq %rbx, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x219416(%rip), %rsi # 0xa86f0f movl $0x12, %edx movq %r14, %rdi callq 0x325e70 movl 0xc(%rsp), %ebp leaq 0x219411(%rip), %rsi # 0xa86f22 movl $0x2a, %edx movq %r14, %rdi callq 0x325e70 leaq 0x219428(%rip), %rsi # 0xa86f4d movl $0x24, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movl $0xa, %esi callq 0x325530 leaq 0x1e63ef(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r14, %rdi callq 0x325e70 leaq 0x219418(%rip), %rsi # 0xa86f72 movl $0x1c, %edx movq %r14, %rdi callq 0x325e70 movq %r14, %rdi movl %ebp, %esi callq 0x325530 leaq 0x235715(%rip), %rsi # 0xaa328d leaq 0x350(%rsp), %rdi callq 0x9aba2a movq 0x3eef9c(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 cmpl $0xb, %ebp setl %bpl jge 0x86ddfb leaq 0x2c8(%rsp), %r14 movq %r14, -0x10(%r14) movabsq $0x52657261706d6f43, %rax # imm = 0x52657261706D6F43 movq %rax, (%r14) movabsq $0x746c757365526572, %rax # imm = 0x746C757365526572 movq %rax, 0x5(%r14) movq $0xd, -0x8(%r14) movb $0x0, 0xd(%r14) leaq 0x4e0(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x350(%rsp), %rsi movq $0x13, (%rsi) leaq 0x4d0(%rsp), %rdi xorl %edx, %edx callq 0x325a10 leaq 0x4d0(%rsp), %rdx movq %rax, (%rdx) movq 0x350(%rsp), %rcx movq %rcx, 0x10(%rdx) movups 0x19598d(%rip), %xmm0 # 0xa035b7 movups %xmm0, (%rax) movl $0x676e6972, 0xf(%rax) # imm = 0x676E6972 movq %rcx, 0x8(%rdx) movq (%rdx), %rax movb $0x0, (%rax,%rcx) leaq 0x228(%rsp), %rdi leaq 0x2b8(%rsp), %rsi callq 0x34f564 movq 0x228(%rsp), %rsi movq 0x248(%rsp), %rdx movq %rbx, %rdi callq 0x9ab85c leaq 0x118(%rsp), %r12 movq %r12, -0x10(%r12) movl $0x75736552, %eax # imm = 0x75736552 movl %eax, (%r12) movw $0x746c, %cx # imm = 0x746C movw %cx, 0x4(%r12) movl $0x6, %edx movq %rdx, -0x8(%r12) xorl %esi, %esi movb %sil, 0x6(%r12) leaq 0x180(%rsp), %r13 movq %r13, -0x10(%r13) movl %eax, (%r13) movw %cx, 0x4(%r13) movq %rdx, -0x8(%r13) movb %sil, 0x6(%r13) leaq 0x350(%rsp), %rdi leaq 0x108(%rsp), %rsi leaq 0x170(%rsp), %rdx movq 0x20(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x350(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e movq %rbx, %rdi callq 0x9ab8b2 leaq 0x380(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86dd1b movq 0x380(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x360(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86dd3c movq 0x360(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x170(%rsp), %rdi cmpq %r13, %rdi je 0x86dd59 movq 0x180(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r12, %rdi je 0x86dd76 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x258(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86dd97 movq 0x258(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x238(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86ddb8 movq 0x238(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x4d0(%rsp), %rdi cmpq %r15, %rdi je 0x86ddd5 movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x2b8(%rsp), %rdi cmpq %r14, %rdi je 0x86e334 movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86e334 leaq 0x358(%rsp), %r14 movq %rbx, -0x8(%r14) movq %r14, %rdi callq 0x325e00 leaq 0x219179(%rip), %rsi # 0xa86f8f movl $0x2c, %edx movq %r14, %rdi callq 0x325e70 movl 0x6c(%rsp), %esi movq %r14, %rdi callq 0x325530 leaq 0x218965(%rip), %rsi # 0xa8679b movl $0x2, %edx movq %r14, %rdi callq 0x325e70 movl 0x70(%rsp), %esi movq %r14, %rdi callq 0x325530 leaq 0x218945(%rip), %rsi # 0xa8679b movl $0x2, %edx movq %r14, %rdi callq 0x325e70 movl 0x74(%rsp), %esi movq %r14, %rdi callq 0x325530 leaq 0x23c908(%rip), %rsi # 0xaaa77e movl $0x1, %edx movq %r14, %rdi callq 0x325e70 leaq 0x235403(%rip), %rsi # 0xaa328d leaq 0x350(%rsp), %rdi callq 0x9aba2a movq %rax, %rbx leaq 0xf8(%rsp), %rcx movq %rcx, -0x10(%rcx) movabsq $0x52657261706d6f43, %rax # imm = 0x52657261706D6F43 movq %rax, (%rcx) movabsq $0x746c757365526572, %rax # imm = 0x746C757365526572 movq %rax, 0x5(%rcx) movq $0xd, -0x8(%rcx) movb $0x0, 0xd(%rcx) leaq 0x98(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x228(%rsp), %rsi movq $0x13, (%rsi) leaq 0x88(%rsp), %rdi xorl %edx, %edx callq 0x325a10 leaq 0x88(%rsp), %rdx movq %rax, (%rdx) movq 0x228(%rsp), %rcx movq %rcx, 0x10(%rdx) movups 0x1956a2(%rip), %xmm0 # 0xa035b7 movups %xmm0, (%rax) movl $0x676e6972, 0xf(%rax) # imm = 0x676E6972 movq %rcx, 0x8(%rdx) movq (%rdx), %rax movb $0x0, (%rax,%rcx) leaq 0x108(%rsp), %rdi leaq 0xe8(%rsp), %rsi callq 0x34f564 movq 0x108(%rsp), %rsi movq 0x128(%rsp), %rdx movq %rbx, %rdi callq 0x9ab85c leaq 0xd8(%rsp), %rdi movq %rdi, -0x10(%rdi) movl $0x75736552, %eax # imm = 0x75736552 movl %eax, (%rdi) movw $0x746c, %cx # imm = 0x746C movw %cx, 0x4(%rdi) movl $0x6, %edx movq %rdx, -0x8(%rdi) xorl %esi, %esi movb %sil, 0x6(%rdi) leaq 0xb8(%rsp), %rdi movq %rdi, -0x10(%rdi) movl %eax, (%rdi) movw %cx, 0x4(%rdi) movq %rdx, -0x8(%rdi) movb %sil, 0x6(%rdi) leaq 0x228(%rsp), %rdi leaq 0xc8(%rsp), %rsi leaq 0xa8(%rsp), %rdx movq 0x20(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x228(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e leaq 0x208(%rsp), %r14 movq %r14, -0x10(%r14) movabsq $0x636e657265666552, %rax # imm = 0x636E657265666552 movq %rax, (%r14) movw $0x65, %cx movw %cx, 0x8(%r14) movl $0x9, %edx movq %rdx, -0x8(%r14) leaq 0x1e8(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, (%r12) movw %cx, 0x8(%r12) movq %rdx, -0x8(%r12) leaq 0x2b8(%rsp), %rdi leaq 0x1f8(%rsp), %rsi leaq 0x1d8(%rsp), %rdx movq 0x38(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x2b8(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e leaq 0x1c8(%rsp), %r13 movq %r13, -0x10(%r13) movabsq $0x73614d726f727245, %rax # imm = 0x73614D726F727245 movq %rax, (%r13) movw $0x6b, 0x8(%r13) movq $0x9, -0x8(%r13) leaq 0x1a8(%rsp), %r15 movq %r15, -0x10(%r15) movabsq $0x616d20726f727245, %rax # imm = 0x616D20726F727245 movq %rax, (%r15) movw $0x6b73, 0x8(%r15) # imm = 0x6B73 movq $0xa, -0x8(%r15) movb $0x0, 0xa(%r15) leaq 0x170(%rsp), %rdi leaq 0x560(%rsp), %rsi callq 0x9acfec leaq 0x4d0(%rsp), %rdi leaq 0x1b8(%rsp), %rsi leaq 0x198(%rsp), %rdx leaq 0x170(%rsp), %rcx movl $0x2, %r8d callq 0x9aa588 leaq 0x4d0(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e movq %rbx, %rdi callq 0x9ab8b2 leaq 0x500(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e121 movq 0x500(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x4e0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e142 movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x198(%rsp), %rdi cmpq %r15, %rdi je 0x86e15f movq 0x1a8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1b8(%rsp), %rdi cmpq %r13, %rdi leaq 0x358(%rsp), %rbx leaq 0xf8(%rsp), %r15 je 0x86e18c movq 0x1c8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2e8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e1ad movq 0x2e8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2c8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e1ce movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1d8(%rsp), %rdi cmpq %r12, %rdi je 0x86e1eb movq 0x1e8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1f8(%rsp), %rdi cmpq %r14, %rdi je 0x86e208 movq 0x208(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x258(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e229 movq 0x258(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x238(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e24a movq 0x238(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x86e26f movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xc8(%rsp), %rdi leaq 0xd8(%rsp), %rax cmpq %rax, %rdi je 0x86e294 movq 0xd8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x138(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e2b5 movq 0x138(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x118(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e2d6 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x86e2fb movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe8(%rsp), %rdi cmpq %r15, %rdi je 0x86e318 movq 0xf8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3ee809(%rip), %rsi # 0xc5cb28 movq %rbx, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 jmp 0x86e877 leaq 0x358(%rsp), %rbx movq 0x30(%rsp), %rax movq %rax, -0x8(%rbx) movq %rbx, %rdi callq 0x325e00 leaq 0x218c36(%rip), %rsi # 0xa86f8f movl $0x2c, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rdi movl 0x10(%rsp), %esi callq 0x325530 leaq 0x218422(%rip), %rsi # 0xa8679b movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rdi movl 0x14(%rsp), %esi callq 0x325530 leaq 0x218402(%rip), %rsi # 0xa8679b movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rdi movl 0xc(%rsp), %esi callq 0x325530 leaq 0x23c3c5(%rip), %rsi # 0xaaa77e movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x234ec0(%rip), %rsi # 0xaa328d leaq 0x350(%rsp), %rdi callq 0x9aba2a movq %rax, %rbx leaq 0xf8(%rsp), %rcx movq %rcx, -0x10(%rcx) movabsq $0x52657261706d6f43, %rax # imm = 0x52657261706D6F43 movq %rax, (%rcx) movabsq $0x746c757365526572, %rax # imm = 0x746C757365526572 movq %rax, 0x5(%rcx) movq $0xd, -0x8(%rcx) movb $0x0, 0xd(%rcx) leaq 0x98(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x228(%rsp), %rsi movq $0x13, (%rsi) leaq 0x88(%rsp), %rdi xorl %edx, %edx callq 0x325a10 leaq 0x88(%rsp), %rdx movq %rax, (%rdx) movq 0x228(%rsp), %rcx movq %rcx, 0x10(%rdx) movups 0x19515f(%rip), %xmm0 # 0xa035b7 movups %xmm0, (%rax) movl $0x676e6972, 0xf(%rax) # imm = 0x676E6972 movq %rcx, 0x8(%rdx) movq (%rdx), %rax movb $0x0, (%rax,%rcx) leaq 0x108(%rsp), %rdi leaq 0xe8(%rsp), %rsi callq 0x34f564 movq 0x108(%rsp), %rsi movq 0x128(%rsp), %rdx movq %rbx, %rdi callq 0x9ab85c leaq 0xd8(%rsp), %rdi movq %rdi, -0x10(%rdi) movl $0x75736552, %eax # imm = 0x75736552 movl %eax, (%rdi) movw $0x746c, %cx # imm = 0x746C movw %cx, 0x4(%rdi) movl $0x6, %edx movq %rdx, -0x8(%rdi) xorl %esi, %esi movb %sil, 0x6(%rdi) leaq 0xb8(%rsp), %rdi movq %rdi, -0x10(%rdi) movl %eax, (%rdi) movw %cx, 0x4(%rdi) movq %rdx, -0x8(%rdi) movb %sil, 0x6(%rdi) leaq 0x228(%rsp), %rdi leaq 0xc8(%rsp), %rsi leaq 0xa8(%rsp), %rdx movq 0x20(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x228(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e leaq 0x208(%rsp), %r15 movq %r15, -0x10(%r15) movabsq $0x636e657265666552, %rax # imm = 0x636E657265666552 movq %rax, (%r15) movw $0x65, %cx movw %cx, 0x8(%r15) movl $0x9, %edx movq %rdx, -0x8(%r15) leaq 0x1e8(%rsp), %r14 movq %r14, -0x10(%r14) movq %rax, (%r14) movw %cx, 0x8(%r14) movq %rdx, -0x8(%r14) leaq 0x2b8(%rsp), %rdi leaq 0x1f8(%rsp), %rsi leaq 0x1d8(%rsp), %rdx movq 0x38(%rsp), %rcx movl $0x2, %r8d callq 0x9aa494 leaq 0x2b8(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e leaq 0x1c8(%rsp), %r12 movq %r12, -0x10(%r12) movabsq $0x73614d726f727245, %rax # imm = 0x73614D726F727245 movq %rax, (%r12) movw $0x6b, 0x8(%r12) movq $0x9, -0x8(%r12) leaq 0x1a8(%rsp), %r13 movq %r13, -0x10(%r13) movabsq $0x616d20726f727245, %rax # imm = 0x616D20726F727245 movq %rax, (%r13) movw $0x6b73, 0x8(%r13) # imm = 0x6B73 movq $0xa, -0x8(%r13) movb $0x0, 0xa(%r13) leaq 0x170(%rsp), %rdi leaq 0x560(%rsp), %rsi callq 0x9acfec leaq 0x4d0(%rsp), %rdi leaq 0x1b8(%rsp), %rsi leaq 0x198(%rsp), %rdx leaq 0x170(%rsp), %rcx movl $0x2, %r8d callq 0x9aa588 leaq 0x4d0(%rsp), %rdi movq %rbx, %rsi callq 0x9aa92e movq %rbx, %rdi callq 0x9ab8b2 leaq 0x500(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e664 movq 0x500(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x4e0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e685 movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x198(%rsp), %rdi cmpq %r13, %rdi je 0x86e6a2 movq 0x1a8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1b8(%rsp), %rdi cmpq %r12, %rdi je 0x86e6bf movq 0x1c8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2e8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi leaq 0x358(%rsp), %rbx leaq 0xf8(%rsp), %r12 je 0x86e6f0 movq 0x2e8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2c8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e711 movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1d8(%rsp), %rdi cmpq %r14, %rdi je 0x86e72e movq 0x1e8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1f8(%rsp), %rdi cmpq %r15, %rdi je 0x86e74b movq 0x208(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x258(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e76c movq 0x258(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x238(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e78d movq 0x238(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x86e7b2 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xc8(%rsp), %rdi leaq 0xd8(%rsp), %rax cmpq %rax, %rdi je 0x86e7d7 movq 0xd8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x138(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e7f8 movq 0x138(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x118(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x86e819 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x86e83e movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe8(%rsp), %rdi cmpq %r12, %rdi je 0x86e85b movq 0xf8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3ee2c6(%rip), %rsi # 0xc5cb28 movq %rbx, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 leaq 0x560(%rsp), %rdi callq 0x9b433a movl %ebp, %eax addq $0x588, %rsp # imm = 0x588 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x86e9c0 movq %rax, %rbx jmp 0x86eafb movq %rax, %rbx jmp 0x86e9cd movq %rax, %rbx jmp 0x86eb08 movq %rax, %rbx jmp 0x86ea07 movq %rax, %rbx jmp 0x86eb42 movq %rax, %rbx jmp 0x86ea14 movq %rax, %rbx jmp 0x86eb4f movq %rax, %rbx jmp 0x86ea5e movq %rax, %rbx jmp 0x86eb99 movq %rax, %rbx jmp 0x86ea6b movq %rax, %rbx jmp 0x86eba6 movq %rax, %rbx jmp 0x86ea90 movq %rax, %rbx jmp 0x86ebcb movq %rax, %rbx jmp 0x86ec13 movq %rax, %rbx jmp 0x86eca9 movq %rax, %rbx jmp 0x86ec4d movq %rax, %rbx jmp 0x86ece3 jmp 0x86ed4b jmp 0x86ed5f movq %rax, %rbx jmp 0x86ec5a movq %rax, %rbx jmp 0x86ecf0 jmp 0x86ee11 jmp 0x86ee0c movq %rax, %rbx jmp 0x86ec77 movq %rax, %rbx jmp 0x86ed0d movq %rax, %rbx leaq 0x4d0(%rsp), %rdi callq 0x34f5c8 jmp 0x86e986 movq %rax, %rbx leaq 0x4d0(%rsp), %rdi callq 0x34f5c8 jmp 0x86eac1 movq %rax, %rbx movq 0x198(%rsp), %rdi cmpq %r13, %rdi je 0x86e9a3 movq 0x1a8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1b8(%rsp), %rdi cmpq %r12, %rdi je 0x86e9c0 movq 0x1c8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2b8(%rsp), %rdi callq 0x34f5c8 movq 0x1d8(%rsp), %rdi cmpq %r14, %rdi je 0x86e9ea movq 0x1e8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1f8(%rsp), %rdi cmpq %r15, %rdi je 0x86ea07 movq 0x208(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x228(%rsp), %rdi callq 0x34f5c8 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x86ea39 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xc8(%rsp), %rdi leaq 0xd8(%rsp), %rax cmpq %rax, %rdi je 0x86ea5e movq 0xd8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x108(%rsp), %rdi callq 0x34f5fe movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x86ea90 movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe8(%rsp), %rdi leaq 0xf8(%rsp), %rax cmpq %rax, %rdi je 0x86ed4e movq 0xf8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86ed4e movq %rax, %rbx movq 0x198(%rsp), %rdi cmpq %r15, %rdi je 0x86eade movq 0x1a8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1b8(%rsp), %rdi cmpq %r13, %rdi je 0x86eafb movq 0x1c8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x2b8(%rsp), %rdi callq 0x34f5c8 movq 0x1d8(%rsp), %rdi cmpq %r12, %rdi je 0x86eb25 movq 0x1e8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x1f8(%rsp), %rdi cmpq %r14, %rdi je 0x86eb42 movq 0x208(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x228(%rsp), %rdi callq 0x34f5c8 movq 0xa8(%rsp), %rdi leaq 0xb8(%rsp), %rax cmpq %rax, %rdi je 0x86eb74 movq 0xb8(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xc8(%rsp), %rdi leaq 0xd8(%rsp), %rax cmpq %rax, %rdi je 0x86eb99 movq 0xd8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x108(%rsp), %rdi callq 0x34f5fe movq 0x88(%rsp), %rdi leaq 0x98(%rsp), %rax cmpq %rax, %rdi je 0x86ebcb movq 0x98(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe8(%rsp), %rdi leaq 0xf8(%rsp), %rax cmpq %rax, %rdi je 0x86ed62 movq 0xf8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86ed62 jmp 0x86ed4b jmp 0x86ed5f movq %rax, %rbx leaq 0x350(%rsp), %rdi callq 0x34f5c8 movq 0x170(%rsp), %rdi cmpq %r13, %rdi je 0x86ec30 movq 0x180(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r12, %rdi je 0x86ec4d movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x228(%rsp), %rdi callq 0x34f5fe movq 0x4d0(%rsp), %rdi cmpq %r15, %rdi je 0x86ec77 movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x2b8(%rsp), %rdi cmpq %r14, %rdi je 0x86ec94 movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86ee14 movq %rax, %rbx leaq 0x350(%rsp), %rdi callq 0x34f5c8 movq 0x170(%rsp), %rdi cmpq %r13, %rdi je 0x86ecc6 movq 0x180(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r12, %rdi je 0x86ece3 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x228(%rsp), %rdi callq 0x34f5fe movq 0x4d0(%rsp), %rdi cmpq %r15, %rdi je 0x86ed0d movq 0x4e0(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x2b8(%rsp), %rdi cmpq %r14, %rdi je 0x86ee14 movq 0x2c8(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x86ee14 jmp 0x86ed4b jmp 0x86ed5f jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 movq %rax, %rbx movq 0x3eddd3(%rip), %rsi # 0xc5cb28 leaq 0x358(%rsp), %rdi jmp 0x86edc3 movq %rax, %rbx movq 0x3eddbf(%rip), %rsi # 0xc5cb28 leaq 0x358(%rsp), %rdi jmp 0x86eda2 jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 movq %rax, %rbx movq 0x3edd89(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 jmp 0x86ee14 movq %rax, %rbx movq 0x3edd68(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 jmp 0x86ee14 movq %rax, %rbx movq 0x3edd47(%rip), %rsi # 0xc5cb28 movq %r14, %rdi callq 0x325aa0 leaq 0x3c8(%rsp), %rdi callq 0x325a80 jmp 0x86ee21 jmp 0x86ee0c jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee11 jmp 0x86ee0c jmp 0x86ee11 jmp 0x86ee0c movq %rax, %rbx jmp 0x86ee14 movq %rax, %rbx leaq 0x560(%rsp), %rdi callq 0x9b433a movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::(anonymous namespace)::DrawTestShaderProgram::shadeVertices(rr::VertexAttrib const*, rr::VertexPacket* const*, int) const
void DrawTestShaderProgram::shadeVertices (const rr::VertexAttrib* inputs, rr::VertexPacket* const* packets, const int numPackets) const { const float u_coordScale = getUniformByName("u_coordScale").value.f; const float u_colorScale = getUniformByName("u_colorScale").value.f; for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) { const size_t varyingLocColor = 0; rr::VertexPacket& packet = *packets[packetNdx]; // Calc output color tcu::Vec2 coord = tcu::Vec2(0.0, 0.0); tcu::Vec3 color = tcu::Vec3(1.0, 1.0, 1.0); for (int attribNdx = 0; attribNdx < (int)m_attrType.size(); attribNdx++) { const int numComponents = m_componentCount[attribNdx]; const bool isCoord = m_isCoord[attribNdx]; switch (m_attrType[attribNdx]) { case rr::GENERICVECTYPE_FLOAT: calcShaderColorCoord(coord, color, rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; case rr::GENERICVECTYPE_INT32: calcShaderColorCoord(coord, color, rr::readVertexAttribInt (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; case rr::GENERICVECTYPE_UINT32: calcShaderColorCoord(coord, color, rr::readVertexAttribUint (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), isCoord, numComponents); break; default: DE_ASSERT(false); } } // Transform position { packet.position = tcu::Vec4(u_coordScale * coord.x(), u_coordScale * coord.y(), 1.0f, 1.0f); packet.pointSize = 1.0f; } // Pass color to FS { packet.outputs[varyingLocColor] = tcu::Vec4(u_colorScale * color.x(), u_colorScale * color.y(), u_colorScale * color.z(), 1.0f) * 0.5f + tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f); } } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %ecx, %ebp movq %rdx, 0x68(%rsp) movq %rsi, %r14 movq %rdi, %r15 leaq 0x216be9(%rip), %rsi # 0xa85ada callq 0x8b1e68 movss 0x24(%rax), %xmm0 movss %xmm0, 0x4c(%rsp) leaq 0x1aad96(%rip), %rsi # 0xa19c9e movq %r15, %rdi callq 0x8b1e68 testl %ebp, %ebp jle 0x86f812 movss 0x24(%rax), %xmm0 movss %xmm0, 0x48(%rsp) movl %ebp, %eax movq %rax, 0x60(%rsp) xorl %ecx, %ecx movabsq $0x3f8000003f800000, %rdx # imm = 0x3F8000003F800000 movq 0x68(%rsp), %rax movq %rcx, 0x70(%rsp) movq (%rax,%rcx,8), %rbx movq $0x0, 0x28(%rsp) movq %rdx, (%rsp) movl $0x3f800000, 0x8(%rsp) # imm = 0x3F800000 movq 0x198(%r15), %rax movq 0x1a0(%r15), %rcx subq %rax, %rcx shrq $0x2, %rcx testl %ecx, %ecx jle 0x86f704 xorl %r13d, %r13d movq 0x158(%r15), %rcx movq 0x170(%r15), %rdx movl (%rcx,%r13,4), %r12d movq %r13, %rsi shrq $0x6, %rsi movl $0x1, %ebp movl %r13d, %ecx shlq %cl, %rbp andq (%rdx,%rsi,8), %rbp movl (%rax,%r13,4), %eax cmpl $0x2, %eax je 0x86f0c5 cmpl $0x1, %eax je 0x86f03f testl %eax, %eax jne 0x86f6e0 leaq (,%r13,4), %rax addq %r13, %rax leaq (%r14,%rax,8), %rsi movl (%rbx), %edx movl 0x4(%rbx), %ecx xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x10(%rsp), %rdi callq 0x96bec1 decl %r12d testq %rbp, %rbp je 0x86f1ee cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x2171f6(%rip), %rcx # 0xa861f8 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax movss 0x10(%rsp), %xmm0 movss %xmm0, 0x30(%rsp) movss %xmm0, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f01f jmp 0x86f6e0 leaq (,%r13,4), %rax addq %r13, %rax leaq (%r14,%rax,8), %rsi movl (%rbx), %edx movl 0x4(%rbx), %ecx xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x10(%rsp), %rdi callq 0x96cf90 decl %r12d testq %rbp, %rbp je 0x86f148 cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x217136(%rip), %rcx # 0xa861b8 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movss %xmm0, 0x30(%rsp) movss %xmm0, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f0a5 jmp 0x86f6e0 leaq (,%r13,4), %rax addq %r13, %rax leaq (%r14,%rax,8), %rsi movl (%rbx), %edx movl 0x4(%rbx), %ecx xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x10(%rsp), %rdi callq 0x96ce45 decl %r12d testq %rbp, %rbp je 0x86f19e cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x2170d0(%rip), %rcx # 0xa861d8 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 movss %xmm0, 0x30(%rsp) movss %xmm0, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f128 jmp 0x86f6e0 cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x21706f(%rip), %rcx # 0xa861c8 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movq $0x0, 0x30(%rsp) movl $0x0, 0x38(%rsp) xorl %eax, %eax movss (%rsp,%rax,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, 0x30(%rsp,%rax,4) incq %rax cmpq $0x3, %rax jne 0x86f181 jmp 0x86f239 cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x217039(%rip), %rcx # 0xa861e8 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 movq $0x0, 0x30(%rsp) movl $0x0, 0x38(%rsp) xorl %eax, %eax movss (%rsp,%rax,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, 0x30(%rsp,%rax,4) incq %rax cmpq $0x3, %rax jne 0x86f1d4 jmp 0x86f239 cmpl $0x3, %r12d ja 0x86f6e0 leaq 0x217009(%rip), %rcx # 0xa86208 movslq (%rcx,%r12,4), %rax addq %rcx, %rax jmpq *%rax movss 0x10(%rsp), %xmm0 movq $0x0, 0x30(%rsp) movl $0x0, 0x38(%rsp) xorl %eax, %eax movss (%rsp,%rax,4), %xmm1 mulss %xmm0, %xmm1 movss %xmm1, 0x30(%rsp,%rax,4) incq %rax cmpq $0x3, %rax jne 0x86f221 movl 0x38(%rsp), %eax movl %eax, 0x8(%rsp) movq 0x30(%rsp), %rax movq %rax, (%rsp) jmp 0x86f6e0 movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movl 0x18(%rsp), %eax xorps %xmm1, %xmm1 cvtsi2ss %rax, %xmm1 movl 0x14(%rsp), %eax xorps %xmm2, %xmm2 cvtsi2ss %rax, %xmm2 addss %xmm0, %xmm1 movss %xmm1, 0x30(%rsp) movss %xmm2, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f285 jmp 0x86f6e0 movl 0x10(%rsp), %eax movl 0x14(%rsp), %ecx xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movl 0x18(%rsp), %eax xorps %xmm1, %xmm1 cvtsi2ss %rax, %xmm1 addss %xmm0, %xmm1 xorps %xmm0, %xmm0 cvtsi2ss %rcx, %xmm0 movl 0x1c(%rsp), %eax xorps %xmm2, %xmm2 cvtsi2ss %rax, %xmm2 addss %xmm0, %xmm2 movss %xmm1, 0x30(%rsp) movss %xmm2, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f2eb jmp 0x86f6e0 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x18(%rsp), %xmm1 xorps %xmm2, %xmm2 cvtsi2ssl 0x14(%rsp), %xmm2 addss %xmm0, %xmm1 movss %xmm1, 0x30(%rsp) movss %xmm2, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f338 jmp 0x86f6e0 movss 0x10(%rsp), %xmm0 addss 0x18(%rsp), %xmm0 movss 0x14(%rsp), %xmm1 movss %xmm0, 0x30(%rsp) movss %xmm1, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f378 jmp 0x86f6e0 movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movl 0x14(%rsp), %eax xorps %xmm1, %xmm1 cvtsi2ss %rax, %xmm1 movss %xmm0, 0x30(%rsp) movss %xmm1, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f3be jmp 0x86f6e0 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x18(%rsp), %xmm1 xorps %xmm2, %xmm2 cvtsi2ssl 0x14(%rsp), %xmm2 addss %xmm0, %xmm1 xorps %xmm0, %xmm0 cvtsi2ssl 0x1c(%rsp), %xmm0 addss %xmm2, %xmm0 movss %xmm1, 0x30(%rsp) movss %xmm0, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f418 jmp 0x86f6e0 movss 0x10(%rsp), %xmm0 movss 0x14(%rsp), %xmm1 addss 0x18(%rsp), %xmm0 addss 0x1c(%rsp), %xmm1 movss %xmm0, 0x30(%rsp) movss %xmm1, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f45e jmp 0x86f6e0 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x14(%rsp), %xmm1 movss %xmm0, 0x30(%rsp) movss %xmm1, 0x34(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f49e jmp 0x86f6e0 movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) xorl %eax, %eax movss 0x30(%rsp,%rax,4), %xmm0 addss 0x28(%rsp,%rax,4), %xmm0 movss %xmm0, 0x28(%rsp,%rax,4) incq %rax cmpq $0x1, %rax je 0x86f4ca jmp 0x86f6e0 movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss (%rsp), %xmm0 movl 0x14(%rsp), %eax xorps %xmm1, %xmm1 cvtsi2ss %rax, %xmm1 movss %xmm0, (%rsp) mulss 0x4(%rsp), %xmm1 movl 0x18(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 jmp 0x86f59e movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 movl 0x14(%rsp), %eax mulss (%rsp), %xmm0 movl 0x1c(%rsp), %ecx xorps %xmm1, %xmm1 cvtsi2ss %rcx, %xmm1 mulss %xmm1, %xmm0 movss %xmm0, (%rsp) xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss 0x4(%rsp), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, 0x4(%rsp) movl 0x18(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 jmp 0x86f646 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 mulss (%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x14(%rsp), %xmm1 movss %xmm0, (%rsp) mulss 0x4(%rsp), %xmm1 xorps %xmm0, %xmm0 cvtsi2ssl 0x18(%rsp), %xmm0 movss %xmm1, 0x4(%rsp) mulss 0x8(%rsp), %xmm0 jmp 0x86f6b6 movl 0x10(%rsp), %eax xorps %xmm0, %xmm0 cvtsi2ss %rax, %xmm0 mulss (%rsp), %xmm0 movl 0x14(%rsp), %eax xorps %xmm1, %xmm1 cvtsi2ss %rax, %xmm1 jmp 0x86f669 movss (%rsp), %xmm0 movss 0x4(%rsp), %xmm1 mulss 0x10(%rsp), %xmm0 movss %xmm0, (%rsp) mulss 0x14(%rsp), %xmm1 movss %xmm1, 0x4(%rsp) movss 0x8(%rsp), %xmm0 mulss 0x18(%rsp), %xmm0 jmp 0x86f6b6 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 mulss (%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x1c(%rsp), %xmm1 mulss %xmm1, %xmm0 xorps %xmm2, %xmm2 cvtsi2ssl 0x14(%rsp), %xmm2 movss %xmm0, (%rsp) mulss 0x4(%rsp), %xmm2 mulss %xmm1, %xmm2 movss %xmm2, 0x4(%rsp) xorps %xmm0, %xmm0 cvtsi2ssl 0x18(%rsp), %xmm0 mulss 0x8(%rsp), %xmm0 mulss %xmm1, %xmm0 jmp 0x86f6b6 xorps %xmm0, %xmm0 cvtsi2ssl 0x10(%rsp), %xmm0 mulss (%rsp), %xmm0 xorps %xmm1, %xmm1 cvtsi2ssl 0x14(%rsp), %xmm1 movss %xmm0, (%rsp) mulss 0x4(%rsp), %xmm1 jmp 0x86f6da movss (%rsp), %xmm0 movss 0x4(%rsp), %xmm1 mulss 0x10(%rsp), %xmm0 movss 0x1c(%rsp), %xmm2 mulss %xmm2, %xmm0 mulss 0x14(%rsp), %xmm1 movss %xmm0, (%rsp) mulss %xmm2, %xmm1 movss %xmm1, 0x4(%rsp) movss 0x8(%rsp), %xmm0 mulss 0x18(%rsp), %xmm0 mulss %xmm2, %xmm0 movss %xmm0, 0x8(%rsp) jmp 0x86f6e0 movss (%rsp), %xmm0 movss 0x4(%rsp), %xmm1 mulss 0x10(%rsp), %xmm0 movss %xmm0, (%rsp) mulss 0x14(%rsp), %xmm1 movss %xmm1, 0x4(%rsp) incq %r13 movq 0x198(%r15), %rax movq 0x1a0(%r15), %rcx subq %rax, %rcx shrq $0x2, %rcx movslq %ecx, %rcx cmpq %rcx, %r13 jl 0x86ef79 movss 0x28(%rsp), %xmm0 movss 0x4c(%rsp), %xmm2 mulss %xmm2, %xmm0 movss 0x2c(%rsp), %xmm1 mulss %xmm2, %xmm1 movss %xmm0, 0x8(%rbx) movss %xmm1, 0xc(%rbx) movabsq $0x3f8000003f800000, %rdx # imm = 0x3F8000003F800000 movq %rdx, 0x10(%rbx) movl $0x3f800000, %eax # imm = 0x3F800000 movl %eax, 0x18(%rbx) movss (%rsp), %xmm0 movss 0x48(%rsp), %xmm3 mulss %xmm3, %xmm0 movss 0x4(%rsp), %xmm1 mulss %xmm3, %xmm1 movss 0x8(%rsp), %xmm2 mulss %xmm3, %xmm2 movss %xmm0, 0x50(%rsp) movss %xmm1, 0x54(%rsp) movss %xmm2, 0x58(%rsp) movl %eax, 0x5c(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rsp) xorl %eax, %eax movss 0x18c513(%rip), %xmm1 # 0x9fbc9c movss 0x50(%rsp,%rax,4), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, 0x30(%rsp,%rax,4) incq %rax cmpq $0x4, %rax jne 0x86f789 movaps 0x1d0477(%rip), %xmm0 # 0xa3fc20 movups %xmm0, 0x78(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) xorl %eax, %eax movq 0x70(%rsp), %rcx movss 0x30(%rsp,%rax,4), %xmm0 addss 0x78(%rsp,%rax,4), %xmm0 movss %xmm0, 0x10(%rsp,%rax,4) incq %rax cmpq $0x4, %rax jne 0x86f7bd movss 0x10(%rsp), %xmm0 movss %xmm0, 0x20(%rbx) movss 0x14(%rsp), %xmm0 movss %xmm0, 0x24(%rbx) movss 0x18(%rsp), %xmm0 movss %xmm0, 0x28(%rbx) movss 0x1c(%rsp), %xmm0 movss %xmm0, 0x2c(%rbx) incq %rcx cmpq 0x60(%rsp), %rcx jne 0x86ef36 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::(anonymous namespace)::DrawTestShaderProgram::shadeFragments(rr::FragmentPacket*, int, rr::FragmentShadingContext const&) const
void DrawTestShaderProgram::shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const { const size_t varyingLocColor = 0; for (int packetNdx = 0; packetNdx < numPackets; ++packetNdx) { rr::FragmentPacket& packet = packets[packetNdx]; for (int fragNdx = 0; fragNdx < 4; ++fragNdx) rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, rr::readVarying<float>(packet, context, varyingLocColor, fragNdx)); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, 0x20(%rsp) testl %edx, %edx jle 0x86f9d0 movq %rcx, %rbx movl %edx, %eax movq %rax, 0x18(%rsp) xorl %r14d, %r14d leaq 0x8(%rsp), %r15 xorl %ebp, %ebp movq %rbp, %r12 shlq $0x6, %r12 addq 0x20(%rsp), %r12 xorl %r13d, %r13d movq %r15, %rdi movq %r12, %rsi movq %rbx, %rdx xorl %ecx, %ecx movl %r13d, %r8d callq 0x36acbb movq 0x18(%rbx), %rax leal (%r14,%r13), %ecx imull 0x24(%rbx), %ecx movslq %ecx, %rcx shlq $0x4, %rcx movss 0x8(%rsp), %xmm0 movss %xmm0, (%rax,%rcx) movss 0xc(%rsp), %xmm0 movss %xmm0, 0x4(%rax,%rcx) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x8(%rax,%rcx) movss 0x14(%rsp), %xmm0 movss %xmm0, 0xc(%rax,%rcx) incl %r13d cmpl $0x4, %r13d jne 0x86f964 incq %rbp addl $0x4, %r14d cmpq 0x18(%rsp), %rbp jne 0x86f955 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::(anonymous namespace)::GLValue::getMinValue(deqp::gls::DrawTestSpec::InputType)
GLValue GLValue::getMinValue (DrawTestSpec::InputType type) { GLValue rangesLo[(int)DrawTestSpec::INPUTTYPE_LAST]; rangesLo[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); rangesLo[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); rangesLo[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); rangesLo[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); rangesLo[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); rangesLo[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); return rangesLo[(int)type]; }
pushq %rbx subq $0xd0, %rsp movl %edi, %ebx xorl %eax, %eax movl $0xc, 0x10(%rsp,%rax) addq $0x10, %rax cmpq $0xc0, %rax jne 0x870412 xorl %eax, %eax movl %eax, 0x10(%rsp) movl $0xc2fe0000, 0x18(%rsp) # imm = 0xC2FE0000 movl $0x2, 0x30(%rsp) movabsq $-0x3fa0400000000000, %rcx # imm = 0xC05FC00000000000 movq %rcx, 0x38(%rsp) movl $0x3, 0x40(%rsp) movb $-0x7f, 0x48(%rsp) movl $0x5, 0x60(%rsp) movb $0x0, 0x68(%rsp) movl $0x6, 0x70(%rsp) movw $0x0, 0x78(%rsp) movl $0x4, 0x50(%rsp) movw $0x8008, 0x58(%rsp) # imm = 0x8008 movl $0x1, 0x20(%rsp) movl $0xffff8008, 0x28(%rsp) # imm = 0xFFFF8008 movl $0x7, 0x80(%rsp) movl $0x80000001, 0x88(%rsp) # imm = 0x80000001 movl $0x8, 0x90(%rsp) movl %eax, 0x98(%rsp) leaq 0xc(%rsp), %rdi movl $0xc3800000, (%rdi) # imm = 0xC3800000 callq 0x8641ae movl $0x9, 0xa0(%rsp) movw %ax, 0xa8(%rsp) movl %ebx, %eax shlq $0x4, %rax movq 0x18(%rsp,%rax), %rax addq $0xd0, %rsp popq %rbx retq
/kaydenl[P]VK-GL-CTS/modules/glshared/glsDrawTest.cpp
deqp::gls::ShaderExecUtil::generatePassthroughFragmentShader(deqp::gls::ShaderExecUtil::ShaderSpec const&, bool, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::string generatePassthroughFragmentShader (const ShaderSpec& shaderSpec, bool useIntOutputs, const std::map<std::string, int>& outLocationMap, const std::string& inputPrefix, const std::string& outputPrefix) { DE_ASSERT(glu::glslVersionUsesInOutQualifiers(shaderSpec.version)); std::ostringstream src; src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; if (!shaderSpec.globalDeclarations.empty()) src << shaderSpec.globalDeclarations << "\n"; for (vector<Symbol>::const_iterator output = shaderSpec.outputs.begin(); output != shaderSpec.outputs.end(); ++output) { if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) { const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); const glu::DataType intBaseType = vecSize > 1 ? glu::getDataTypeIntVec(vecSize) : glu::TYPE_INT; const glu::VarType intType (intBaseType, glu::PRECISION_HIGHP); src << "flat in " << glu::declare(intType, inputPrefix + output->name) << ";\n"; } else src << "flat in " << glu::declare(output->varType, inputPrefix + output->name) << ";\n"; } generateFragShaderOutputDecl(src, shaderSpec, useIntOutputs, outLocationMap, outputPrefix); src << "\nvoid main (void)\n{\n"; generateFragShaderOutAssign(src, shaderSpec, useIntOutputs, inputPrefix, outputPrefix); src << "}\n"; return src.str(); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x218, %rsp # imm = 0x218 movq %r9, %r15 movq %r8, (%rsp) movq %rcx, %r13 movl %edx, 0xc(%rsp) movq %rsi, %r12 movq %rdi, %r14 leaq 0xa0(%rsp), %rdi callq 0x325e00 movl (%r12), %edi callq 0x8bb762 movq %rax, %rbx testq %rax, %rax je 0x872c99 movq %rbx, %rdi callq 0x325680 leaq 0xa0(%rsp), %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x872cbb movq 0xa0(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0xa0, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1e1273(%rip), %rsi # 0xa53f35 leaq 0xa0(%rsp), %rdi movl $0x1, %edx callq 0x325e70 movq 0x40(%r12), %rdx testq %rdx, %rdx je 0x872d04 movq 0x38(%r12), %rsi leaq 0xa0(%rsp), %rdi callq 0x325e70 leaq 0x1e123e(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rax, %rdi callq 0x325e70 movq %r13, 0x30(%rsp) movq %r15, 0x38(%rsp) movq %r14, 0x40(%rsp) movq 0x20(%r12), %r13 cmpq 0x28(%r12), %r13 je 0x872ecb addq $0x20, %r13 leaq 0xa0(%rsp), %r14 leaq 0x10(%rsp), %rbx leaq 0x60(%rsp), %r15 leaq -0x20(%r13), %rbp movl 0x8(%r13), %edi leal -0x23(%rdi), %eax cmpl $0x3, %eax ja 0x872e1d callq 0x8bb822 movl %eax, %edi movl $0x1b, %eax cmpl $0x2, %edi jl 0x872d63 callq 0x8bb87c leaq 0x48(%rsp), %rdi movl %eax, %esi movl $0x2, %edx callq 0x8d997c movl $0x8, %edx movq %r14, %rdi leaq 0x19aeb7(%rip), %rsi # 0xa0dc3a callq 0x325e70 movq %rbx, %rdi movq (%rsp), %rsi movq %rbp, %rdx callq 0x36611e movq %r15, %rdi leaq 0x48(%rsp), %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0x461f6e movq %r14, %rdi movq %r15, %rsi callq 0x8da5ad movl $0x2, %edx movq %rax, %rdi leaq 0x2149a0(%rip), %rsi # 0xa87763 callq 0x325e70 movq 0x78(%rsp), %rdi leaq 0x88(%rsp), %rax cmpq %rax, %rdi je 0x872dea movq 0x88(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r15, %rdi callq 0x8d9a14 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x872e0e movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x48(%rsp), %rdi callq 0x8d9a14 jmp 0x872eb5 movl $0x8, %edx movq %r14, %rdi leaq 0x19ae0e(%rip), %rsi # 0xa0dc3a callq 0x325e70 movq %rbx, %rdi movq (%rsp), %rsi movq %rbp, %rdx callq 0x36611e movq %r15, %rdi movq %r13, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0x461f6e movq %r14, %rdi movq %r15, %rsi callq 0x8da5ad movl $0x2, %edx movq %rax, %rdi leaq 0x2148f9(%rip), %rsi # 0xa87763 callq 0x325e70 movq 0x78(%rsp), %rdi leaq 0x88(%rsp), %rax cmpq %rax, %rdi je 0x872e91 movq 0x88(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r15, %rdi callq 0x8d9a14 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x872eb5 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x38(%r13), %rax addq $0x18, %r13 cmpq 0x28(%r12), %r13 movq %rax, %r13 jne 0x872d39 movzbl 0xc(%rsp), %ebx leaq 0xa0(%rsp), %rdi movq %r12, %rsi movl %ebx, %edx movq 0x30(%rsp), %rcx movq 0x38(%rsp), %r15 movq %r15, %r8 callq 0x8784b9 movq 0x40(%rsp), %r14 leaq 0x19ad5a(%rip), %rsi # 0xa0dc55 leaq 0xa0(%rsp), %rdi movl $0x14, %edx callq 0x325e70 leaq 0xa0(%rsp), %rdi movq %r12, %rsi movl %ebx, %edx movq (%rsp), %rcx movq %r15, %r8 callq 0x878ae4 leaq 0x1ec8b8(%rip), %rsi # 0xa5f7e5 leaq 0xa0(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0xa8(%rsp), %rsi movq %r14, %rdi callq 0x325660 movq 0x3e9bd2(%rip), %rsi # 0xc5cb28 leaq 0xa0(%rsp), %rdi callq 0x325aa0 leaq 0x110(%rsp), %rdi callq 0x325a80 movq %r14, %rax addq $0x218, %rsp # imm = 0x218 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x872f91 jmp 0x872f91 jmp 0x872f91 jmp 0x872f91 jmp 0x872f91 jmp 0x872f9b movq %rax, %rbx jmp 0x873003 movq %rax, %rbx jmp 0x872fe7 movq %rax, %rbx jmp 0x872fce movq %rax, %rbx jmp 0x872fb2 movq %rax, %rbx leaq 0x60(%rsp), %rdi callq 0x4619c6 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x872fce movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x48(%rsp), %rdi callq 0x8d9a14 jmp 0x873003 movq %rax, %rbx leaq 0x60(%rsp), %rdi callq 0x4619c6 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x873003 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3e9b1e(%rip), %rsi # 0xc5cb28 leaq 0xa0(%rsp), %rdi callq 0x325aa0 leaq 0x110(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessEvaluationExecutor::~TessEvaluationExecutor()
BufferIoExecutor::~BufferIoExecutor (void) { }
pushq %rbx movq %rdi, %rbx leaq 0x3e0ea3(%rip), %rax # 0xc56400 movq %rax, (%rdi) movq 0x158(%rdi), %rdi testq %rdi, %rdi je 0x87557b movq 0x168(%rbx), %rsi subq %rdi, %rsi callq 0x3251a0 movq 0x140(%rbx), %rdi testq %rdi, %rdi je 0x875596 movq 0x150(%rbx), %rsi subq %rdi, %rsi callq 0x3251a0 leaq 0x128(%rbx), %rdi callq 0x92b79c leaq 0x110(%rbx), %rdi callq 0x92b79c leaq 0x40(%rbx), %rdi callq 0x8ba6d2 leaq 0x3e0cda(%rip), %rax # 0xc56298 movq %rax, (%rbx) leaq 0x28(%rbx), %rdi callq 0x36a7d0 addq $0x10, %rbx movq %rbx, %rdi popq %rbx jmp 0x36a7d0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::BufferIoExecutor::copyFromBuffer(glu::VarType const&, deqp::gls::ShaderExecUtil::BufferIoExecutor::VarLayout const&, int, void const*, void*)
void BufferIoExecutor::copyFromBuffer (const glu::VarType& varType, const VarLayout& layout, int numValues, const void* srcBasePtr, void* dstBasePtr) { if (varType.isBasicType()) { const glu::DataType basicType = varType.getBasicType(); const bool isMatrix = glu::isDataTypeMatrix(basicType); const int scalarSize = glu::getDataTypeScalarSize(basicType); const int numVecs = isMatrix ? glu::getDataTypeMatrixNumColumns(basicType) : 1; const int numComps = scalarSize / numVecs; for (int elemNdx = 0; elemNdx < numValues; elemNdx++) { for (int vecNdx = 0; vecNdx < numVecs; vecNdx++) { const int srcOffset = layout.offset + layout.stride*elemNdx + (isMatrix ? layout.matrixStride*vecNdx : 0); const int dstOffset = (int)sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); const deUint8* srcPtr = (const deUint8*)srcBasePtr + srcOffset; deUint8* dstPtr = (deUint8*)dstBasePtr + dstOffset; deMemcpy(dstPtr, srcPtr, sizeof(deUint32)*numComps); } } } else throw tcu::InternalError("Unsupported type"); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %edx, 0x18(%rsp) cmpl $0x0, (%rdi) jne 0x875a05 movq %rsi, %r15 movq %rcx, 0x20(%rsp) movq %r8, 0x28(%rsp) movl 0x8(%rdi), %ebp leal -0x5(%rbp), %eax cmpl $0x9, %eax setb %al leal -0x12(%rbp), %ecx cmpl $0x9, %ecx setb %bl orb %al, %bl movl %ebp, %edi callq 0x8bb822 movl %eax, 0x10(%rsp) movl $0x1, %ecx cmpb $0x1, %bl jne 0x87591f movl %ebp, %edi callq 0x8bb8a8 movl %eax, %ecx movl 0x10(%rsp), %eax cltd idivl %ecx cmpl $0x0, 0x18(%rsp) jle 0x8759f6 cltq leaq (,%rax,4), %r14 movl %ecx, %edx shll $0x2, 0x10(%rsp) shll $0x2, %eax xorl %edi, %edi movl $0x0, 0x14(%rsp) xorl %ebp, %ebp movl %ecx, 0x1c(%rsp) movq %rax, 0x40(%rsp) movb %bl, 0xf(%rsp) movq %r15, 0x38(%rsp) movq %rdx, 0x30(%rsp) testl %ecx, %ecx movq 0x28(%rsp), %r9 movq 0x20(%rsp), %r10 jle 0x8759da movl 0x14(%rsp), %ecx movl %ecx, %r12d xorl %r13d, %r13d movl 0x4(%r15), %eax imull %ebp, %eax addl (%r15), %eax movl 0x8(%r15), %ecx imull %r13d, %ecx testb %bl, %bl cmovel %edi, %ecx addl %eax, %ecx movslq %ecx, %rsi addq %r10, %rsi movslq %r12d, %r12 leaq (%r9,%r12), %rdi movq %r14, %rdx movq %r9, %rbx movq %r10, %r15 callq 0x325120 movq %r15, %r10 movq %rbx, %r9 xorl %edi, %edi movq 0x30(%rsp), %rdx movq 0x38(%rsp), %r15 movq 0x40(%rsp), %rax movb 0xf(%rsp), %bl incq %r13 addl %eax, %r12d cmpq %r13, %rdx jne 0x875980 incl %ebp movl 0x14(%rsp), %ecx addl 0x10(%rsp), %ecx movl %ecx, 0x14(%rsp) cmpl 0x18(%rsp), %ebp movl 0x1c(%rsp), %ecx jne 0x875968 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x58(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x22a4d0(%rip), %rsi # 0xa9fef2 leaq 0x22a4d9(%rip), %rdx # 0xa9ff02 leaq 0x48(%rsp), %rdi callq 0x334070 movb $0x1, %bpl leaq 0x48(%rsp), %rsi movq %rbx, %rdi callq 0x99c1f0 xorl %ebp, %ebp leaq 0x3a5634(%rip), %rsi # 0xc1b080 leaq -0x543c73(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 movq %rax, %r14 movq 0x48(%rsp), %rdi cmpq %r15, %rdi je 0x875a7d movq 0x58(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x875a7d movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x875a8a movq %rbx, %rdi callq 0x325d40 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::BufferIoExecutor::uploadInputBuffer(void const* const*, int)
void BufferIoExecutor::uploadInputBuffer (const void* const* inputPtrs, int numValues) { const glw::Functions& gl = m_renderCtx.getFunctions(); const deUint32 buffer = *m_inputBuffer; const deUint32 inputStride = getLayoutStride(m_inputLayout); const int inputBufferSize = inputStride*numValues; if (inputBufferSize == 0) return; // No inputs gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, buffer); void* mapPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, inputBufferSize, GL_MAP_WRITE_BIT); GLU_EXPECT_NO_ERROR(gl.getError(), "glMapBufferRange()"); TCU_CHECK(mapPtr); try { DE_ASSERT(m_inputs.size() == m_inputLayout.size()); for (size_t inputNdx = 0; inputNdx < m_inputs.size(); ++inputNdx) { const glu::VarType& varType = m_inputs[inputNdx].varType; const VarLayout& layout = m_inputLayout[inputNdx]; copyToBuffer(varType, layout, numValues, inputPtrs[inputNdx], mapPtr); } } catch (...) { gl.unmapBuffer(GL_SHADER_STORAGE_BUFFER); throw; } gl.unmapBuffer(GL_SHADER_STORAGE_BUFFER); GLU_EXPECT_NO_ERROR(gl.getError(), "glUnmapBuffer()"); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %ebp movq %rsi, 0x10(%rsp) movq %rdi, %r15 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r14 movq 0x140(%r15), %rax cmpq 0x148(%r15), %rax je 0x875acc movl 0x4(%rax), %ebx jmp 0x875ace xorl %ebx, %ebx imull %ebp, %ebx testl %ebx, %ebx je 0x875bd1 movl 0x120(%r15), %esi movl $0x90d2, %edi # imm = 0x90D2 callq *0x40(%r14) movslq %ebx, %rdx movl $0x90d2, %edi # imm = 0x90D2 xorl %esi, %esi movl $0x2, %ecx callq *0xd00(%r14) movq %rax, %r12 movq %r14, 0x8(%rsp) callq *0x800(%r14) leaq 0x1d34de(%rip), %rsi # 0xa48ff3 leaq 0x2116d9(%rip), %rdx # 0xa871f5 movl %eax, %edi movl $0x40a, %ecx # imm = 0x40A callq 0x8b6518 testq %r12, %r12 je 0x875be0 movq 0x10(%r15), %rdi cmpq %rdi, 0x18(%r15) je 0x875b93 movl $0x20, %r13d xorl %ebx, %ebx xorl %r14d, %r14d addq %r13, %rdi movq 0x140(%r15), %rsi addq %rbx, %rsi movq 0x10(%rsp), %rax movq (%rax,%r14,8), %rcx movl %ebp, %edx movq %r12, %r8 callq 0x8756f2 incq %r14 movq 0x10(%r15), %rdi movq 0x18(%r15), %rax subq %rdi, %rax sarq $0x3, %rax movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7 imulq %rcx, %rax addq $0xc, %rbx addq $0x38, %r13 cmpq %rax, %r14 jb 0x875b46 movl $0x90d2, %edi # imm = 0x90D2 movq 0x8(%rsp), %rbx callq *0x1670(%rbx) callq *0x800(%rbx) leaq 0x21173f(%rip), %rsi # 0xa872ef leaq 0x21163e(%rip), %rdx # 0xa871f5 movl %eax, %edi movl $0x41f, %ecx # imm = 0x41F addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x8b6518 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x2116f4(%rip), %rdx # 0xa872e8 leaq 0x2115fa(%rip), %rcx # 0xa871f5 movq %rax, %rdi xorl %esi, %esi movl $0x40b, %r8d # imm = 0x40B callq 0x99c17e leaq 0x3a54ae(%rip), %rsi # 0xc1b0c0 leaq -0x543e39(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 movq %rax, %r14 movq %rbx, %rdi callq 0x325d40 jmp 0x875c53 movq %rax, %rdi callq 0x3250e0 movl $0x90d2, %edi # imm = 0x90D2 movq 0x8(%rsp), %rax callq *0x1670(%rax) callq 0x325c10 movq %rax, %r14 callq 0x325b60 movq %r14, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::BufferIoExecutor::readOutputBuffer(void* const*, int)
void BufferIoExecutor::readOutputBuffer (void* const* outputPtrs, int numValues) { const glw::Functions& gl = m_renderCtx.getFunctions(); const deUint32 buffer = *m_outputBuffer; const deUint32 outputStride = getLayoutStride(m_outputLayout); const int outputBufferSize = numValues*outputStride; DE_ASSERT(outputBufferSize > 0); // At least some outputs are required. gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, buffer); void* mapPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, outputBufferSize, GL_MAP_READ_BIT); GLU_EXPECT_NO_ERROR(gl.getError(), "glMapBufferRange()"); TCU_CHECK(mapPtr); try { DE_ASSERT(m_outputs.size() == m_outputLayout.size()); for (size_t outputNdx = 0; outputNdx < m_outputs.size(); ++outputNdx) { const glu::VarType& varType = m_outputs[outputNdx].varType; const VarLayout& layout = m_outputLayout[outputNdx]; copyFromBuffer(varType, layout, numValues, mapPtr, outputPtrs[outputNdx]); } } catch (...) { gl.unmapBuffer(GL_SHADER_STORAGE_BUFFER); throw; } gl.unmapBuffer(GL_SHADER_STORAGE_BUFFER); GLU_EXPECT_NO_ERROR(gl.getError(), "glUnmapBuffer()"); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %ebp movq %rsi, 0x10(%rsp) movq %rdi, %r15 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r14 movl 0x138(%r15), %esi movq 0x158(%r15), %rax cmpq 0x160(%r15), %rax je 0x875ca5 movl 0x4(%rax), %ebx jmp 0x875ca7 xorl %ebx, %ebx imull %ebp, %ebx movl $0x90d2, %edi # imm = 0x90D2 callq *0x40(%r14) movslq %ebx, %rdx movl $0x90d2, %edi # imm = 0x90D2 xorl %esi, %esi movl $0x1, %ecx callq *0xd00(%r14) movq %rax, %r12 movq %r14, 0x8(%rsp) callq *0x800(%r14) leaq 0x1d3314(%rip), %rsi # 0xa48ff3 leaq 0x21150f(%rip), %rdx # 0xa871f5 movl %eax, %edi movl $0x42d, %ecx # imm = 0x42D callq 0x8b6518 testq %r12, %r12 je 0x875d9b movq 0x28(%r15), %rdi cmpq %rdi, 0x30(%r15) je 0x875d5d movl $0x20, %r13d xorl %ebx, %ebx xorl %r14d, %r14d addq %r13, %rdi movq 0x158(%r15), %rsi addq %rbx, %rsi movq 0x10(%rsp), %rax movq (%rax,%r14,8), %r8 movl %ebp, %edx movq %r12, %rcx callq 0x8758c2 incq %r14 movq 0x28(%r15), %rdi movq 0x30(%r15), %rax subq %rdi, %rax sarq $0x3, %rax movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7 imulq %rcx, %rax addq $0xc, %rbx addq $0x38, %r13 cmpq %rax, %r14 jb 0x875d10 movl $0x90d2, %edi # imm = 0x90D2 movq 0x8(%rsp), %rbx callq *0x1670(%rbx) callq *0x800(%rbx) leaq 0x211575(%rip), %rsi # 0xa872ef leaq 0x211474(%rip), %rdx # 0xa871f5 movl %eax, %edi movl $0x442, %ecx # imm = 0x442 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x8b6518 movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x211539(%rip), %rdx # 0xa872e8 leaq 0x21143f(%rip), %rcx # 0xa871f5 movq %rax, %rdi xorl %esi, %esi movl $0x42e, %r8d # imm = 0x42E callq 0x99c17e leaq 0x3a52f3(%rip), %rsi # 0xc1b0c0 leaq -0x543ff4(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 movq %rax, %r14 movq %rbx, %rdi callq 0x325d40 jmp 0x875e0e movq %rax, %rdi callq 0x3250e0 movl $0x90d2, %edi # imm = 0x90D2 movq 0x8(%rsp), %rax callq *0x1670(%rax) callq 0x325c10 movq %rax, %r14 callq 0x325b60 movq %r14, %rdi callq 0x3259a0 movq %rax, %rdi callq 0x3314f2
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::BufferIoExecutor::declareBufferBlocks(std::ostream&, deqp::gls::ShaderExecUtil::ShaderSpec const&)
void BufferIoExecutor::declareBufferBlocks (std::ostream& src, const ShaderSpec& spec) { // Input struct if (!spec.inputs.empty()) { glu::StructType inputStruct("Inputs"); for (vector<Symbol>::const_iterator symIter = spec.inputs.begin(); symIter != spec.inputs.end(); ++symIter) inputStruct.addMember(symIter->name.c_str(), symIter->varType); src << glu::declare(&inputStruct) << ";\n"; } // Output struct { glu::StructType outputStruct("Outputs"); for (vector<Symbol>::const_iterator symIter = spec.outputs.begin(); symIter != spec.outputs.end(); ++symIter) outputStruct.addMember(symIter->name.c_str(), symIter->varType); src << glu::declare(&outputStruct) << ";\n"; } src << "\n"; if (!spec.inputs.empty()) { src << "layout(binding = " << int(INPUT_BUFFER_BINDING) << ", std430) buffer InBuffer\n" << "{\n" << " Inputs inputs[];\n" << "};\n"; } src << "layout(binding = " << int(OUTPUT_BUFFER_BINDING) << ", std430) buffer OutBuffer\n" << "{\n" << " Outputs outputs[];\n" << "};\n" << "\n"; }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rsi), %rax cmpq 0x10(%rsi), %rax je 0x875ed4 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x2114b0(%rip), %rsi # 0xa872ff leaq 0x2114af(%rip), %rdx # 0xa87305 leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x334070 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%r15) movq $0x0, 0x30(%r15) movq 0x8(%r14), %r12 cmpq 0x10(%r14), %r12 je 0x875e9f leaq 0x8(%rsp), %r13 movq (%r12), %rsi addq $0x20, %r12 movq %r13, %rdi movq %r12, %rdx callq 0x8d9b6a addq $0x18, %r12 cmpq 0x10(%r14), %r12 jne 0x875e82 leaq 0x40(%rsp), %rsi movq %r15, (%rsi) movl $0x0, 0x8(%rsi) movq %rbx, %rdi callq 0x8da842 leaq 0x2118a6(%rip), %rsi # 0xa87763 movl $0x2, %edx movq %rax, %rdi callq 0x325e70 leaq 0x8(%rsp), %rdi callq 0x460f3c leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x211422(%rip), %rsi # 0xa87306 leaq 0x211422(%rip), %rdx # 0xa8730d leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x334070 xorps %xmm0, %xmm0 movups %xmm0, 0x20(%r15) movq $0x0, 0x30(%r15) movq 0x20(%r14), %r12 cmpq 0x28(%r14), %r12 je 0x875f34 leaq 0x8(%rsp), %r13 movq (%r12), %rsi addq $0x20, %r12 movq %r13, %rdi movq %r12, %rdx callq 0x8d9b6a addq $0x18, %r12 cmpq 0x28(%r14), %r12 jne 0x875f17 leaq 0x40(%rsp), %rsi movq %r15, (%rsi) movl $0x0, 0x8(%rsi) movq %rbx, %rdi callq 0x8da842 leaq 0x211811(%rip), %rsi # 0xa87763 movl $0x2, %edx movq %rax, %rdi callq 0x325e70 leaq 0x8(%rsp), %rdi callq 0x460f3c leaq 0x1ddfc5(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 movq 0x8(%r14), %rax cmpq 0x10(%r14), %rax je 0x875ff8 leaq 0x211380(%rip), %rsi # 0xa8730e movl $0x11, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rdi xorl %esi, %esi callq 0x325530 movq %rax, %r14 leaq 0x211371(%rip), %rsi # 0xa87320 movl $0x1a, %edx movq %rax, %rdi callq 0x325e70 leaq 0x1e9808(%rip), %rsi # 0xa5f7cb movl $0x2, %edx movq %r14, %rdi callq 0x325e70 leaq 0x211364(%rip), %rsi # 0xa8733b movl $0x12, %edx movq %r14, %rdi callq 0x325e70 leaq 0x1df5b6(%rip), %rsi # 0xa555a1 movl $0x3, %edx movq %r14, %rdi callq 0x325e70 leaq 0x21130f(%rip), %rsi # 0xa8730e movl $0x11, %edx movq %rbx, %rdi callq 0x325e70 movq %rbx, %rdi movl $0x1, %esi callq 0x325530 movq %rax, %rbx leaq 0x21132b(%rip), %rsi # 0xa8734e movl $0x1b, %edx movq %rax, %rdi callq 0x325e70 leaq 0x1e9794(%rip), %rsi # 0xa5f7cb movl $0x2, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x21131f(%rip), %rsi # 0xa8736a movl $0x14, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x1df542(%rip), %rsi # 0xa555a1 movl $0x3, %edx movq %rbx, %rdi callq 0x325e70 leaq 0x1ddec2(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rbx, %rdi callq 0x325e70 addq $0x50, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x876094 jmp 0x876094 jmp 0x876094 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x460f3c movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::BufferIoExecutor::generateExecBufferIo(std::ostream&, deqp::gls::ShaderExecUtil::ShaderSpec const&, char const*)
void BufferIoExecutor::generateExecBufferIo (std::ostream& src, const ShaderSpec& spec, const char* invocationNdxName) { for (vector<Symbol>::const_iterator symIter = spec.inputs.begin(); symIter != spec.inputs.end(); ++symIter) src << "\t" << glu::declare(symIter->varType, symIter->name) << " = inputs[" << invocationNdxName << "]." << symIter->name << ";\n"; for (vector<Symbol>::const_iterator symIter = spec.outputs.begin(); symIter != spec.outputs.end(); ++symIter) src << "\t" << glu::declare(symIter->varType, symIter->name) << ";\n"; src << "\n"; { std::istringstream opSrc (spec.source); std::string line; while (std::getline(opSrc, line)) src << "\t" << line << "\n"; } src << "\n"; for (vector<Symbol>::const_iterator symIter = spec.outputs.begin(); symIter != spec.outputs.end(); ++symIter) src << "\toutputs[" << invocationNdxName << "]." << symIter->name << " = " << symIter->name << ";\n"; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1a8, %rsp # imm = 0x1A8 movq %rdx, %rbx movq %rdi, %r15 movq 0x8(%rsi), %r12 movq %rsi, (%rsp) cmpq 0x10(%rsi), %r12 je 0x8761c7 leaq 0x28(%rsp), %rbp movl $0x1, %edx movq %r15, %rdi leaq 0x1e96e9(%rip), %rsi # 0xa5f7d0 callq 0x325e70 leaq 0x20(%r12), %rsi movq %rbp, %rdi movq %r12, %rdx xorl %ecx, %ecx callq 0x461f6e movq %r15, %rdi movq %rbp, %rsi callq 0x8da5ad movq %rax, %r13 movl $0xa, %edx movq %rax, %rdi leaq 0x211264(%rip), %rsi # 0xa8737f callq 0x325e70 testq %rbx, %rbx je 0x87613d movq %rbx, %rdi callq 0x325680 movq %r13, %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x876158 movq (%r13), %rax movq -0x18(%rax), %rax movq %r13, %rdi addq %rax, %rdi movl 0x20(%r13,%rax), %esi orl $0x1, %esi callq 0x326070 movl $0x2, %edx movq %r13, %rdi leaq 0x1e5890(%rip), %rsi # 0xa5b9f7 callq 0x325e70 movq (%r12), %rsi movq 0x8(%r12), %rdx movq %r13, %rdi callq 0x325e70 movl $0x2, %edx movq %rax, %rdi leaq 0x2115d7(%rip), %rsi # 0xa87763 callq 0x325e70 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0x8761ad movq 0x50(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbp, %rdi callq 0x8d9a14 addq $0x38, %r12 movq (%rsp), %rax cmpq 0x10(%rax), %r12 jne 0x8760d8 movq (%rsp), %rax movq 0x20(%rax), %r12 cmpq 0x28(%rax), %r12 je 0x876254 leaq 0x50(%rsp), %r14 leaq 0x28(%rsp), %rbp leaq 0x21157d(%rip), %r13 # 0xa87763 movl $0x1, %edx movq %r15, %rdi leaq 0x1e95db(%rip), %rsi # 0xa5f7d0 callq 0x325e70 leaq 0x20(%r12), %rsi movq %rbp, %rdi movq %r12, %rdx xorl %ecx, %ecx callq 0x461f6e movq %r15, %rdi movq %rbp, %rsi callq 0x8da5ad movl $0x2, %edx movq %rax, %rdi movq %r13, %rsi callq 0x325e70 movq 0x40(%rsp), %rdi cmpq %r14, %rdi je 0x87623e movq 0x50(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbp, %rdi callq 0x8d9a14 addq $0x38, %r12 movq (%rsp), %rax cmpq 0x28(%rax), %r12 jne 0x8761e6 leaq 0x1ddcda(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r15, %rdi movq %rsi, %r14 callq 0x325e70 movq (%rsp), %rax leaq 0x58(%rax), %rsi leaq 0x28(%rsp), %r13 movq %r13, %rdi movl $0x8, %edx callq 0x325750 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x8(%rsp), %rbp leaq 0x1e952b(%rip), %r12 # 0xa5f7d0 movq 0x28(%rsp), %rax movq -0x18(%rax), %rdi addq %r13, %rdi movl $0xa, %esi callq 0x325f80 movsbl %al, %edx movq %r13, %rdi movq %rbp, %rsi callq 0x325040 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x87630b movl $0x1, %edx movq %r15, %rdi movq %r12, %rsi callq 0x325e70 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r15, %rdi callq 0x325e70 movl $0x1, %edx movq %rax, %rdi movq %r14, %rsi callq 0x325e70 jmp 0x8762a5 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x876327 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3e6b2a(%rip), %rsi # 0xc5ce58 leaq 0x28(%rsp), %rdi callq 0x325de0 leaq 0xa0(%rsp), %rdi callq 0x325a80 leaq 0x1ddbe9(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %r15, %rdi callq 0x325e70 movq (%rsp), %rax movq 0x20(%rax), %rbp cmpq 0x28(%rax), %rbp je 0x87642b leaq 0x211018(%rip), %r14 # 0xa8738a leaq 0x2113ea(%rip), %r12 # 0xa87763 movl $0x9, %edx movq %r15, %rdi movq %r14, %rsi callq 0x325e70 testq %rbx, %rbx je 0x8763a6 movq %rbx, %rdi callq 0x325680 movq %r15, %rdi movq %rbx, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8763be movq (%r15), %rax movq -0x18(%rax), %rax leaq (%r15,%rax), %rdi movl 0x20(%r15,%rax), %esi orl $0x1, %esi callq 0x326070 movl $0x2, %edx movq %r15, %rdi leaq 0x1e562a(%rip), %rsi # 0xa5b9f7 callq 0x325e70 movq (%rbp), %rsi movq 0x8(%rbp), %rdx movq %r15, %rdi callq 0x325e70 movq %rax, %r13 movl $0x3, %edx movq %rax, %rdi leaq 0x1d55e1(%rip), %rsi # 0xa4b9d5 callq 0x325e70 movq (%rbp), %rsi movq 0x8(%rbp), %rdx movq %r13, %rdi callq 0x325e70 movl $0x2, %edx movq %rax, %rdi movq %r12, %rsi callq 0x325e70 addq $0x38, %rbp movq (%rsp), %rax cmpq 0x28(%rax), %rbp jne 0x876379 addq $0x1a8, %rsp # imm = 0x1A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x87643f movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x4619c6 jmp 0x87648b movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x87646d movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x3e69e4(%rip), %rsi # 0xc5ce58 leaq 0x28(%rsp), %rdi callq 0x325de0 leaq 0xa0(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::ComputeShaderExecutor::generateComputeShader[abi:cxx11](deqp::gls::ShaderExecUtil::ShaderSpec const&)
std::string ComputeShaderExecutor::generateComputeShader (const ShaderSpec& spec) { std::ostringstream src; src << glu::getGLSLVersionDeclaration(spec.version) << "\n"; if (!spec.globalDeclarations.empty()) src << spec.globalDeclarations << "\n"; src << "layout(local_size_x = 1) in;\n" << "\n"; declareBufferBlocks(src, spec); src << "void main (void)\n" << "{\n" << " uint invocationNdx = gl_NumWorkGroups.x*gl_NumWorkGroups.y*gl_WorkGroupID.z\n" << " + gl_NumWorkGroups.x*gl_WorkGroupID.y + gl_WorkGroupID.x;\n"; generateExecBufferIo(src, spec, "invocationNdx"); src << "}\n"; return src.str(); }
pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x325e00 movl (%r14), %edi callq 0x8bb762 movq %rax, %r15 testq %rax, %rax je 0x8764da movq %r15, %rdi callq 0x325680 leaq 0x8(%rsp), %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8764f6 movq 0x8(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x8, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dda38(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 movq 0x40(%r14), %rdx testq %rdx, %rdx je 0x876537 movq 0x38(%r14), %rsi leaq 0x8(%rsp), %rdi callq 0x325e70 leaq 0x1dda0b(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rax, %rdi callq 0x325e70 leaq 0x210e56(%rip), %rsi # 0xa87394 leaq 0x8(%rsp), %rdi movl $0x1d, %edx callq 0x325e70 leaq 0x1dd9e1(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x875e1e leaq 0x18ea35(%rip), %rsi # 0xa04fac leaq 0x8(%rsp), %rdi movl $0x11, %edx callq 0x325e70 leaq 0x1e923e(%rip), %rsi # 0xa5f7cb leaq 0x8(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x210e0f(%rip), %rsi # 0xa873b2 leaq 0x8(%rsp), %rdi movl $0x4d, %edx callq 0x325e70 leaq 0x210e47(%rip), %rsi # 0xa87400 leaq 0x8(%rsp), %rdi movl $0x4e, %edx callq 0x325e70 leaq 0x210e80(%rip), %rdx # 0xa8744f leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x8760aa leaq 0x1e9202(%rip), %rsi # 0xa5f7e5 leaq 0x8(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x325660 movq 0x3e6522(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq 0x3e64f4(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::ComputeShaderExecutor::ComputeShaderExecutor(glu::RenderContext const&, deqp::gls::ShaderExecUtil::ShaderSpec const&)
ComputeShaderExecutor::ComputeShaderExecutor (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec) : BufferIoExecutor (renderCtx, shaderSpec, glu::ProgramSources() << glu::ComputeSource(generateComputeShader(shaderSpec))) { m_maxWorkSize = tcu::IVec3(128,128,64); // Minimum in 3plus }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x120, %rsp # imm = 0x120 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 leaq 0x50(%rsp), %rdi movups %xmm0, 0xb9(%rdi) movups %xmm0, 0xb0(%rdi) movl $0xac, %edx xorl %esi, %esi callq 0x325500 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x876494 leaq 0x30(%rsp), %r12 movl $0x5, -0x8(%r12) leaq 0x40(%rsp), %r13 movq %r13, -0x10(%r13) movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx addq %rsi, %rdx movq %r12, %rdi callq 0x334442 movl 0x28(%rsp), %eax leaq (%rax,%rax,2), %rax leaq (%rsp,%rax,8), %rdi addq $0x50, %rdi movq %r12, %rsi callq 0x3499f0 leaq 0x50(%rsp), %rcx movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x875212 movq 0x30(%rsp), %rdi cmpq %r13, %rdi je 0x876706 movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xe0(%rsp), %r14 leaq 0x100(%rsp), %r15 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876731 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq %r15, %rdi callq 0x33607e movq %r14, %rdi callq 0x349c56 movl $0x78, %r14d leaq (%rsp,%r14), %rdi addq $0x50, %rdi callq 0x33607e addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x876747 leaq 0x3dfce3(%rip), %rax # 0xc56448 movq %rax, (%rbx) movabsq $0x8000000080, %rax # imm = 0x8000000080 movq %rax, 0x170(%rbx) movl $0x40, 0x178(%rbx) addq $0x120, %rsp # imm = 0x120 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx jmp 0x8767b8 movq %rax, %rbx jmp 0x8767d3 movq %rax, %rbx movq 0x30(%rsp), %rdi cmpq %r13, %rdi je 0x8767b8 movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8767d3 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x50(%rsp), %rdi callq 0x3499b0 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::ComputeShaderExecutor::execute(int, void const* const*, void* const*)
void ComputeShaderExecutor::execute (int numValues, const void* const* inputs, void* const* outputs) { const glw::Functions& gl = m_renderCtx.getFunctions(); const int maxValuesPerInvocation = m_maxWorkSize[0]; const deUint32 inputStride = getInputStride(); const deUint32 outputStride = getOutputStride(); initBuffers(numValues); // Setup input buffer & copy data uploadInputBuffer(inputs, numValues); // Perform compute invocations { int curOffset = 0; while (curOffset < numValues) { const int numToExec = de::min(maxValuesPerInvocation, numValues-curOffset); if (inputStride > 0) gl.bindBufferRange(GL_SHADER_STORAGE_BUFFER, INPUT_BUFFER_BINDING, getInputBuffer(), curOffset*inputStride, numToExec*inputStride); gl.bindBufferRange(GL_SHADER_STORAGE_BUFFER, OUTPUT_BUFFER_BINDING, getOutputBuffer(), curOffset*outputStride, numToExec*outputStride); GLU_EXPECT_NO_ERROR(gl.getError(), "glBindBufferRange(GL_SHADER_STORAGE_BUFFER)"); gl.dispatchCompute(numToExec, 1, 1); GLU_EXPECT_NO_ERROR(gl.getError(), "glDispatchCompute()"); curOffset += numToExec; } } // Read back data readOutputBuffer(outputs, numValues); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, 0x10(%rsp) movq %rdx, %rbx movl %esi, 0x4(%rsp) movq %rdi, %rbp movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r15 movq 0x140(%rbp), %rax movl $0x0, (%rsp) movl $0x0, %r13d cmpq 0x148(%rbp), %rax je 0x876849 movl 0x4(%rax), %r13d movq 0x158(%rbp), %rax cmpq 0x160(%rbp), %rax je 0x87685f movl 0x4(%rax), %eax movl %eax, (%rsp) movl 0x170(%rbp), %r14d movq %rbp, %rdi movl 0x4(%rsp), %r12d movl %r12d, %esi callq 0x87569e movq %rbp, 0x8(%rsp) movq %rbp, %rdi movq %rbx, %rsi movl %r12d, %ebp movl %r12d, %edx callq 0x875a92 testl %r12d, %r12d jle 0x876953 xorl %r12d, %r12d subl %r12d, %ebp cmpl %ebp, %r14d cmovll %r14d, %ebp testl %r13d, %r13d movq 0x8(%rsp), %rbx je 0x8768cb movl 0x120(%rbx), %edx movl %r12d, %ecx imull %r13d, %ecx movl %ebp, %r8d imull %r13d, %r8d movl $0x90d2, %edi # imm = 0x90D2 xorl %esi, %esi callq *0x50(%r15) movl 0x138(%rbx), %edx movl %r12d, %ecx movl (%rsp), %eax imull %eax, %ecx movl %ebp, %r8d imull %eax, %r8d movl $0x90d2, %edi # imm = 0x90D2 movl $0x1, %esi callq *0x50(%r15) callq *0x800(%r15) movl %eax, %edi leaq 0x210b5e(%rip), %rsi # 0xa8745d leaq 0x2108ef(%rip), %rbx # 0xa871f5 movq %rbx, %rdx movl $0x4cc, %ecx # imm = 0x4CC callq 0x8b6518 movl %ebp, %edi movl $0x1, %esi movl $0x1, %edx callq *0x528(%r15) callq *0x800(%r15) movl %eax, %edi leaq 0x210b53(%rip), %rsi # 0xa87489 movq %rbx, %rdx movl $0x4cf, %ecx # imm = 0x4CF callq 0x8b6518 addl %ebp, %r12d movl 0x4(%rsp), %ebp cmpl %ebp, %r12d jl 0x876898 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi movl %ebp, %edx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x875c64
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::checkTessSupport(glu::RenderContext const&, deqp::gls::ShaderExecUtil::ShaderSpec const&, glu::ShaderType)
void checkTessSupport (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec, glu::ShaderType stage) { const int numBlockRequired = 2; // highest binding is always 1 (output) i.e. count == 2 if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES) checkExtension(renderCtx, "GL_EXT_tessellation_shader"); if (stage == glu::SHADERTYPE_TESSELLATION_CONTROL) checkLimit(renderCtx, GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS, numBlockRequired); else if (stage == glu::SHADERTYPE_TESSELLATION_EVALUATION) checkLimit(renderCtx, GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS, numBlockRequired); else DE_ASSERT(false); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movl (%rsi), %edi callq 0x8bb789 testb %al, %al je 0x8769db cmpl $0x2, (%r14) jg 0x8769db leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x20b248(%rip), %rsi # 0xa81bed leaq 0x20b25b(%rip), %rdx # 0xa81c07 leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x334070 movq %rbx, %rdi movq %r14, %rsi callq 0x87313a movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x8769db movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 cmpl $0x3, %ebp je 0x8769ec cmpl $0x4, %ebp jne 0x8769f9 movl $0x90d9, %esi # imm = 0x90D9 jmp 0x8769f1 movl $0x90d8, %esi # imm = 0x90D8 movq %rbx, %rdi callq 0x876a26 addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x876a1e movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::checkLimit(glu::RenderContext const&, unsigned int, int)
static void checkLimit (const glu::RenderContext& renderCtx, deUint32 pname, int required) { const glw::Functions& gl = renderCtx.getFunctions(); int implementationLimit = -1; deUint32 error; gl.getIntegerv(pname, &implementationLimit); error = gl.getError(); if (error != GL_NO_ERROR) throw tcu::TestError("Failed to query " + de::toString(glu::getGettableStateStr(pname)) + " - got " + de::toString(glu::getErrorStr(error))); if (implementationLimit < required) throw tcu::NotSupportedError("Test requires " + de::toString(glu::getGettableStateStr(pname)) + " >= " + de::toString(required) + ", got " + de::toString(implementationLimit)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x120, %rsp # imm = 0x120 movl %esi, %r14d movl $0x2, 0xc(%rsp) movq (%rdi), %rax callq *0x18(%rax) movq %rax, %rbx leaq 0x8(%rsp), %rsi movl $0xffffffff, (%rsi) # imm = 0xFFFFFFFF movl %r14d, %edi callq *0x868(%rax) callq *0x800(%rbx) testl %eax, %eax jne 0x876a85 movl 0x8(%rsp), %eax cmpl 0xc(%rsp), %eax jl 0x876b03 addq $0x120, %rsp # imm = 0x120 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl %eax, %ebp movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x677ed(%rip), %rax # 0x8de288 leaq 0xd0(%rsp), %rsi movq %rax, (%rsi) movl %r14d, 0x8(%rsi) leaq 0x30(%rsp), %rdi callq 0x35a21e leaq 0x210cab(%rip), %rsi # 0xa87766 leaq 0x70(%rsp), %rdi leaq 0x30(%rsp), %rdx callq 0x35a126 leaq 0x210ca6(%rip), %rsi # 0xa87777 leaq 0x70(%rsp), %rdi callq 0x3259c0 leaq 0x20(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x876b85 movups (%rcx), %xmm0 movups %xmm0, (%r15) jmp 0x876b92 movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x67771(%rip), %rax # 0x8de288 leaq 0x110(%rsp), %rsi movq %rax, (%rsi) movl %r14d, 0x8(%rsi) leaq 0xd0(%rsp), %rdi callq 0x35a21e leaq 0x18c4b4(%rip), %rsi # 0xa02fee leaq 0x50(%rsp), %rdi leaq 0xd0(%rsp), %rdx callq 0x35a126 leaq 0x20af6d(%rip), %rsi # 0xa81ac0 leaq 0x50(%rsp), %rdi callq 0x3259c0 leaq 0x40(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x876c10 movups (%rcx), %xmm0 movups %xmm0, (%r15) jmp 0x876c1d movq %rdx, 0x10(%rsp) movq (%rcx), %rdx movq %rdx, 0x20(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x18(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x65192(%rip), %rax # 0x8dbd43 leaq 0xb0(%rsp), %rsi movq %rax, (%rsi) movl %ebp, 0x8(%rsi) leaq 0x50(%rsp), %rdi callq 0x35a21e leaq 0x90(%rsp), %rdi leaq 0x10(%rsp), %rsi leaq 0x50(%rsp), %rdx callq 0x33af73 movb $0x1, %bpl leaq 0x90(%rsp), %rsi movq %rbx, %rdi callq 0x99c1b8 xorl %ebp, %ebp leaq 0x3a44c4(%rip), %rsi # 0xc1b0c0 leaq -0x544e23(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 jmp 0x876d0e movq %rdx, 0x30(%rsp) movq (%rcx), %rdx movq %rdx, 0x40(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x38(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0xb0(%rsp), %rdi leaq 0xc(%rsp), %rsi callq 0x35a196 leaq 0x70(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0xb0(%rsp), %rdx callq 0x33af73 leaq 0x20bc01(%rip), %rsi # 0xa82866 leaq 0x70(%rsp), %rdi callq 0x3259c0 leaq 0x20(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x876c92 movups (%rcx), %xmm0 movups %xmm0, (%r12) jmp 0x876c9f movq %rdx, 0x10(%rsp) movq (%rcx), %rdx movq %rdx, 0x20(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x18(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0xf0(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x35a196 leaq 0x90(%rsp), %rdi leaq 0x10(%rsp), %rsi leaq 0xf0(%rsp), %rdx callq 0x33af73 movb $0x1, %bpl leaq 0x90(%rsp), %rsi movq %rbx, %rdi callq 0x99c260 xorl %ebp, %ebp leaq 0x3a3ef1(%rip), %rsi # 0xc1abf0 leaq -0x544f26(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 movq %rax, %r14 leaq 0xa0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876d3a movq 0xa0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876d3a movq %rax, %r14 movb $0x1, %bpl leaq 0x100(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876d63 movq 0x100(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876d63 movq %rax, %r14 movb $0x1, %bpl movq 0x10(%rsp), %rdi cmpq %r12, %rdi je 0x876d82 movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876d82 movq %rax, %r14 movb $0x1, %bpl leaq 0x80(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876dab movq 0x80(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876dab movq %rax, %r14 movb $0x1, %bpl leaq 0xc0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876e1d movq 0xc0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876e1d movq %rax, %r14 leaq 0xa0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876dfa movq 0xa0(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876dfa movq %rax, %r14 movb $0x1, %bpl leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876e3c movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876e3c movq %rax, %r14 movb $0x1, %bpl movq 0x30(%rsp), %rdi cmpq %r15, %rdi je 0x876e5b movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876e5b movq %rax, %r14 movb $0x1, %bpl movq 0x10(%rsp), %rdi cmpq %r15, %rdi je 0x876e7e movq 0x20(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876e7e movq %rax, %r14 movb $0x1, %bpl leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876ea7 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876ea7 movq %rax, %r14 movb $0x1, %bpl leaq 0x80(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876ec8 movq 0x80(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876ec8 movq %rax, %r14 movb $0x1, %bpl leaq 0xe0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876eed movq 0xe0(%rsp), %rsi jmp 0x876edb movq %rax, %r14 movb $0x1, %bpl leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x876eed movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x876eed jmp 0x876ee7 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x876efa movq %rbx, %rdi callq 0x325d40 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessControlExecutor::generateTessControlShader[abi:cxx11](deqp::gls::ShaderExecUtil::ShaderSpec const&)
std::string TessControlExecutor::generateTessControlShader (const ShaderSpec& shaderSpec) { std::ostringstream src; src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES) src << "#extension GL_EXT_tessellation_shader : require\n"; if (!shaderSpec.globalDeclarations.empty()) src << shaderSpec.globalDeclarations << "\n"; src << "\nlayout(vertices = 1) out;\n\n"; declareBufferBlocks(src, shaderSpec); src << "void main (void)\n{\n"; for (int ndx = 0; ndx < 2; ndx++) src << "\tgl_TessLevelInner[" << ndx << "] = 1.0;\n"; for (int ndx = 0; ndx < 4; ndx++) src << "\tgl_TessLevelOuter[" << ndx << "] = 1.0;\n"; src << "\n" << "\thighp uint invocationId = uint(gl_PrimitiveID);\n"; generateExecBufferIo(src, shaderSpec, "invocationId"); src << "}\n"; return src.str(); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x178, %rsp # imm = 0x178 movq %rsi, %r14 movq %rdi, %rbx movq %rsp, %rdi callq 0x325e00 movl (%r14), %edi callq 0x8bb762 movq %rax, %r15 testq %rax, %rax je 0x876f9b movq %r15, %rdi callq 0x325680 movq %rsp, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x876fb2 movq (%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dcf7c(%rip), %rsi # 0xa53f35 movq %rsp, %rdi movl $0x1, %edx callq 0x325e70 movl (%r14), %edi callq 0x8bb789 cmpl $0x3, (%r14) setl %cl andb %cl, %al cmpb $0x1, %al jne 0x876fef leaq 0x2104bb(%rip), %rsi # 0xa8749d movq %rsp, %rdi movl $0x30, %edx callq 0x325e70 movq 0x40(%r14), %rdx testq %rdx, %rdx je 0x877018 movq 0x38(%r14), %rsi movq %rsp, %rdi callq 0x325e70 leaq 0x1dcf2a(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rax, %rdi callq 0x325e70 leaq 0x2104af(%rip), %rsi # 0xa874ce movq %rsp, %rdi movl $0x1c, %edx callq 0x325e70 movq %rsp, %rdi movq %r14, %rsi callq 0x875e1e leaq 0x196c18(%rip), %rsi # 0xa0dc56 movq %rsp, %rdi movl $0x13, %edx callq 0x325e70 xorl %ebp, %ebp leaq 0x210497(%rip), %r15 # 0xa874eb movq %rsp, %r12 leaq 0x2104a1(%rip), %r13 # 0xa874ff movl $0x13, %edx movq %r12, %rdi movq %r15, %rsi callq 0x325e70 movq %r12, %rdi movl %ebp, %esi callq 0x325530 movl $0x9, %edx movq %rax, %rdi movq %r13, %rsi callq 0x325e70 incl %ebp cmpl $0x1, %ebp je 0x87705e xorl %ebp, %ebp leaq 0x210471(%rip), %r15 # 0xa87509 movq %rsp, %r12 leaq 0x21045d(%rip), %r13 # 0xa874ff movl $0x13, %edx movq %r12, %rdi movq %r15, %rsi callq 0x325e70 movq %r12, %rdi movl %ebp, %esi callq 0x325530 movl $0x9, %edx movq %rax, %rdi movq %r13, %rsi callq 0x325e70 incl %ebp cmpl $0x4, %ebp jne 0x8770a2 leaq 0x1dce5b(%rip), %rsi # 0xa53f35 movq %rsp, %rdi movl $0x1, %edx callq 0x325e70 leaq 0x21042f(%rip), %rsi # 0xa8751d movq %rsp, %rdi movl $0x31, %edx callq 0x325e70 leaq 0x21044d(%rip), %rdx # 0xa8754f movq %rsp, %rdi movq %r14, %rsi callq 0x8760aa leaq 0x1e86d1(%rip), %rsi # 0xa5f7e5 movq %rsp, %rdi movl $0x2, %edx callq 0x325e70 leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x325660 movq 0x3e59f3(%rip), %rsi # 0xc5cb28 movq %rsp, %rdi callq 0x325aa0 leaq 0x70(%rsp), %rdi callq 0x325a80 movq %rbx, %rax addq $0x178, %rsp # imm = 0x178 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x877160 jmp 0x877160 movq %rax, %rbx movq 0x3e59be(%rip), %rsi # 0xc5cb28 movq %rsp, %rdi callq 0x325aa0 leaq 0x70(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::generateVertexShaderForTess[abi:cxx11](glu::GLSLVersion)
static std::string generateVertexShaderForTess (glu::GLSLVersion version) { std::ostringstream src; src << glu::getGLSLVersionDeclaration(version) << "\n"; src << "void main (void)\n{\n" << " gl_Position = vec4(gl_VertexID/2, gl_VertexID%2, 0.0, 1.0);\n" << "}\n"; return src.str(); }
pushq %rbp pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movl %esi, %ebp movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x325e00 movl %ebp, %edi callq 0x8bb762 movq %rax, %r14 testq %rax, %rax je 0x877773 movq %r14, %rdi callq 0x325680 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x87778f movq 0x8(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x8, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dc79f(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 leaq 0x1964aa(%rip), %rsi # 0xa0dc56 leaq 0x8(%rsp), %rdi movl $0x13, %edx callq 0x325e70 leaq 0x20ffbd(%rip), %rsi # 0xa8777f leaq 0x8(%rsp), %rdi movl $0x3d, %edx callq 0x325e70 leaq 0x1e800d(%rip), %rsi # 0xa5f7e5 leaq 0x8(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x325660 movq 0x3e532d(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx movq 0x3e5300(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::generateEmptyFragmentSource[abi:cxx11](glu::GLSLVersion)
static std::string generateEmptyFragmentSource (glu::GLSLVersion version) { const bool customOut = glu::glslVersionUsesInOutQualifiers(version); std::ostringstream src; src << glu::getGLSLVersionDeclaration(version) << "\n"; // \todo [2013-08-05 pyry] Do we need one dummy output? src << "void main (void)\n{\n"; if (!customOut) src << " gl_FragColor = vec4(0.0);\n"; src << "}\n"; return src.str(); }
pushq %rbp pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movl %esi, %r14d movq %rdi, %rbx movl %esi, %edi callq 0x8bb774 movl %eax, %ebp leaq 0x8(%rsp), %rdi callq 0x325e00 movl %r14d, %edi callq 0x8bb762 movq %rax, %r14 testq %rax, %rax je 0x877892 movq %r14, %rdi callq 0x325680 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x8778ae movq 0x8(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x8, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dc680(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 leaq 0x19638b(%rip), %rsi # 0xa0dc56 leaq 0x8(%rsp), %rdi movl $0x13, %edx callq 0x325e70 testb %bpl, %bpl jne 0x8778f5 leaq 0x20ff56(%rip), %rsi # 0xa8783c leaq 0x8(%rsp), %rdi movl $0x1b, %edx callq 0x325e70 leaq 0x1e7ee9(%rip), %rsi # 0xa5f7e5 leaq 0x8(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x325660 movq 0x3e5209(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx movq 0x3e51dc(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessControlExecutor::execute(int, void const* const*, void* const*)
void TessControlExecutor::execute (int numValues, const void* const* inputs, void* const* outputs) { const glw::Functions& gl = m_renderCtx.getFunctions(); initBuffers(numValues); // Setup input buffer & copy data uploadInputBuffer(inputs, numValues); if (!m_inputs.empty()) gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, INPUT_BUFFER_BINDING, getInputBuffer()); gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, OUTPUT_BUFFER_BINDING, getOutputBuffer()); // Render patches gl.patchParameteri(GL_PATCH_VERTICES, 3); gl.drawArrays(GL_PATCHES, 0, 3*numValues); // Read back data readOutputBuffer(outputs, numValues); }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdx, %r13 movl %esi, %r14d movq %rdi, %r15 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r12 movq %r15, %rdi movl %r14d, %esi callq 0x87569e movq %r15, %rdi movq %r13, %rsi movl %r14d, %edx callq 0x875a92 movq 0x10(%r15), %rax cmpq 0x18(%r15), %rax je 0x8779d8 movl 0x120(%r15), %edx movl $0x90d2, %edi # imm = 0x90D2 xorl %esi, %esi callq *0x48(%r12) movl 0x138(%r15), %edx movl $0x90d2, %edi # imm = 0x90D2 movl $0x1, %esi callq *0x48(%r12) movl $0x8e72, %edi # imm = 0x8E72 movl $0x3, %esi callq *0xfd8(%r12) leal (%r14,%r14,2), %edx movl $0xe, %edi xorl %esi, %esi callq *0x538(%r12) movq %r15, %rdi movq %rbx, %rsi movl %r14d, %edx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmp 0x875c64
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessEvaluationExecutor::generateTessEvalShader[abi:cxx11](deqp::gls::ShaderExecUtil::ShaderSpec const&)
std::string TessEvaluationExecutor::generateTessEvalShader (const ShaderSpec& shaderSpec) { std::ostringstream src; src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; if (glu::glslVersionIsES(shaderSpec.version) && shaderSpec.version <= glu::GLSL_VERSION_310_ES) src << "#extension GL_EXT_tessellation_shader : require\n"; if (!shaderSpec.globalDeclarations.empty()) src << shaderSpec.globalDeclarations << "\n"; src << "\n"; src << "layout(isolines, equal_spacing) in;\n\n"; declareBufferBlocks(src, shaderSpec); src << "void main (void)\n{\n" << "\tgl_Position = vec4(gl_TessCoord.x, 0.0, 0.0, 1.0);\n" << "\thighp uint invocationId = uint(gl_PrimitiveID)*2u + (gl_TessCoord.x > 0.5 ? 1u : 0u);\n"; generateExecBufferIo(src, shaderSpec, "invocationId"); src << "}\n"; return src.str(); }
pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x325e00 movl (%r14), %edi callq 0x8bb762 movq %rax, %r15 testq %rax, %rax je 0x877ac2 movq %r15, %rdi callq 0x325680 leaq 0x8(%rsp), %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x877ade movq 0x8(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x8, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dc450(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 movl (%r14), %edi callq 0x8bb789 cmpl $0x3, (%r14) setl %cl andb %cl, %al cmpb $0x1, %al jne 0x877b1f leaq 0x20f98d(%rip), %rsi # 0xa8749d leaq 0x8(%rsp), %rdi movl $0x30, %edx callq 0x325e70 movq 0x40(%r14), %rdx testq %rdx, %rdx je 0x877b4a movq 0x38(%r14), %rsi leaq 0x8(%rsp), %rdi callq 0x325e70 leaq 0x1dc3f8(%rip), %rsi # 0xa53f35 movl $0x1, %edx movq %rax, %rdi callq 0x325e70 leaq 0x1dc3e4(%rip), %rsi # 0xa53f35 leaq 0x8(%rsp), %rdi movl $0x1, %edx callq 0x325e70 leaq 0x20f9f5(%rip), %rsi # 0xa8755c leaq 0x8(%rsp), %rdi movl $0x25, %edx callq 0x325e70 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x875e1e leaq 0x1960cc(%rip), %rsi # 0xa0dc56 leaq 0x8(%rsp), %rdi movl $0x13, %edx callq 0x325e70 leaq 0x20f9e2(%rip), %rsi # 0xa87582 leaq 0x8(%rsp), %rdi movl $0x34, %edx callq 0x325e70 leaq 0x20fa01(%rip), %rsi # 0xa875b7 leaq 0x8(%rsp), %rdi movl $0x57, %edx callq 0x325e70 leaq 0x20f983(%rip), %rdx # 0xa8754f leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x8760aa leaq 0x1e7c05(%rip), %rsi # 0xa5f7e5 leaq 0x8(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x325660 movq 0x3e4f25(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq 0x3e4ef7(%rip), %rsi # 0xc5cb28 leaq 0x8(%rsp), %rdi callq 0x325aa0 leaq 0x78(%rsp), %rdi callq 0x325a80 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessEvaluationExecutor::TessEvaluationExecutor(glu::RenderContext const&, deqp::gls::ShaderExecUtil::ShaderSpec const&)
TessEvaluationExecutor::TessEvaluationExecutor (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec) : BufferIoExecutor (renderCtx, shaderSpec, glu::ProgramSources() << glu::VertexSource(generateVertexShaderForTess(shaderSpec.version)) << glu::TessellationControlSource(generatePassthroughTessControlShader(shaderSpec.version)) << glu::TessellationEvaluationSource(generateTessEvalShader(shaderSpec)) << glu::FragmentSource(generateEmptyFragmentSource(shaderSpec.version))) { }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x348, %rsp # imm = 0x348 movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx xorps %xmm0, %xmm0 leaq 0x278(%rsp), %rdi movups %xmm0, 0xb9(%rdi) movups %xmm0, 0xb0(%rdi) movl $0xac, %edx xorl %esi, %esi callq 0x325500 movl (%r14), %esi leaq 0x90(%rsp), %rdi callq 0x877730 leaq 0x8(%rsp), %r15 movl $0x0, -0x8(%r15) leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) movq 0x90(%rsp), %rsi movq 0x98(%rsp), %rdx addq %rsi, %rdx movq %r15, %rdi callq 0x334442 movq %r12, 0x28(%rsp) movl (%rsp), %eax leaq (%rax,%rax,2), %rax leaq (%rsp,%rax,8), %rdi addq $0x278, %rdi # imm = 0x278 movq %r15, %rsi callq 0x3499f0 movl (%r14), %ebp leaq 0x100(%rsp), %rdi callq 0x325e00 movl %ebp, %edi callq 0x8bb762 movq %rax, %r15 testq %rax, %rax je 0x877d29 movq %r15, %rdi callq 0x325680 leaq 0x100(%rsp), %rdi movq %r15, %rsi movq %rax, %rdx callq 0x325e70 jmp 0x877d4b movq 0x100(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x100, %rdi # imm = 0x100 movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x326070 leaq 0x1dc1e3(%rip), %rsi # 0xa53f35 leaq 0x100(%rsp), %rdi movl $0x1, %edx callq 0x325e70 movl %ebp, %edi callq 0x8bb789 cmpl $0x3, %ebp setge %cl xorb $0x1, %al orb %cl, %al jne 0x877d90 leaq 0x20fa3f(%rip), %rsi # 0xa877bd leaq 0x100(%rsp), %rdi movl $0x31, %edx callq 0x325e70 leaq 0x20f738(%rip), %rsi # 0xa874cf leaq 0x100(%rsp), %rdi movl $0x1b, %edx callq 0x325e70 leaq 0x195ea6(%rip), %rsi # 0xa0dc56 leaq 0x100(%rsp), %rdi movl $0x13, %edx callq 0x325e70 xorl %ebp, %ebp leaq 0x20f720(%rip), %r12 # 0xa874eb leaq 0x100(%rsp), %r13 leaq 0x20f725(%rip), %r15 # 0xa874ff movl $0x13, %edx movq %r13, %rdi movq %r12, %rsi callq 0x325e70 movq %r13, %rdi movl %ebp, %esi callq 0x325530 movl $0x9, %edx movq %rax, %rdi movq %r15, %rsi callq 0x325e70 incl %ebp cmpl $0x1, %ebp je 0x877dda xorl %ebp, %ebp leaq 0x20f6f5(%rip), %r12 # 0xa87509 leaq 0x100(%rsp), %r13 leaq 0x20f6dc(%rip), %r15 # 0xa874ff movl $0x13, %edx movq %r13, %rdi movq %r12, %rsi callq 0x325e70 movq %r13, %rdi movl %ebp, %esi callq 0x325530 movl $0x9, %edx movq %rax, %rdi movq %r15, %rsi callq 0x325e70 incl %ebp cmpl $0x4, %ebp jne 0x877e23 leaq 0x1e798a(%rip), %rsi # 0xa5f7e5 leaq 0x100(%rsp), %rdi movl $0x2, %edx callq 0x325e70 leaq 0x108(%rsp), %rsi leaq 0x70(%rsp), %rdi callq 0x325660 movq 0x3e4ca2(%rip), %rsi # 0xc5cb28 leaq 0x100(%rsp), %rdi callq 0x325aa0 leaq 0x170(%rsp), %rdi callq 0x325a80 leaq 0xe0(%rsp), %r15 movl $0x3, -0x8(%r15) leaq 0xf0(%rsp), %r12 movq %r12, -0x10(%r12) movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx addq %rsi, %rdx movq %r15, %rdi callq 0x334442 movl 0xd8(%rsp), %eax leaq (%rax,%rax,2), %rax leaq (%rsp,%rax,8), %rdi addq $0x278, %rdi # imm = 0x278 movq %r15, %rsi callq 0x3499f0 leaq 0x50(%rsp), %rdi movq %r14, %rsi callq 0x877a7c leaq 0x108(%rsp), %r15 movl $0x4, -0x8(%r15) leaq 0x118(%rsp), %r13 movq %r13, -0x10(%r13) movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx addq %rsi, %rdx movq %r15, %rdi callq 0x334442 movl 0x100(%rsp), %eax leaq (%rax,%rax,2), %rax leaq (%rsp,%rax,8), %rdi addq $0x278, %rdi # imm = 0x278 movq %r15, %rsi callq 0x3499f0 movl (%r14), %esi leaq 0x30(%rsp), %rdi callq 0x877844 leaq 0xb8(%rsp), %r15 movl $0x1, -0x8(%r15) leaq 0xc8(%rsp), %rbp movq %rbp, -0x10(%rbp) movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx addq %rsi, %rdx movq %r15, %rdi callq 0x334442 movl 0xb0(%rsp), %eax leaq (%rax,%rax,2), %rax leaq (%rsp,%rax,8), %rdi addq $0x278, %rdi # imm = 0x278 movq %r15, %rsi callq 0x3499f0 leaq 0x278(%rsp), %rcx movq %rbx, %rdi movq 0x28(%rsp), %rsi movq %r14, %rdx callq 0x875212 movq 0xb8(%rsp), %rdi cmpq %rbp, %rdi je 0x877fdd movq 0xc8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi leaq 0x18(%rsp), %r14 je 0x877ffd movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r13, %rdi je 0x87801a movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x878035 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe0(%rsp), %rdi cmpq %r12, %rdi je 0x878052 movq 0xf0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x80(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x878073 movq 0x80(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x87808a movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xa0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8780ab movq 0xa0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x328(%rsp), %rdi callq 0x33607e leaq 0x308(%rsp), %rdi callq 0x349c56 movl $0x78, %r14d leaq (%rsp,%r14), %rdi addq $0x278, %rdi # imm = 0x278 callq 0x33607e addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x8780cb leaq 0x3de3ec(%rip), %rax # 0xc564d8 movq %rax, (%rbx) addq $0x348, %rsp # imm = 0x348 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x878161 jmp 0x878108 movq %rax, %rbx jmp 0x87817c movq %rax, %rbx jmp 0x878199 jmp 0x878117 movq %rax, %rbx jmp 0x8781b4 movq %rax, %rbx jmp 0x8781d1 jmp 0x878129 movq %rax, %rbx jmp 0x8781f2 movq %rax, %rbx jmp 0x87823d movq %rax, %rbx jmp 0x87825e movq %rax, %rbx movq 0xb8(%rsp), %rdi cmpq %rbp, %rdi je 0x878161 movq 0xc8(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x87817c movq 0x40(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0x108(%rsp), %rdi cmpq %r13, %rdi je 0x878199 movq 0x118(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8781b4 movq 0x60(%rsp), %rsi incq %rsi callq 0x3251a0 movq 0xe0(%rsp), %rdi cmpq %r12, %rdi je 0x8781d1 movq 0xf0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x80(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8781f2 movq 0x80(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x18(%rsp), %r14 jmp 0x878226 jmp 0x8781fd jmp 0x8781fd movq %rax, %rbx leaq 0x18(%rsp), %r14 movq 0x3e491c(%rip), %rsi # 0xc5cb28 leaq 0x100(%rsp), %rdi callq 0x325aa0 leaq 0x170(%rsp), %rdi callq 0x325a80 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x87823d movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0xa0(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x87825e movq 0xa0(%rsp), %rsi incq %rsi callq 0x3251a0 leaq 0x278(%rsp), %rdi callq 0x3499b0 movq %rbx, %rdi callq 0x3259a0 nop
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::TessEvaluationExecutor::execute(int, void const* const*, void* const*)
void TessEvaluationExecutor::execute (int numValues, const void* const* inputs, void* const* outputs) { const glw::Functions& gl = m_renderCtx.getFunctions(); const int alignedValues = deAlign32(numValues, 2); // Initialize buffers with aligned value count to make room for padding initBuffers(alignedValues); // Setup input buffer & copy data uploadInputBuffer(inputs, numValues); // \todo [2014-06-26 pyry] Duplicate last value in the buffer to prevent infinite loops for example? if (!m_inputs.empty()) gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, INPUT_BUFFER_BINDING, getInputBuffer()); gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, OUTPUT_BUFFER_BINDING, getOutputBuffer()); // Render patches gl.patchParameteri(GL_PATCH_VERTICES, 2); gl.drawArrays(GL_PATCHES, 0, alignedValues); // Read back data readOutputBuffer(outputs, numValues); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r13 movl %esi, %r14d movq %rdi, %r15 movq 0x8(%rdi), %rdi movq (%rdi), %rax callq *0x18(%rax) movq %rax, %r12 leal 0x1(%r14), %ebp andl $-0x2, %ebp movq %r15, %rdi movl %ebp, %esi callq 0x87569e movq %r15, %rdi movq %r13, %rsi movl %r14d, %edx callq 0x875a92 movq 0x10(%r15), %rax cmpq 0x18(%r15), %rax je 0x8782ec movl 0x120(%r15), %edx movl $0x90d2, %edi # imm = 0x90D2 xorl %esi, %esi callq *0x48(%r12) movl 0x138(%r15), %edx movl $0x90d2, %edi # imm = 0x90D2 movl $0x1, %esi callq *0x48(%r12) movl $0x8e72, %edi # imm = 0x8E72 movl $0x2, %esi callq *0xfd8(%r12) movl $0xe, %edi xorl %esi, %esi movl %ebp, %edx callq *0x538(%r12) movq %r15, %rdi movq %rbx, %rsi movl %r14d, %edx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x875c64
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp
deqp::gls::ShaderExecUtil::createExecutor(glu::RenderContext const&, glu::ShaderType, deqp::gls::ShaderExecUtil::ShaderSpec const&)
ShaderExecutor* createExecutor (const glu::RenderContext& renderCtx, glu::ShaderType shaderType, const ShaderSpec& shaderSpec) { switch (shaderType) { case glu::SHADERTYPE_VERTEX: return new VertexShaderExecutor (renderCtx, shaderSpec); case glu::SHADERTYPE_TESSELLATION_CONTROL: return TessControlExecutor::create (renderCtx, shaderSpec); case glu::SHADERTYPE_TESSELLATION_EVALUATION: return TessEvaluationExecutor::create (renderCtx, shaderSpec); case glu::SHADERTYPE_GEOMETRY: return GeometryShaderExecutor::create (renderCtx, shaderSpec); case glu::SHADERTYPE_FRAGMENT: return new FragmentShaderExecutor (renderCtx, shaderSpec); case glu::SHADERTYPE_COMPUTE: return new ComputeShaderExecutor (renderCtx, shaderSpec); default: throw tcu::InternalError("Unsupported shader type"); } }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp cmpl $0x5, %esi ja 0x87840e movq %rdx, %r14 movq %rdi, %r15 movl %esi, %eax leaq 0x20ec59(%rip), %rcx # 0xa86fbc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x158, %edi # imm = 0x158 callq 0x325210 movq %rax, %rbx movq %rax, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x871d6a jmp 0x878400 movq %r15, %rdi movq %r14, %rsi addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x877a2a movq %r15, %rdi movq %r14, %rsi addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x873080 movq %r15, %rdi movq %r14, %rsi addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x876f02 movl $0x158, %edi # imm = 0x158 callq 0x325210 movq %rax, %rbx movq %rax, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x874756 jmp 0x878400 movl $0x180, %edi # imm = 0x180 callq 0x325210 movq %rax, %rbx movq %rax, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x876650 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x38, %edi callq 0x325650 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x20f1e4(%rip), %rsi # 0xa8760f leaq 0x20f1f4(%rip), %rdx # 0xa87626 leaq 0x8(%rsp), %rdi callq 0x334070 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x99c1f0 xorl %ebp, %ebp leaq 0x3a2c2b(%rip), %rsi # 0xc1b080 leaq -0x54667c(%rip), %rdx # 0x331de0 movq %rbx, %rdi callq 0x325940 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x878486 movq 0x18(%rsp), %rsi incq %rsi callq 0x3251a0 jmp 0x878486 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x8784b1 movq %rbx, %rdi callq 0x325d40 jmp 0x8784b1 movq %rax, %r14 movl $0x180, %esi # imm = 0x180 jmp 0x8784a9 jmp 0x8784a1 movq %rax, %r14 movl $0x158, %esi # imm = 0x158 movq %rbx, %rdi callq 0x3251a0 movq %r14, %rdi callq 0x3259a0
/kaydenl[P]VK-GL-CTS/modules/glshared/glsShaderExecUtil.cpp