return 0;
}
- if (fxMesa->haveZBuffer)
- grDepthBufferMode(GR_DEPTHBUFFER_ZBUFFER);
+ /* [dBorca] Hack alert:
+ * Unlike the rest of the Voodoo family, the Rush
+ * doesn't support ZBUFFER with WBUFFER-like depth functions!
+ * I guess we could use WBUFFER, which is better, but we can't
+ * because the depth span functions would need to translate
+ * depth values to 4.12 floating point...
+ */
+ if (fxMesa->haveZBuffer) {
+ grDepthBufferMode((fxMesa->type == GR_SSTTYPE_SST96)
+ ? GR_DEPTHBUFFER_WBUFFER
+ : GR_DEPTHBUFFER_ZBUFFER);
+ }
if (!fxMesa->bgrOrder) {
grLfbWriteColorFormat(GR_COLORFORMAT_ABGR);
grSstSelect(i);
extension = grGetString(GR_HARDWARE);
- if (strstr(extension, "Voodoo2")) {
+ if (strstr(extension, "Rush")) {
+ config->SSTs[i].type = GR_SSTTYPE_SST96;
+ } else if (strstr(extension, "Voodoo2")) {
config->SSTs[i].type = GR_SSTTYPE_Voodoo2;
} else if (strstr(extension, "Voodoo Banshee")) {
config->SSTs[i].type = GR_SSTTYPE_Banshee;
config->SSTs[i].type = GR_SSTTYPE_Voodoo4;
} else if (strstr(extension, "Voodoo5")) {
config->SSTs[i].type = GR_SSTTYPE_Voodoo5;
- } else { /* Voodoo1,rush */
- /* ZZZ TO DO: Need to distinguish whether we have V1 or Rush. */
+ } else {
config->SSTs[i].type = GR_SSTTYPE_VOODOO;
}