• Paul Kocialkowski's avatar
    lib/igt_fb: Refactor create_bo_for_fb to prepare for VC4 support · 9e0c8398
    Paul Kocialkowski authored
    The current create_bo_for_fb uses a device-specific BO instead of dumb
    allocation when dumb allocation is not appropriate and the driver is
    Intel. Then, it will assert that the parameters are appropriate for
    dumb allocation.
    
    The conditions related to tiling, size and stride are sufficient for
    needing a device-specific BO and they are not specific to Intel.
    However, a device-specific BO for YUV is only needed for Intel.
    
    Change the conditions accordingly and set a device_bo variable. This
    variable allows making fb->size calculation common between the
    device-specific and dumb paths. Use the variable after that and
    distinguish between the device types for allocating and error out if
    it's not supported.
    
    This makes the extra checks that dumb allocation is valid redundant,
    since these cases will always fall under device-specific allocation
    and potentially error out then.
    Signed-off-by: Paul Kocialkowski's avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
    Reviewed-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
    Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
    9e0c8398
Name
Last commit
Last update
..
i915 Loading commit data...
stubs Loading commit data...
tests Loading commit data...
uwildmat Loading commit data...
.gitignore Loading commit data...
Makefile.am Loading commit data...
Makefile.sources Loading commit data...
check-ndebug.h Loading commit data...
debug.h Loading commit data...
drmtest.c Loading commit data...
drmtest.h Loading commit data...
dummy.c Loading commit data...
gen4_render.h Loading commit data...
gen6_render.h Loading commit data...
gen7_media.h Loading commit data...
gen7_render.h Loading commit data...
gen8_media.h Loading commit data...
gen8_render.h Loading commit data...
gen9_render.h Loading commit data...
gpgpu_fill.c Loading commit data...
gpgpu_fill.h Loading commit data...
gpu_cmds.c Loading commit data...
gpu_cmds.h Loading commit data...
i830_reg.h Loading commit data...
i915_3d.h Loading commit data...
i915_pciids.h Loading commit data...
i915_reg.h Loading commit data...
igt.cocci Loading commit data...
igt.h Loading commit data...
igt_alsa.c Loading commit data...
igt_alsa.h Loading commit data...
igt_audio.c Loading commit data...
igt_audio.h Loading commit data...
igt_aux.c Loading commit data...
igt_aux.h Loading commit data...
igt_chamelium.c Loading commit data...
igt_chamelium.h Loading commit data...
igt_color_encoding.c Loading commit data...
igt_color_encoding.h Loading commit data...
igt_core.c Loading commit data...
igt_core.h Loading commit data...
igt_debugfs.c Loading commit data...
igt_debugfs.h Loading commit data...
igt_device.c Loading commit data...
igt_device.h Loading commit data...
igt_draw.c Loading commit data...
igt_draw.h Loading commit data...
igt_dummyload.c Loading commit data...
igt_dummyload.h Loading commit data...
igt_edid_template.h Loading commit data...
igt_fb.c Loading commit data...
igt_fb.h Loading commit data...
igt_frame.c Loading commit data...
igt_frame.h Loading commit data...
igt_gt.c Loading commit data...
igt_gt.h Loading commit data...
igt_gvt.c Loading commit data...
igt_gvt.h Loading commit data...
igt_kmod.c Loading commit data...
igt_kmod.h Loading commit data...
igt_kms.c Loading commit data...
igt_kms.h Loading commit data...
igt_list.h Loading commit data...
igt_matrix.c Loading commit data...
igt_matrix.h Loading commit data...
igt_perf.c Loading commit data...
igt_perf.h Loading commit data...
igt_pm.c Loading commit data...
igt_pm.h Loading commit data...
igt_primes.c Loading commit data...
igt_primes.h Loading commit data...
igt_psr.c Loading commit data...
igt_psr.h Loading commit data...
igt_rand.c Loading commit data...
igt_rand.h Loading commit data...
igt_rc.h Loading commit data...
igt_stats.c Loading commit data...
igt_stats.h Loading commit data...
igt_syncobj.c Loading commit data...
igt_syncobj.h Loading commit data...
igt_sysfs.c Loading commit data...
igt_sysfs.h Loading commit data...
igt_sysrq.c Loading commit data...
igt_sysrq.h Loading commit data...
igt_v3d.c Loading commit data...
igt_v3d.h Loading commit data...
igt_vc4.c Loading commit data...
igt_vc4.h Loading commit data...
igt_vgem.c Loading commit data...
igt_vgem.h Loading commit data...
igt_x86.c Loading commit data...
igt_x86.h Loading commit data...
instdone.c Loading commit data...
instdone.h Loading commit data...
intel_aub.h Loading commit data...
intel_batchbuffer.c Loading commit data...
intel_batchbuffer.h Loading commit data...
intel_chipset.c Loading commit data...
intel_chipset.h Loading commit data...
intel_device_info.c Loading commit data...
intel_io.h Loading commit data...
intel_iosf.c Loading commit data...
intel_mmio.c Loading commit data...
intel_os.c Loading commit data...
intel_reg.h Loading commit data...
intel_reg_map.c Loading commit data...
ioctl_wrappers.c Loading commit data...
ioctl_wrappers.h Loading commit data...
media_fill.c Loading commit data...
media_fill.h Loading commit data...
media_spin.c Loading commit data...
media_spin.h Loading commit data...
meson.build Loading commit data...
rendercopy.h Loading commit data...
rendercopy_gen4.c Loading commit data...
rendercopy_gen6.c Loading commit data...
rendercopy_gen7.c Loading commit data...
rendercopy_gen8.c Loading commit data...
rendercopy_gen9.c Loading commit data...
rendercopy_i830.c Loading commit data...
rendercopy_i915.c Loading commit data...
surfaceformat.h Loading commit data...
sw_sync.c Loading commit data...
sw_sync.h Loading commit data...
vc4_packet.h Loading commit data...
version.h.in Loading commit data...