summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorFabio Pedretti <[email protected]>2011-12-06 08:44:07 -0700
committerBrian Paul <[email protected]>2011-12-06 08:44:07 -0700
commit9ab43f74547b31d07d57acf2351ff46465d077bf (patch)
tree53cd8f6780d164d28594d48f47539a3aa07b7a38 /src/gallium
parent0b34074bdb978c95b8de65517143c546ac0cf75f (diff)
vega: remove unused vars
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/vega/vg_translate.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/gallium/state_trackers/vega/vg_translate.c b/src/gallium/state_trackers/vega/vg_translate.c
index 03575ca3ddd..06cc003b0b9 100644
--- a/src/gallium/state_trackers/vega/vg_translate.c
+++ b/src/gallium/state_trackers/vega/vg_translate.c
@@ -131,10 +131,7 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
case VG_sL_8: {
VGubyte *dst = (VGubyte *)dstAddr;
for (i = 0; i < n; ++i) {
- VGubyte r, g, b, a;
- r = float_to_ubyte(rgba[i][0]);
- g = float_to_ubyte(rgba[i][1]);
- b = float_to_ubyte(rgba[i][2]);
+ VGubyte a;
a = float_to_ubyte(rgba[i][3]);
dst[i] = a;
@@ -183,10 +180,7 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
case VG_lL_8: {
VGubyte *dst = (VGubyte *)dstAddr;
for (i = 0; i < n; ++i) {
- VGubyte r, g, b ,a;
- r = float_to_ubyte(rgba[i][0]);
- g = float_to_ubyte(rgba[i][1]);
- b = float_to_ubyte(rgba[i][2]);
+ VGubyte a;
a = float_to_ubyte(rgba[i][3]);
dst[i] = a;
}
@@ -196,10 +190,7 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
case VG_A_8: {
VGubyte *dst = (VGubyte *)dstAddr;
for (i = 0; i < n; ++i) {
- VGubyte r, g, b, a;
- r = float_to_ubyte(rgba[i][0]);
- g = float_to_ubyte(rgba[i][1]);
- b = float_to_ubyte(rgba[i][2]);
+ VGubyte a;
a = float_to_ubyte(rgba[i][3]);
dst[i] = a;
@@ -227,10 +218,7 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
case VG_A_1: {
VGshort *dst = (VGshort *)dstAddr;
for (i = 0; i < n; ++i) {
- VGubyte r, g, b, a;
- r = float_to_ubyte(rgba[i][0]);
- g = float_to_ubyte(rgba[i][1]);
- b = float_to_ubyte(rgba[i][2]);
+ VGubyte a;
a = float_to_ubyte(rgba[i][3]);
dst[i] = (a & (128));
@@ -241,11 +229,8 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
case VG_A_4: {
VGshort *dst = (VGshort *)dstAddr;
for (i = 0; i < n; ++i) {
- VGubyte r, g, b, a;
+ VGubyte a;
VGubyte res;
- r = float_to_ubyte(rgba[i][0]);
- g = float_to_ubyte(rgba[i][1]);
- b = float_to_ubyte(rgba[i][2]);
a = float_to_ubyte(rgba[i][3]);
res = a/4;