Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/display_driver.cpp
| Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Lines | if (texture_.width != texture_width || texture_.height != texture_height) { | ||||
| /* Texture did change, and no pixel storage was provided. Tag for an explicit zeroing out to | /* Texture did change, and no pixel storage was provided. Tag for an explicit zeroing out to | ||||
| * avoid undefined content. */ | * avoid undefined content. */ | ||||
| texture_.need_clear = true; | texture_.need_clear = true; | ||||
| } | } | ||||
| /* Update PBO dimensions if needed. | /* Update PBO dimensions if needed. | ||||
| * | * | ||||
| * NOTE: Allocate the PBO for the the size which will fit the final render resolution (as in, | * NOTE: Allocate the PBO for the size which will fit the final render resolution (as in, | ||||
| * at a resolution divider 1. This was we don't need to recreate graphics interoperability | * at a resolution divider 1. This was we don't need to recreate graphics interoperability | ||||
| * objects which are costly and which are tied to the specific underlying buffer size. | * objects which are costly and which are tied to the specific underlying buffer size. | ||||
| * The downside of this approach is that when graphics interoperability is not used we are | * The downside of this approach is that when graphics interoperability is not used we are | ||||
| * sending too much data to GPU when resolution divider is not 1. */ | * sending too much data to GPU when resolution divider is not 1. */ | ||||
| /* TODO(sergey): Investigate whether keeping the PBO exact size of the texture makes non-interop | /* TODO(sergey): Investigate whether keeping the PBO exact size of the texture makes non-interop | ||||
| * mode faster. */ | * mode faster. */ | ||||
| const int buffer_width = params.full_size.x; | const int buffer_width = params.full_size.x; | ||||
| const int buffer_height = params.full_size.y; | const int buffer_height = params.full_size.y; | ||||
| ▲ Show 20 Lines • Show All 426 Lines • Show Last 20 Lines | |||||