glamor: unifdef XORG_VERSION_CURRENT
This is always true now that glamor is in-tree. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
059879b3ed
commit
aa29298416
|
@ -601,10 +601,8 @@ format_for_depth(int depth)
|
|||
default:
|
||||
case 24:
|
||||
return PICT_x8r8g8b8;
|
||||
#if XORG_VERSION_CURRENT >= 10699900
|
||||
case 30:
|
||||
return PICT_x2r10g10b10;
|
||||
#endif
|
||||
case 32:
|
||||
return PICT_a8r8g8b8;
|
||||
}
|
||||
|
@ -669,7 +667,6 @@ glamor_get_rgba_from_pixel(CARD32 pixel,
|
|||
gshift = rbits;
|
||||
bshift = gshift + gbits;
|
||||
ashift = bshift + bbits;
|
||||
#if XORG_VERSION_CURRENT >= 10699900
|
||||
}
|
||||
else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_BGRA) {
|
||||
ashift = 0;
|
||||
|
@ -678,7 +675,6 @@ glamor_get_rgba_from_pixel(CARD32 pixel,
|
|||
rshift = PICT_FORMAT_BPP(format) - (rbits + gbits + bbits);
|
||||
gshift = rshift + rbits;
|
||||
bshift = gshift + gbits;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user