Mir

Mir gets textures/buffers confused when running both scroll and flicker demos

Bug #1263592 reported by Daniel van Vugt on 2013-12-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Daniel van Vugt
mir (Ubuntu)
High
Unassigned

Bug Description

Mir gets textures/buffers confused when running both scroll and flicker demos

1. Start mir_demo_server_shell
2. sudo bin/mir_demo_client_scroll & sudo bin/mir_demo_client_flicker &
3. Alt+Tab between the two clients

Expected: Both scroll and flicker demos to be visible.
Observed: When the scroll demo is focused, the flicker surface becomes a mirror of the scroll surface. I only see two scrolls and no flicker.

Related branches

summary: - Mir gets buffers confused when running both scroll and flicker demos
+ Mir gets textures/buffers confused when running both scroll and flicker
+ demos
description: updated
Daniel van Vugt (vanvugt) wrote :

The problem seems to be when a hardware surface is in front of a software surface of the same dimensions. So we call:

1. Software surface: glTexImage2D
2. Hardware surface: glEGLImageTargetTexture2DOES

GL seems to be getting confused as we reuse a single texture ID for all surfaces. And in the above scenario it only uses the second upload for both surfaces.

So it could be a bug in Mesa's glEGLImageTargetTexture2DOES, or less likely it could be that texture ID reuse like this is not quite legal.

Changed in mir:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in mir:
status: Triaged → In Progress
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Daniel van Vugt (vanvugt) wrote :

mir (0.1.4+14.04.20140204-0ubuntu1) trusty; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers