gallium: Drop a bit of dead code from the pack/unpack python.
authorEric Anholt <eric@anholt.net>
Thu, 15 Aug 2019 16:55:39 +0000 (09:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Aug 2019 17:39:36 +0000 (10:39 -0700)
Nothing used this var.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_format_pack.py

index e2fd1520dde6f801f27fbfbe29bee26ef85d9c15..75bda428e9345fa54a637011a7b102ce66400997 100644 (file)
@@ -445,8 +445,6 @@ def generate_unpack_kernel(format, dst_channel, dst_native_type):
     
     assert format.layout == PLAIN
 
-    src_native_type = native_type(format)
-
     def unpack_from_bitmask(channels, swizzles):
         depth = format.block_size()
         print('         uint%u_t value = *(const uint%u_t *)src;' % (depth, depth))