Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/opencl_split.cpp
| Show First 20 Lines • Show All 1,301 Lines • ▼ Show 20 Lines | if (string_startswith(slot.name, "__tex_image")) { | ||||
| device_memory *mem = textures[slot.name]; | device_memory *mem = textures[slot.name]; | ||||
| info.width = mem->data_width; | info.width = mem->data_width; | ||||
| info.height = mem->data_height; | info.height = mem->data_height; | ||||
| info.depth = mem->data_depth; | info.depth = mem->data_depth; | ||||
| info.interpolation = mem->interpolation; | info.interpolation = mem->interpolation; | ||||
| info.extension = mem->extension; | info.extension = mem->extension; | ||||
| info.compress_as_srgb = mem->compress_as_srgb; | |||||
| } | } | ||||
| } | } | ||||
| /* Force write of descriptors. */ | /* Force write of descriptors. */ | ||||
| memory_manager.free(texture_info); | memory_manager.free(texture_info); | ||||
| memory_manager.alloc("texture_info", texture_info); | memory_manager.alloc("texture_info", texture_info); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 729 Lines • Show Last 20 Lines | |||||