mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-11-01 03:18:02 +03:00
wip: crocus/rusticl/elk/hasvk local changes before h264 cherry-pick
This commit is contained in:
35 files changed
+1177
-191
No files matched your search
@@ -916,6 +916,23 @@ fn create_image_with_properties(
|
||||
)?;
|
||||
|
||||
let filtered_flags = filter_image_access_flags(flags);
|
||||
{
|
||||
use std::io::Write;
|
||||
if let Ok(mut dbgf) = std::fs::OpenOptions::new().create(true).append(true).open("/tmp/rusticl_debug.log") {
|
||||
let img_fmt = unsafe { *image_format };
|
||||
let _ = writeln!(dbgf, "RUSTICL_DBG: create_image format={:?} channel_order={} channel_data_type={} image_type={} filtered_flags={:#x}",
|
||||
format, img_fmt.image_channel_order, img_fmt.image_channel_data_type, desc.image_type, filtered_flags);
|
||||
for d in &c.devs {
|
||||
match d.formats.get(format) {
|
||||
None => { let _ = writeln!(dbgf, "RUSTICL_DBG: device has NO entry for this pipe_format at all"); }
|
||||
Some(f) => {
|
||||
let _ = writeln!(dbgf, "RUSTICL_DBG: device format map: {:?}", f);
|
||||
}
|
||||
}
|
||||
}
|
||||
let _ = dbgf.flush();
|
||||
}
|
||||
}
|
||||
// CL_IMAGE_FORMAT_NOT_SUPPORTED if there are no devices in context that support image_format.
|
||||
c.devs
|
||||
.iter()
|
||||
|
||||
Reference in new issue
Block a user