EmuNewz Network
Display on Intel onboard graphics card - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: Hardware infos (https://www.emunewz.net/forum/forumdisplay.php?fid=58)
+---- Thread: Display on Intel onboard graphics card (/showthread.php?tid=108879)



Display on Intel onboard graphics card - Darth1701 - 12-14-2012

(12-14-2012, 10:59 AM)gid15 Wrote: It would be good to open a new thread for this topic. This is a good idea to use 3DStudio for testing.
Could you try the following tests:
- Select "disable optimized VertexInfo reading": any changes?
- in jpcsp.graphics.RE.RenderingEngineFactor, delete/uncomment the line 74:
Code:
// re = new StateProxy(re);

Log 4 is with +"Disable optimized VertexInfo", no changes
Log 5 is without line 74, settings as with Log 4, success!
Log 6 is without line 74, Shaders,Dynamic,UBO, also success!

Tried without line 74 and Shaders alone, unchanged, Shaders+Dynamic also unchanged



RE: Display on Intel onboard graphics card - gid15 - 12-14-2012

(12-14-2012, 12:08 PM)Darth1701 Wrote: Log 6 is without line 74, Shaders,Dynamic,UBO, also success!
Good news!
Next step is to find out which function in StateProxy is causing the issue.

You now have to reenable line 74 in RenderingEngineFactory and uncomment the functions disableVertexAttribArray and enableVertexAttribArray in StateProxy (lines 542 - 562):
Code:
//    @Override
//    public void disableVertexAttribArray(int id) {
//        if (id >= 0 && id <= maxUniformId) {
//            StateBoolean state = vertexAttribArray[id];
//            if (!state.isFalse()) {
//                super.disableVertexAttribArray(id);
//                state.setValue(false);
//            }
//        }
//    }
//
//    @Override
//    public void enableVertexAttribArray(int id) {
//        if (id >= 0 && id <= maxUniformId) {
//            StateBoolean state = vertexAttribArray[id];
//            if (!state.isTrue()) {
//                super.enableVertexAttribArray(id);
//                state.setValue(true);
//            }
//        }
//    }
Is the display then still correct?
If not, try to uncomment all the functions with a name starting with setUniform


RE: Display on Intel onboard graphics card - Darth1701 - 12-14-2012

(12-14-2012, 12:37 PM)gid15 Wrote: Is the display then still correct?

No, red screen again.

Settings: Shaders,Dynamic,UBO

Restoring Line 542-562, Removing at

Line 344, Uniform
Line 356, Uniform
Line 366, Uniform
Line 383, Uniform2
Line 401, Uniform3
Line 421, Uniform4
Line 443, UniformMatrix4

Success! Should I try to find out what Uniform is the cause?

EDIT: It is the Line 356, Uniform!

Now what?


RE: Display on Intel onboard graphics card - Darth1701 - 12-14-2012

New log r2927