From f34b044d1599875bed6ccc73019e36d289bab349 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 22 Nov 2013 14:47:08 +0000 Subject: [PATCH] intel-2D: use tiled framebuffer git-svn-id: svn://kolibrios.org@4281 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/video/Intel-2D/gen4_render.c | 10 +++++----- drivers/video/Intel-2D/gen5_render.c | 14 +++++++++----- drivers/video/Intel-2D/gen6_render.c | 2 -- drivers/video/Intel-2D/kgem.c | 2 +- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/video/Intel-2D/gen4_render.c b/drivers/video/Intel-2D/gen4_render.c index 5d61ee220..c89a71612 100644 --- a/drivers/video/Intel-2D/gen4_render.c +++ b/drivers/video/Intel-2D/gen4_render.c @@ -2391,11 +2391,11 @@ gen4_blit_tex(struct sna *sna, // tmp->mask.offset[0] = -dst_x; // tmp->mask.offset[1] = -dst_y; - tmp->u.gen4.wm_kernel = - gen4_choose_composite_kernel(tmp->op, - tmp->mask.bo != NULL, - tmp->has_component_alpha, - tmp->is_affine); + tmp->u.gen4.wm_kernel = WM_KERNEL_MASK; +// gen4_choose_composite_kernel(tmp->op, +// tmp->mask.bo != NULL, +// tmp->has_component_alpha, +// tmp->is_affine); tmp->u.gen4.ve_id = gen4_choose_composite_emitter(sna, tmp); tmp->blt = gen4_render_composite_blt; diff --git a/drivers/video/Intel-2D/gen5_render.c b/drivers/video/Intel-2D/gen5_render.c index 21209f66c..43c2226a1 100644 --- a/drivers/video/Intel-2D/gen5_render.c +++ b/drivers/video/Intel-2D/gen5_render.c @@ -302,6 +302,8 @@ static uint32_t gen5_get_card_format(PictFormat format) static uint32_t gen5_get_dest_format(PictFormat format) { + return GEN5_SURFACEFORMAT_B8G8R8A8_UNORM; +#if 0 switch (format) { default: return -1; @@ -325,6 +327,7 @@ static uint32_t gen5_get_dest_format(PictFormat format) case PICT_x4r4g4b4: return GEN5_SURFACEFORMAT_B4G4R4A4_UNORM; } +#endif } typedef struct gen5_surface_state_padded { struct gen5_surface_state state; @@ -2447,11 +2450,12 @@ gen5_blit_tex(struct sna *sna, tmp->mask.scale[1] = 1.f/mask->drawable.height; - tmp->u.gen5.wm_kernel = - gen5_choose_composite_kernel(tmp->op, - tmp->mask.bo != NULL, - tmp->has_component_alpha, - tmp->is_affine); + tmp->u.gen5.wm_kernel = WM_KERNEL_MASK; + +// gen5_choose_composite_kernel(tmp->op, +// tmp->mask.bo != NULL, +// tmp->has_component_alpha, +// tmp->is_affine); tmp->u.gen5.ve_id = gen4_choose_composite_emitter(sna, tmp); tmp->blt = gen5_render_composite_blt; diff --git a/drivers/video/Intel-2D/gen6_render.c b/drivers/video/Intel-2D/gen6_render.c index d57a757c8..178b1a04b 100644 --- a/drivers/video/Intel-2D/gen6_render.c +++ b/drivers/video/Intel-2D/gen6_render.c @@ -2727,9 +2727,7 @@ fallback: op->done = gen6_render_copy_done; return true; } -#endif -#if 0 static void gen6_emit_fill_state(struct sna *sna, const struct sna_composite_op *op) { diff --git a/drivers/video/Intel-2D/kgem.c b/drivers/video/Intel-2D/kgem.c index d45f31a96..599ebe687 100644 --- a/drivers/video/Intel-2D/kgem.c +++ b/drivers/video/Intel-2D/kgem.c @@ -5326,7 +5326,7 @@ int kgem_init_fb(struct kgem *kgem, struct sna_fb *fb) bo->domain = DOMAIN_GTT; bo->unique_id = kgem_get_unique_id(kgem); bo->pitch = fb->pitch; - bo->tiling = I915_TILING_NONE; + bo->tiling = I915_TILING_X; bo->scanout = 1; fb->fb_bo = bo;