Page 1 of 1

Warp3D bug, W3D_VFORMAT_PACK_COLOR inconsistent

Posted: Thu Oct 30, 2014 6:44 pm
by Daytona675x
W3D_InterleavedArray with W3D_VFORMAT_PACK_COLOR gives different results depending on the underlying hardware.
At least Permedia2 and R200 behave differently, Red/Blue being swapped / interpreted as BGRA on the one and RGBA on the other.

I hope this is still the right place to report that issue. If not, please forward it the respective responsable at AEON.

Re: Warp3D bug, W3D_VFORMAT_PACK_COLOR inconsistent

Posted: Sat Nov 01, 2014 9:43 am
by Hans
Daytona675x wrote:W3D_InterleavedArray with W3D_VFORMAT_PACK_COLOR gives different results depending on the underlying hardware.
At least Permedia2 and R200 behave differently, Red/Blue being swapped / interpreted as BGRA on the one and RGBA on the other.

I hope this is still the right place to report that issue. If not, please forward it the respective responsable at AEON.
Yuck! Based on the documentation, I'd say that the Permedia2 driver has it right. When giving colours in floating-point format, it's also RGBA. So, swapping that round with the packed int format would be inconsistent.

The mistake in the R200 driver probably went unnoticed for so long because most people use floating-point representation (which is generally the GPU's native format).

Anyway, I've submitted the bug to bugzilla.

Re: Warp3D bug, W3D_VFORMAT_PACK_COLOR inconsistent

Posted: Tue Nov 04, 2014 10:52 pm
by Karlos
Can you please post the version numbers for each of the Warp3d components installed on your system?

A number of similar colour format bugs were fixed for the Radeon R100 and R200 drivers for the non-interleaved colour pointers previously. Its possible that the interleaved version was overlooked at that time.

The drivers generally can and do use packed formats if the hardware allows it and its a good match for the source data. The peemedia is an exception in that floating point colour formats while supported in hardware are not used as it bloats vertex data sent over the slow bus and the render pipeline isnt capable of higher internal precision anyway.

Re: Warp3D bug, W3D_VFORMAT_PACK_COLOR inconsistent

Posted: Thu Aug 13, 2015 3:58 pm
by Daytona675x
Fixed it. Also fixed some problems with the secondary color and interleaved arrays.
Programmers: take care to remove any workarounds in your code regarding this when the updated driver gets released :-)