#define END_CS \
cs_winsys->end_cs(cs, __FILE__, __FUNCTION__, __LINE__)
+#define FLUSH_CS \
+ cs_winsys->flush_cs(cs)
+
#endif /* R300_CS_H */
\ No newline at end of file
radeon_cs_write_reloc(cs, ((struct amd_pipe_buffer*)pbuffer)->bo, rd, wd, flags);
}
+static void amd_r300_flush_cs(struct radeon_cs* cs)
+{
+ radeon_cs_emit(cs);
+ radeon_cs_erase(cs);
+}
+
struct r300_winsys* amd_create_r300_winsys(int fd)
{
struct r300_winsys* winsys = calloc(1, sizeof(struct r300_winsys));
winsys->write_cs_dword = radeon_cs_write_dword;
winsys->write_cs_reloc = amd_r300_write_cs_reloc;
winsys->end_cs = radeon_cs_end;
+ winsys->flush_cs = amd_r300_flush_cs;
return winsys;
-}
\ No newline at end of file
+}