Lines Matching defs:mode
202 TDFX_SetDisplayMode(const DisplayModeEx& mode)
206 // and assume that the mode values we get here are acceptable.
209 bool clock2X = mode.timing.pixel_clock > si.maxPixelClock / 2;
222 int hTotal = mode.timing.h_total / horzDiv - 5;
223 int hDisp_e = mode.timing.h_display / horzDiv - 1;
224 int hSync_s = mode.timing.h_sync_start / horzDiv;
225 int hSync_e = mode.timing.h_sync_end / horzDiv;
229 int vTotal = mode.timing.v_total - 2;
230 int vDisp_e = mode.timing.v_display - 1;
231 int vSync_s = mode.timing.v_sync_start;
232 int vSync_e = mode.timing.v_sync_end;
287 uint8 miscOutReg = 0x0f | (mode.timing.v_display < 400 ? 0xa0
288 : mode.timing.v_display < 480 ? 0x60
289 : mode.timing.v_display < 768 ? 0xe0 : 0x20);
298 | (mode.bytesPerPixel - 1) << DESKTOP_PIXEL_FORMAT_SHIFT
299 | (mode.bytesPerPixel > 1 ? DESKTOP_CLUT_BYPASS : 0);
308 uint32 pllFreq = TDFX_CalcPLL(mode.timing.pixel_clock);
310 // Note that for the Banshee chip, the mode 1280x1024 at 60Hz refresh does
315 && mode.timing.h_display == 1280 && mode.timing.v_display == 1024)
318 uint32 screenSize = mode.timing.h_display | (mode.timing.v_display << 12);
321 // registers to set the mode.
339 OUTREG32(VIDEO_DESKTOP_OVERLAY_STRIDE, mode.bytesPerRow);
355 TDFX_AdjustFrame(mode);
362 TDFX_AdjustFrame(const DisplayModeEx& mode)
368 int address = (mode.v_display_start * mode.virtual_width
369 + mode.h_display_start) * mode.bytesPerPixel;
383 // Set the indexed color palette for 8-bit color depth mode.