summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-26 17:53:56 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:01:11 +0100
commit9053fcabcbf1b1c969a9a52585d232bb778eba63 (patch)
tree2456caf02ccf87a53d3b91bf77d3cbaee1cc2dc5 /src/mesa
parent6961769cb23c8b9ed2fb56d8ce6e649848412357 (diff)
Remove GL dependencies.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_util.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_util.c b/src/mesa/pipe/tgsi/exec/tgsi_util.c
index 67e32ccbd09..d1bc9355265 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_util.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_util.c
@@ -19,10 +19,10 @@ tgsi_align_128bit(
return ph.pointer;
}
-GLuint
+unsigned
tgsi_util_get_src_register_swizzle(
const struct tgsi_src_register *reg,
- GLuint component )
+ unsigned component )
{
switch( component ) {
case 0:
@@ -39,10 +39,10 @@ tgsi_util_get_src_register_swizzle(
return 0;
}
-GLuint
+unsigned
tgsi_util_get_src_register_extswizzle(
- const struct tgsi_src_register_ext_swz *reg,
- GLuint component )
+ const struct tgsi_src_register_ext_swz *reg,
+ unsigned component )
{
switch( component ) {
case 0:
@@ -59,12 +59,12 @@ tgsi_util_get_src_register_extswizzle(
return 0;
}
-GLuint
+unsigned
tgsi_util_get_full_src_register_extswizzle(
const struct tgsi_full_src_register *reg,
- GLuint component )
+ unsigned component )
{
- GLuint swizzle;
+ unsigned swizzle;
/*
* First, calculate the extended swizzle for a given channel. This will give
@@ -97,8 +97,8 @@ tgsi_util_get_full_src_register_extswizzle(
void
tgsi_util_set_src_register_swizzle(
struct tgsi_src_register *reg,
- GLuint swizzle,
- GLuint component )
+ unsigned swizzle,
+ unsigned component )
{
switch( component ) {
case 0:
@@ -121,8 +121,8 @@ tgsi_util_set_src_register_swizzle(
void
tgsi_util_set_src_register_extswizzle(
struct tgsi_src_register_ext_swz *reg,
- GLuint swizzle,
- GLuint component )
+ unsigned swizzle,
+ unsigned component )
{
switch( component ) {
case 0:
@@ -142,10 +142,10 @@ tgsi_util_set_src_register_extswizzle(
}
}
-GLuint
+unsigned
tgsi_util_get_src_register_extnegate(
const struct tgsi_src_register_ext_swz *reg,
- GLuint component )
+ unsigned component )
{
switch( component ) {
case 0:
@@ -165,8 +165,8 @@ tgsi_util_get_src_register_extnegate(
void
tgsi_util_set_src_register_extnegate(
struct tgsi_src_register_ext_swz *reg,
- GLuint negate,
- GLuint component )
+ unsigned negate,
+ unsigned component )
{
switch( component ) {
case 0:
@@ -186,12 +186,12 @@ tgsi_util_set_src_register_extnegate(
}
}
-GLuint
+unsigned
tgsi_util_get_full_src_register_sign_mode(
const struct tgsi_full_src_register *reg,
- GLuint component )
+ unsigned component )
{
- GLuint sign_mode;
+ unsigned sign_mode;
if( reg->SrcRegisterExtMod.Absolute ) {
/* Consider only the post-abs negation. */
@@ -206,7 +206,7 @@ tgsi_util_get_full_src_register_sign_mode(
else {
/* Accumulate the three negations. */
- GLuint negate;
+ unsigned negate;
negate = reg->SrcRegister.Negate;
if( tgsi_util_get_src_register_extnegate( &reg->SrcRegisterExtSwz, component ) ) {
@@ -230,7 +230,7 @@ tgsi_util_get_full_src_register_sign_mode(
void
tgsi_util_set_full_src_register_sign_mode(
struct tgsi_full_src_register *reg,
- GLuint sign_mode )
+ unsigned sign_mode )
{
reg->SrcRegisterExtSwz.NegateX = 0;
reg->SrcRegisterExtSwz.NegateY = 0;