aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-06-20 16:10:43 -0700
committerKenneth Graunke <[email protected]>2013-06-28 13:35:25 -0700
commit6fddd375d79e9f94668dace0d50f571654792222 (patch)
tree0e372a72f0f67962ad1dfa6ac22651b30d6ddcdc /src/mesa/drivers/dri/i965/intel_screen.c
parent3c231b863160d82cd6cc85724c53e5bcb4ca03e1 (diff)
i965: Drop code checking for gen <= 3.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_screen.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 60a69a60648..34e0caa81ca 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -167,9 +167,6 @@ intelDRI2Flush(__DRIdrawable *drawable)
if (intel == NULL)
return;
- if (intel->gen < 4)
- INTEL_FIREVERTICES(intel);
-
intel_resolve_for_dri2_flush(intel, drawable);
intel->need_throttle = true;
@@ -836,13 +833,8 @@ intelCreateBuffer(__DRIscreen * driScrnPriv,
else if (mesaVis->alphaBits == 0)
rgbFormat = MESA_FORMAT_XRGB8888;
else {
- if (screen->gen >= 4) {
- rgbFormat = MESA_FORMAT_SARGB8;
- fb->Visual.sRGBCapable = true;
- } else {
- rgbFormat = MESA_FORMAT_ARGB8888;
- }
-
+ rgbFormat = MESA_FORMAT_SARGB8;
+ fb->Visual.sRGBCapable = true;
}
/* setup the hardware-based renderbuffers */