Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xbmc][win32] Fix a crash for subtitle rendering in 4k on amd cards #12516

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

Paxxi
Copy link
Member

@Paxxi Paxxi commented Jul 17, 2017

AMD drivers crashes when we try to allocate a texture
5073 pixels wide. This caps our texture to the screen width.

backport #12515

This doesn't update libass, there's more changes coming there.
The backport was tested with the updated libass so didn't want to take any chances there for now.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the Code guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have added tests to cover my change
  • All new and existing tests passed

@Paxxi Paxxi added Backport: Done Type: Fix non-breaking change which fixes an issue v18 Leia Platform: Windows labels Jul 17, 2017
@Paxxi Paxxi added this to the L 18.0-alpha1 milestone Jul 17, 2017
@Paxxi Paxxi requested a review from afedchin July 17, 2017 12:36
AMD drivers crashes when we try to allocate a texture
5073 pixels wide. This caps our texture to the screen width.
@Paxxi Paxxi merged commit c017155 into xbmc:master Jul 17, 2017
@Paxxi Paxxi deleted the assfix3_master branch July 17, 2017 15:07
@@ -205,8 +205,8 @@ bool convert_quad(ASS_Image* images, SQuads& quads)
if (quads.count == 0)
return false;

if (quads.size_x > (int)g_Windowing.GetMaxTextureSize())
quads.size_x = g_Windowing.GetMaxTextureSize();

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport: Done Platform: Windows Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants