MSAA on Windows for Intel GPU and #45186

Closed
opened 2015-06-25 08:26:17 +02:00 by Benoit Bolsee · 12 comments
Member

The Windows WGL code in Blender gives preference to double buffer swap copy method over multisample anti-aliasing (not in Linux, then why in Windows??) : fewer AA samples will be chosen if it is the condition to get swap copy.
On Intel integrated GPU this removes the possibily to use AA because you cannot get swap copy and AA at the same time.

This patch reverses the order of priority: swap copy will be abandonned if another swap method (undefined or exchange) provides the requested number of AA samples. If no AA samples is requested, then swap copy still has the priority of course.

The Windows WGL code in Blender gives preference to double buffer swap copy method over multisample anti-aliasing (not in Linux, then why in Windows??) : fewer AA samples will be chosen if it is the condition to get swap copy. On Intel integrated GPU this removes the possibily to use AA because you cannot get swap copy and AA at the same time. This patch reverses the order of priority: swap copy will be abandonned if another swap method (undefined or exchange) provides the requested number of AA samples. If no AA samples is requested, then swap copy still has the priority of course.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @BenoitBolsee

Added subscriber: @BenoitBolsee
Author
Member
[msaa.patch](https://archive.blender.org/developer/F197207/msaa.patch)
Author
Member

Added subscribers: @ideasman42, @dfelinto

Added subscribers: @ideasman42, @dfelinto
Author
Member

msaa.patch
The first patch was incomplete, this is the good one

[msaa.patch](https://archive.blender.org/developer/F197208/msaa.patch) The first patch was incomplete, this is the good one

Added subscriber: @mont29

Added subscriber: @mont29
Antonis Ryakiotakis was assigned by Bastien Montagne 2015-06-27 15:54:55 +02:00

Antony, I guess this patch is for you. :)

Antony, I guess this patch is for you. :)

I don't like how our ghost system work, where we need to manually provide a fallback for every single setting we would like to see supported (I ran into that issue with multiview, where in Linux the stereo quadbuffer mode was not supported in some machines, and the fallback was just a broken context ghost).

That said, I think the patch seems fine on top of what we have in terms of design. I just hope things change eventually.

I have no windows at hand, so I leave it to @Psy-Fi to give a definitive review of the code.

I don't like how our ghost system work, where we need to manually provide a fallback for every single setting we would like to see supported (I ran into that issue with multiview, where in Linux the stereo quadbuffer mode was not supported in some machines, and the fallback was just a broken context ghost). That said, I think the patch seems fine on top of what we have in terms of design. I just hope things change eventually. I have no windows at hand, so I leave it to @Psy-Fi to give a definitive review of the code.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Author
Member

I created a proper patch for this task:
[D1384 ](https://developer.blender.org/D1384)

Thanks @dfelinto for showing me the method.

I created a proper patch for this task: [[D1384](https://archive.blender.org/developer/D1384) ](https://developer.blender.org/D1384) Thanks @dfelinto for showing me the method.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Committed 422ffd252a this should have been closed a while ago

Committed 422ffd252ac5f73f27f3c91b75b5d20a0ed7d460 this should have been closed a while ago
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#45186
No description provided.