PCSX2 Linux Development
Sorry for the delay. Feel free to ask more questiion if iit isn't clear.

3/ GS dump
3a/ generate GS dump
* few frames: CTRL+F8
* more frames: CTRL+SHIFT+F8, hold SHIFT

The dump will be created in your snapshot directory. Hint check .gs extension files.

3b/ replay the GS dump
* Build PCSX2 with this option -DBUILD_REPLAY_LOADERS=TRUE
It will create the pcsx2_GSReplayLoader executable
Note: I would advice to save it somewhere.

* The executable requires 3 arguments
1/ the GSdx plugin => bin/plugins/libGSdx-0.1.16.so
2/ the .gs file => bin/snaps/god_of_war.gs
3/ the directory that contains the ini file => bin/inis

3c/ Useful option to analysis the dump
* linux_replay = n <= replay the trace n times

* dump = 1 <= Enable dumping infrastructure
* save = 1 <= dump render target
* savez = 1 <= dump depth target
* saven = nnn <= first texture to dump

3d/ For the record it is possible to replay GS dump in GPU debugger such as Apitrace
* if you know any other debugger on Linux, rise your hand.
Reply

Sponsored links

I was wondering what someone with a basic handling of C could do to help? All of what I've coded so far has been in the realm of scientific computing. I've never contributed to an open source project and don't know how it works, or even if I have anything to offer. In addition to C, I know a some BASH and Python. BASH more for the various scripts I run on my system to keep me sane.

[edit] A bit of personal background. My background is actually in math and physics, but I've had four semesters of scientific computing in my graduate program.
i7 4930k @4.3, 4x4 GB RAM @2133 (15-15-15-27, quad channel), EVGA 570 @stock, Arch 64b.
Reply
Disclaimer, I don't mean to be a reference but you could do as much as me.

I'm working on the hardware conception. PCSX2 was/is my first contribution to an open source project.
Reply
I doubt that very much. Your usefulness in comparison to mine. If you think there is something I could do (starting after finals next week) what would you suggest. I'm not familiar with how this contributing to a project works thing.
i7 4930k @4.3, 4x4 GB RAM @2133 (15-15-15-27, quad channel), EVGA 570 @stock, Arch 64b.
Reply
Well first, you need to pick up an idea of somethings you want to implement. Don't start with the hardest task.

You could find some idea here (list need a big update but it is a start)
Quote:https://github.com/PCSX2/pcsx2/wiki/Cont...DO-List%29
Reply
You can port GSdx opencl windows to opencl linux (check this define ENABLE_OPENCL). I don't think it would be difficult and users would love to have the openCL renderer on linux.
Reply
I can certainly try. I don't have any experience with OpenCL, but it was on my too do list following pthreads.

What are the relevant file? I found :
https://github.com/PCSX2/pcsx2/blob/mast...Sdx/GSdx.h
https://github.com/PCSX2/pcsx2/blob/mast...L/opencl.h
https://github.com/PCSX2/pcsx2/blob/mast...l_gl_ext.h
https://github.com/PCSX2/pcsx2/blob/mast...x/GSUtil.h
https://github.com/PCSX2/pcsx2/blob/mast...CL/cl_gl.h
https://github.com/PCSX2/pcsx2/blob/mast...x/GSdx.cpp
https://github.com/PCSX2/pcsx2/blob/mast...x/config.h

Are these all relevant, and am I missing anything? I won't be starting until sometime next week, but I'd like to know what I'm working with.

Also, thank you for your help.
i7 4930k @4.3, 4x4 GB RAM @2133 (15-15-15-27, quad channel), EVGA 570 @stock, Arch 64b.
Reply
Forget about 3rdparty file. Use the file of your distribution (driver).

You can add those files
Quote:GSRendererCL.cpp
GSRendererCL.h
res/tfx.cl

By the way you can have the full list with a "grep -rwl ENABLE_OPENCL plugins/GSdx"

My advice edit config.h to enable ENABLE_OPENCL. Try to compile and fix compilation error.

Oh, create a branch on git so you can post your code on github. I can help you, if you have any question.
Reply
By the way, you don't need a knowledge of openCL. I mean code is likely 95% cross OS. It only remains the 5% (i.e. create a context, fix the shader path, fix MSVC extension).
Reply
Thank you. I'll start on that sometime this Summer, after I've moved.
i7 4930k @4.3, 4x4 GB RAM @2133 (15-15-15-27, quad channel), EVGA 570 @stock, Arch 64b.
Reply




Users browsing this thread: 1 Guest(s)