[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#947196: "BadMatch" error on X_ShmPutImage when using GLX_ALPHA_SIZE



On 25.12.2019 20.08, Timo Aaltonen wrote:
> On 24.12.2019 12.22, Kristian Nielsen wrote:
>> This patch to openscad works around the problem:
>>
>>   https://salsa.debian.org/knielsen-guest/openscad/commit/7225800b534a36e5ad84c56c274889b8d0edc0ce
>>
>> It uses Xrender to query visuals returned from glXChooseFBConfig(), and
>> filter out those with alphaMask=0.
>>
>> With this patch, all openscad tests are passing with mesa 19.3.1-2.
>>
>> However, I'm unsure if this is the correct approach? It does not seem right
>> that querying Xrender would be required just to specify GLX_ALPHA_SIZE to
>> glXChooseFBConfig(). Maybe there is a simpler fix for openscad, or possibly
>> this is a bug in mesa that should be fixed?
>>
>>  - Kristian.
> 
> File it to mesa upstream to find out if it's their bug or not. But in
> the meantime a workaround in the test might be needed.

actually, I think this is already filed upstream and a proposed patch is
pending to be merged, I'll include it in the next upload.

https://gitlab.freedesktop.org/mesa/mesa/issues/2291
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3305


-- 
t


Reply to: