summaryrefslogtreecommitdiff
path: root/src/radeon_video.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2009-02-21 04:46:31 +0100
committerRoland Scheidegger <sroland@tungstengraphics.com>2009-03-24 19:57:19 +0100
commit58530bf4912800f9e09ebaea42a13cff8a80c19e (patch)
tree49689b0e5c1940f9d52c5b25827868fcda0f7222 /src/radeon_video.h
parent97e19d96ba65a3df2fa3bbf73cfcc01b6dc3e796 (diff)
don't convert planar yuv to packed for r300
uses 3 textures for planar yuv and does yuv->rgb conversion in the shader. small performance advantage, but manual texture cache setting is necessary otherwise it may be measurably slower (but probably not relevant) in some cases. Unlike some other drivers, using MADs instead of DP3s, since this requires less instructions due to no MOVs are required, the end result is the same though the constants need to be different. Use of this is user settable for now (XV_HWPLANAR attrib).
Diffstat (limited to 'src/radeon_video.h')
-rw-r--r--src/radeon_video.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_video.h b/src/radeon_video.h
index 7f1891e4..34fb07f0 100644
--- a/src/radeon_video.h
+++ b/src/radeon_video.h
@@ -90,6 +90,11 @@ typedef struct {
void *video_memory;
int video_offset;
+ Bool planar_hw;
+ Bool planar_state;
+ int planeu_offset;
+ int planev_offset;
+
/* bicubic filtering */
void *bicubic_memory;
int bicubic_offset;