Commit graph

4506 commits

Author SHA1 Message Date
James Benton
0b8746865e Change float4 to vec4 in translateAluSourceVector. 2015-11-20 00:11:42 +00:00
James Benton
8c6d246592 Add screen drawing. 2015-11-20 13:56:59 +00:00
James Benton
8b56581290 Fix some shader generation invalid types. 2015-11-20 13:56:52 +00:00
James Benton
609c9a6198 Implement the rest of gx2 registers. 2015-11-18 23:45:42 +00:00
James Benton
4bbe36c9a1 glsl::generateBody returning false should not be treated as terminal error. 2015-11-18 22:42:25 +00:00
James Benton
cf2f72fcdd Fix parseFetchShader. 2015-11-18 22:40:28 +00:00
Brett Lawson
b4a2af232d Implement GX2 StencilMask operations. 2015-11-18 18:59:19 -04:00
James Benton
7ac3565155 Add lots of gx2 register stuff. 2015-11-18 22:07:40 +00:00
James Benton
d0f0b4f12f Add PA_SC_AA_MASK, SX_ALPHA_TEST_CONTROL, SX_ALPHA_REF. 2015-11-18 20:36:11 +00:00
James Benton
296878291d Add CB_TARGET_MASK 2015-11-18 20:26:14 +00:00
James Benton
eaaba9e23e Stub the rest of GX2 registers. 2015-11-18 20:26:06 +00:00
James Benton
5c468c4b46 Use texture objects instead of render buffer. 2015-11-18 01:54:02 +00:00
James Benton
5c9711de22 Start some render buffer stuff. 2015-11-18 01:34:01 +00:00
James Benton
1e2bd10ec6 Add OpenGL buffer swap. 2015-11-18 01:34:35 +00:00
James Benton
4ee0333b55 Initialise OpenGL.
Also compiles shaders!
2015-11-18 01:25:14 +00:00
Brett Lawson
d2b92c3b41 Implement front-end for ClearColor and ClearDepthStencil. 2015-11-18 13:15:22 -04:00
James Benton
cdcb78b1f4 Implement SQ_VTX_SEMANTIC_CLEAR. 2015-11-17 01:51:32 +00:00
James Benton
411cc5b4d9 Fix copy-pasta in fetchshader compiler 2015-11-17 01:51:26 +00:00
James Benton
f2d36dbab2 Fix pm4 buffer overflow copying wrong data size to new buffer. 2015-11-17 01:51:20 +00:00
James Benton
714763096c More shader generation stuff. 2015-11-17 01:51:09 +00:00
Brett Lawson
43eb907673 Fix issue causing incorrect register location calculations. 2015-11-16 22:11:05 -04:00
Brett Lawson
e6def15aab Expand the Driver methods to include most of pm4. 2015-11-17 00:25:55 -04:00
Brett Lawson
00dccf77d5 Implement GX2SetVertexUniformReg. 2015-11-16 21:39:41 -04:00
James Benton
54b252e3fc Start thinking about some shader stuff. 2015-11-17 01:34:52 +00:00
James Benton
f915d9229d Add resource base offsets. 2015-11-17 01:33:54 +00:00
Brett Lawson
18992e4b29 Implement GX2GetXXShaderGPRs and GX2GetXXShaderStackEntries. 2015-11-16 21:30:35 -04:00
Brett Lawson
daa3f972be Implement GX2SetShaderModeEx. 2015-11-16 17:22:58 -04:00
Brett Lawson
da54cd3da9 Implement PM4 commands for pixel/vertex uniform blocks. 2015-11-16 00:46:31 -04:00
Brett Lawson
838412d00c Implement custom swapping pm4 commands for Decaf. 2015-11-16 14:01:29 -04:00
James Benton
4b0f3d4029 Big endian GX2DepthBuffer. 2015-11-16 01:19:33 +00:00
James Benton
98f13c4a90 Big endian GX2ColorBuffer. 2015-11-16 01:19:25 +00:00
James Benton
cdc4106a3b Big endian GX2PixelShader. 2015-11-16 01:19:18 +00:00
James Benton
329b6d26e6 Big endian GX2FetchShader.regs 2015-11-16 01:19:04 +00:00
James Benton
0a668ffffe Big endian GX2BlendConstantColorReg. 2015-11-16 01:18:54 +00:00
James Benton
61f1f0a55d Big endian GX2DepthStencilControlReg 2015-11-16 01:18:42 +00:00
James Benton
74abde7f3f Big endian GX2BlendControlReg. 2015-11-16 01:18:33 +00:00
James Benton
4a59756ebb Make GX2Texture registers big endian 2015-11-16 01:18:23 +00:00
James Benton
144138e065 Set GX2VertexShader registers to big endian.
Introduces be_array.
2015-11-16 00:47:45 +00:00
Brett Lawson
245a89f01f Fix byte-order of the GX2Sampler registers. 2015-11-15 21:35:47 -04:00
Brett Lawson
71807ee8ba Implement SetXXXSampler stuff. 2015-11-15 21:24:35 -04:00
Brett Lawson
fd930628ae Implement GX2SetFetchShader and GX2SetPixelShader. 2015-11-16 11:00:53 -04:00
James Benton
54268d11fe Implement a minimal GX2InitColorBufferRegs & GX2InitDepthBufferRegs. 2015-11-15 23:51:52 +00:00
James Benton
5527b73e67 Implement GX2SetDepthBuffer. 2015-11-15 23:51:46 +00:00
James Benton
452d7abda6 Add dumped surface format data. 2015-11-15 23:51:31 +00:00
James Benton
c35ea2a82d Implement GX2InitTextureRegs and GX2SetPixelTexture. 2015-11-15 22:30:25 +00:00
James Benton
bef84f0295 Fetch Shader compilation now hopefully works for NoTessellation types. 2015-11-15 13:10:24 +00:00
James Benton
fb1c061914 Fix spleling of teSSeLLation. 2015-11-15 12:44:59 +00:00
James Benton
3932ad55bb Refactor some fetchshader stuff. 2015-11-14 18:39:07 +00:00
James Benton
81b4625e37 Implement GX2SetPixelUniformReg. 2015-11-14 18:38:55 +00:00
James Benton
2092b022bd Start fetch shader compiler. 2015-11-14 17:01:23 +00:00