gallium: inline u_format_pack.generate

This makes this code a bit simpler to follow.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent f8d5280bdb
commit 5b2b4719e6
  1. 9
      src/gallium/auxiliary/util/u_format_pack.py
  2. 7
      src/gallium/auxiliary/util/u_format_table.py

@ -50,12 +50,3 @@ def print_channels(format, func):
print('#else')
func(format.le_channels, format.le_swizzles)
print('#endif')
def generate(formats):
print()
print('#include "pipe/p_compiler.h"')
print('#include "u_math.h"')
print('#include "u_half.h"')
print('#include "u_format.h"')
print()

@ -89,7 +89,12 @@ def write_format_table(formats):
print('#include "u_format.h"')
print()
u_format_pack.generate(formats)
print()
print('#include "pipe/p_compiler.h"')
print('#include "u_math.h"')
print('#include "u_half.h"')
print('#include "u_format.h"')
print()
def do_channel_array(channels, swizzles):
print(" {")

Loading…
Cancel
Save