diff options
author | Eric Anholt <[email protected]> | 2011-07-11 11:34:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-07-12 14:40:43 -0700 |
commit | 9a82d89a8fafde1b65c0843e022e99864b6d56b1 (patch) | |
tree | 85fa746cf60bd8dfb2fb2eadc97004a01537be17 /src/mesa/drivers/dri/i915/i915_texstate.c | |
parent | 6e6b38860488a0b2b282866f095cea9860503a14 (diff) |
i915: Use _mesa_get_format_name to describe translate_tex_format() fail.
I don't want to go count up to what format number 29 is.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_texstate.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_texstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c index bcf42d59969..90ebee3846d 100644 --- a/src/mesa/drivers/dri/i915/i915_texstate.c +++ b/src/mesa/drivers/dri/i915/i915_texstate.c @@ -89,7 +89,8 @@ translate_texture_format(gl_format mesa_format, GLenum DepthMode) else return (MAPSURF_32BIT | MT_32BIT_x8L24); default: - fprintf(stderr, "%s: bad image format %x\n", __FUNCTION__, mesa_format); + fprintf(stderr, "%s: bad image format %s\n", __FUNCTION__, + _mesa_get_format_name(mesa_format)); abort(); return 0; } |