Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass Intel Driver bugs in driver v32.0.101.6557 (see remarks) #152

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Xerxes004
Copy link

This commit circumvents two errors with Intel drivers:

  1. A D3D9 surface cannot be registered as a Renderbuffer target
  2. A D3D9 surface cannot be created with MSAA enabled

The Intel drivers have a bug where a D3D9 surface registered as a Renderbuffer target type accesses memory out of range. There are a host of theories as to why this is, but this commit bypasses using a Renderbuffer target in lieu of a Texture2D target.

For depth testing and MSAA to work as intended, the user must create their own framebuffers with these attachments.

This commit circumvents two errors with Intel drivers:

1) A D3D9 surface cannot be registered as a Renderbuffer target
2) A D3D9 surface cannot be created with MSAA enabled

The Intel drivers have a bug where a D3D9 surface registered as
a Renderbuffer target type accesses memory out of range. There are
a host of theories as to why this is, but this commit bypasses
using a Renderbuffer target in lieu of a Texture2D target.

For depth testing and MSAA to work as intended, the user must
create their own framebuffers with these attachments.
@Xerxes004 Xerxes004 marked this pull request as draft February 11, 2025 23:27
GL.BindTexture(TextureTarget.Texture2D, GLBlitTextureHandle);
GL.TexImage2D(TextureTarget.Texture2D,
0,
PixelInternalFormat.Rgba32f,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use unsigned byte pixels instead

@Xerxes004 Xerxes004 marked this pull request as ready for review February 21, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant