Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
r600_cs.c File Reference
#include <linux/kernel.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "r600d.h"
#include "r600_reg_safe.h"

Go to the source code of this file.

Data Structures

struct  r600_cs_track
 
struct  gpu_formats
 
struct  array_mode_checker
 

Macros

#define FMT_8_BIT(fmt, vc)   [fmt] = { 1, 1, 1, vc, CHIP_R600 }
 
#define FMT_16_BIT(fmt, vc)   [fmt] = { 1, 1, 2, vc, CHIP_R600 }
 
#define FMT_24_BIT(fmt)   [fmt] = { 1, 1, 4, 0, CHIP_R600 }
 
#define FMT_32_BIT(fmt, vc)   [fmt] = { 1, 1, 4, vc, CHIP_R600 }
 
#define FMT_48_BIT(fmt)   [fmt] = { 1, 1, 8, 0, CHIP_R600 }
 
#define FMT_64_BIT(fmt, vc)   [fmt] = { 1, 1, 8, vc, CHIP_R600 }
 
#define FMT_96_BIT(fmt)   [fmt] = { 1, 1, 12, 0, CHIP_R600 }
 
#define FMT_128_BIT(fmt, vc)   [fmt] = { 1, 1, 16,vc, CHIP_R600 }
 

Typedefs

typedef int(* next_reloc_t )(struct radeon_cs_parser *, struct radeon_cs_reloc **)
 

Functions

void r600_cs_legacy_get_tiling_conf (struct drm_device *dev, u32 *npipes, u32 *nbanks, u32 *group_size)
 
bool r600_fmt_is_valid_color (u32 format)
 
bool r600_fmt_is_valid_texture (u32 format, enum radeon_family family)
 
int r600_fmt_get_blocksize (u32 format)
 
int r600_fmt_get_nblocksx (u32 format, u32 w)
 
int r600_fmt_get_nblocksy (u32 format, u32 h)
 
unsigned r600_mip_minify (unsigned size, unsigned level)
 
int r600_cs_parse (struct radeon_cs_parser *p)
 
int r600_cs_legacy (struct drm_device *dev, void *data, struct drm_file *filp, unsigned family, u32 *ib, int *l)
 
void r600_cs_legacy_init (void)
 

Macro Definition Documentation

#define FMT_128_BIT (   fmt,
  vc 
)    [fmt] = { 1, 1, 16,vc, CHIP_R600 }

Definition at line 98 of file r600_cs.c.

#define FMT_16_BIT (   fmt,
  vc 
)    [fmt] = { 1, 1, 2, vc, CHIP_R600 }

Definition at line 92 of file r600_cs.c.

#define FMT_24_BIT (   fmt)    [fmt] = { 1, 1, 4, 0, CHIP_R600 }

Definition at line 93 of file r600_cs.c.

#define FMT_32_BIT (   fmt,
  vc 
)    [fmt] = { 1, 1, 4, vc, CHIP_R600 }

Definition at line 94 of file r600_cs.c.

#define FMT_48_BIT (   fmt)    [fmt] = { 1, 1, 8, 0, CHIP_R600 }

Definition at line 95 of file r600_cs.c.

#define FMT_64_BIT (   fmt,
  vc 
)    [fmt] = { 1, 1, 8, vc, CHIP_R600 }

Definition at line 96 of file r600_cs.c.

#define FMT_8_BIT (   fmt,
  vc 
)    [fmt] = { 1, 1, 1, vc, CHIP_R600 }

Definition at line 91 of file r600_cs.c.

#define FMT_96_BIT (   fmt)    [fmt] = { 1, 1, 12, 0, CHIP_R600 }

Definition at line 97 of file r600_cs.c.

Typedef Documentation

typedef int(* next_reloc_t)(struct radeon_cs_parser *, struct radeon_cs_reloc **)

Definition at line 38 of file r600_cs.c.

Function Documentation

int r600_cs_legacy ( struct drm_device dev,
void data,
struct drm_file *  filp,
unsigned  family,
u32 ib,
int l 
)

Definition at line 2439 of file r600_cs.c.

void r600_cs_legacy_get_tiling_conf ( struct drm_device dev,
u32 npipes,
u32 nbanks,
u32 group_size 
)

Definition at line 2656 of file r600_cp.c.

void r600_cs_legacy_init ( void  )

Definition at line 2495 of file r600_cs.c.

int r600_cs_parse ( struct radeon_cs_parser p)

Definition at line 2342 of file r600_cs.c.

int r600_fmt_get_blocksize ( u32  format)

Definition at line 207 of file r600_cs.c.

int r600_fmt_get_nblocksx ( u32  format,
u32  w 
)

Definition at line 215 of file r600_cs.c.

int r600_fmt_get_nblocksy ( u32  format,
u32  h 
)

Definition at line 229 of file r600_cs.c.

bool r600_fmt_is_valid_color ( u32  format)

Definition at line 182 of file r600_cs.c.

bool r600_fmt_is_valid_texture ( u32  format,
enum radeon_family  family 
)

Definition at line 193 of file r600_cs.c.

unsigned r600_mip_minify ( unsigned  size,
unsigned  level 
)

Definition at line 1577 of file r600_cs.c.