summaryrefslogtreecommitdiff
path: root/src/radeon_textured_video.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-02 15:17:13 +1000
committerDave Airlie <airlied@redhat.com>2009-07-02 15:17:13 +1000
commit851b2b8cab883e4422745cca1827aa8ac9f193a3 (patch)
tree15fc08b54a09c146d2105002108462dfe2778107 /src/radeon_textured_video.c
parent9d092060236e8587697fdd57a7a01f3c0dddd680 (diff)
radeon/kms: add textured video BO size checks
Diffstat (limited to 'src/radeon_textured_video.c')
-rw-r--r--src/radeon_textured_video.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c
index 10414b91..184258c9 100644
--- a/src/radeon_textured_video.c
+++ b/src/radeon_textured_video.c
@@ -137,6 +137,14 @@ static REF_TRANSFORM trans[2] =
{1.1643, 0.0, 1.7927, -0.2132, -0.5329, 2.1124, 0.0} /* BT.709 */
};
+static inline void radeon_add_bo(struct radeon_cs_space_check *bos, int index, struct radeon_bo *bo, int read_domains, int write_domain)
+{
+ bos[index].bo = bo;
+ bos[index].read_domains = read_domains;
+ bos[index].write_domain = write_domain;
+ bos[index].new_accounted = 0;
+}
+
#define ACCEL_MMIO
#define ACCEL_PREAMBLE() unsigned char *RADEONMMIO = info->MMIO
#define BEGIN_ACCEL(n) RADEONWaitForFifo(pScrn, (n))