Gallium NV40 Textures
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20090125105847.7f815e76-bEIzoA7YQWm4miubQJdzGGS2/mPcPMSI/[email protected]
Quoted 24 lines · Jimmy Rentz
Hello,
I was playing around with the OpenGlSuperBible samples and noticed some odd issues around textures. Yes, I know it won't be perfect right now (and not supported)...I am just curious if you see the same issues.
Well, I am seeing some issues around swizzled textures with the sphereworld sample (chapter 08). The problems don't occur once I force the textures to be linear.
NOTE: I modified the sample a bit so it only draws the ground. pics:
swizzle.png - Current result with swizzled textures. linear.png - Mod that turns off swizzled textures.I read something in the backlog about how mipmaps aren't handled entirely correctly, but I don't know if this is related.
Another thing, I do see some drm irq errors when the 1x1 mipmap is generated. It might be related:
[drm]PGRAPH_ERROR- nSource:DATA_ERROR, nStatus:BAD_ARGUMENT[drm]PGRAPH_ERROR- Ch 2/4 Class0x309eMthd0x0300Data 0x00000000:0x0000000a [drm]PGRAPH_ERROR- nSource:DATA_ERROR,
nStatus:BAD_ARGUMENT[drm]PGRAPH_ERROR- Ch 2/5 Class0x3089Mthd0x0400Data 0x00000000:0x00010001
Quoted 3 lines
0x300is for the texture format(A8R8G8B8) and0x400is for the size (1x1). For some reason the hw doesn't like 1x1 swizzled textures?
Yeah I know what this is about. Swizzling is broken for mip maps. The first few levels swizzle fine, but after that something screws up. I think the swizzler has some limitations for the dest surface. dest must be aligned to some boundary (64 bytes? 128?) i think, so that means each mip level must be aligned, and we probably aren't obeying that at the moment. probably the hw won't handle 1xN or Nx1 either. Try the progs/tests/mipmap_view, IIRC 8x8 and below is broken.