winemac.drv: Trace display device counts.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
be5c7ed591
commit
20336127a4
|
@ -1658,6 +1658,7 @@ void macdrv_init_display_devices(BOOL force)
|
|||
/* Initialize GPUs */
|
||||
if (macdrv_get_gpus(&gpus, &gpu_count))
|
||||
goto done;
|
||||
TRACE("GPU count: %d\n", gpu_count);
|
||||
|
||||
for (gpu = 0; gpu < gpu_count; gpu++)
|
||||
{
|
||||
|
@ -1667,11 +1668,13 @@ void macdrv_init_display_devices(BOOL force)
|
|||
/* Initialize adapters */
|
||||
if (macdrv_get_adapters(gpus[gpu].id, &adapters, &adapter_count))
|
||||
goto done;
|
||||
TRACE("GPU: %#llx %s, adapter count: %d\n", gpus[gpu].id, gpus[gpu].name, adapter_count);
|
||||
|
||||
for (adapter = 0; adapter < adapter_count; adapter++)
|
||||
{
|
||||
if (macdrv_get_monitors(adapters[adapter].id, &monitors, &monitor_count))
|
||||
goto done;
|
||||
TRACE("adapter: %#x, monitor count: %d\n", adapters[adapter].id, monitor_count);
|
||||
|
||||
if (!macdrv_init_adapter(video_hkey, video_index, gpu, adapter, monitor_count, &gpus[gpu], guidW, driverW,
|
||||
&adapters[adapter]))
|
||||
|
@ -1680,6 +1683,7 @@ void macdrv_init_display_devices(BOOL force)
|
|||
/* Initialize monitors */
|
||||
for (monitor = 0; monitor < monitor_count; monitor++)
|
||||
{
|
||||
TRACE("monitor: %#x %s\n", monitor, monitors[monitor].name);
|
||||
if (!macdrv_init_monitor(monitor_devinfo, &monitors[monitor], monitor, video_index))
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue