Page MenuHome

Fix T59351: bypass texture creation test with GL_PROXY.. on AMD graphics cards.
ClosedPublic

Authored by Germano Cavalcante (mano-wii) on Dec 14 2018, 9:47 PM.

Details

Summary

Some AMD drivers have a faulty GL_PROXY_TEXTURE_.. check.

This patch replaces the test of consistency and capacity made with GL_PROXY_TEXTURE_.. in the AMD driver with one that checks only if the texture fits within the size and layer limits.
I was unable to determine which cards have this defect, but since rB141e94f87ff2 fixes a similar problem and applies to all AMD GPUs, this patch also applies to all.

Diff Detail

Repository
rB Blender
Branch
blender2.8_bypass_proxy_textures (branched from blender2.8)
Build Status
Buildable 2634
Build 2634: arc lint + arc unit

Event Timeline

  • Cleanup: remove GPU_proxy_texture_workaround func.

Tested this on de662e7cd3b and it does seem to resolve T59351.

source/blender/gpu/intern/gpu_texture.c
487

I think for now we only encountered this problem on windows. I would limit this fix to windows only.

  • Limit workaround to windows
  • Remove unnecessary editing in comment
Germano Cavalcante (mano-wii) marked an inline comment as done.Dec 15 2018, 1:19 AM
This revision is now accepted and ready to land.Dec 15 2018, 1:20 AM
This revision was automatically updated to reflect the committed changes.