Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
r100_track.h File Reference

Go to the source code of this file.

Data Structures

struct  r100_cs_track_cb
 
struct  r100_cs_track_array
 
struct  r100_cs_cube_info
 
struct  r100_cs_track_texture
 
struct  r100_cs_track
 

Macros

#define R100_TRACK_MAX_TEXTURE   3
 
#define R200_TRACK_MAX_TEXTURE   6
 
#define R300_TRACK_MAX_TEXTURE   16
 
#define R100_MAX_CB   1
 
#define R300_MAX_CB   4
 
#define R100_TRACK_COMP_NONE   0
 
#define R100_TRACK_COMP_DXT1   1
 
#define R100_TRACK_COMP_DXT35   2
 

Functions

int r100_cs_track_check (struct radeon_device *rdev, struct r100_cs_track *track)
 
void r100_cs_track_clear (struct radeon_device *rdev, struct r100_cs_track *track)
 
int r100_cs_packet_next_reloc (struct radeon_cs_parser *p, struct radeon_cs_reloc **cs_reloc)
 
void r100_cs_dump_packet (struct radeon_cs_parser *p, struct radeon_cs_packet *pkt)
 
int r100_cs_packet_parse_vline (struct radeon_cs_parser *p)
 
int r200_packet0_check (struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, unsigned idx, unsigned reg)
 
int r100_reloc_pitch_offset (struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, unsigned idx, unsigned reg)
 
int r100_packet3_load_vbpntr (struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, int idx)
 

Macro Definition Documentation

#define R100_MAX_CB   1

Definition at line 6 of file r100_track.h.

#define R100_TRACK_COMP_DXT1   1

Definition at line 32 of file r100_track.h.

#define R100_TRACK_COMP_DXT35   2

Definition at line 33 of file r100_track.h.

#define R100_TRACK_COMP_NONE   0

Definition at line 31 of file r100_track.h.

#define R100_TRACK_MAX_TEXTURE   3

Definition at line 2 of file r100_track.h.

#define R200_TRACK_MAX_TEXTURE   6

Definition at line 3 of file r100_track.h.

#define R300_MAX_CB   4

Definition at line 7 of file r100_track.h.

#define R300_TRACK_MAX_TEXTURE   16

Definition at line 4 of file r100_track.h.

Function Documentation

void r100_cs_dump_packet ( struct radeon_cs_parser p,
struct radeon_cs_packet pkt 
)

Definition at line 1358 of file r100.c.

int r100_cs_packet_next_reloc ( struct radeon_cs_parser p,
struct radeon_cs_reloc **  cs_reloc 
)

r100_cs_packet_next_reloc() - parse next packet which should be reloc packet3 : parser structure holding parsing context. : pointer to relocation data : starting offset : offset mask (to align start offset on) : reloc informations

Check next packet is relocation packet3, do bo validation and compute GPU offset using the provided start.

Definition at line 1520 of file r100.c.

int r100_cs_packet_parse_vline ( struct radeon_cs_parser p)

r100_cs_packet_next_vline() - parse userspace VLINE packet : parser structure holding parsing context.

Userspace sends a special sequence for VLINE waits. PACKET0 - VLINE_START_END + value PACKET0 - WAIT_UNTIL +_value RELOC (P3) - crtc_id in reloc.

This function parses this and relocates the VLINE START END and WAIT UNTIL packets to the correct crtc. It also detects a switched off crtc and nulls out the wait in that case.

Definition at line 1433 of file r100.c.

int r100_cs_track_check ( struct radeon_device rdev,
struct r100_cs_track track 
)

Definition at line 2298 of file r100.c.

void r100_cs_track_clear ( struct radeon_device rdev,
struct r100_cs_track track 
)

Definition at line 2435 of file r100.c.

int r100_packet3_load_vbpntr ( struct radeon_cs_parser p,
struct radeon_cs_packet pkt,
int  idx 
)

Definition at line 1249 of file r100.c.

int r100_reloc_pitch_offset ( struct radeon_cs_parser p,
struct radeon_cs_packet pkt,
unsigned  idx,
unsigned  reg 
)

Definition at line 1207 of file r100.c.

int r200_packet0_check ( struct radeon_cs_parser p,
struct radeon_cs_packet pkt,
unsigned  idx,
unsigned  reg 
)

Definition at line 142 of file r200.c.