aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2018-02-07 05:18:17 +0100
committerRoland Scheidegger <[email protected]>2018-02-07 17:09:37 +0100
commitd7bec6f7a6a2a35c80be939db8532011af1e9b67 (patch)
tree6c5d0772df8666f8ef4ec6de9d6c61fa23130490 /src/gallium/auxiliary/util/u_blit.h
parentafd1e9be1714eb95c3b797becb15bebaad9e6646 (diff)
u_blit,u_simple_shaders: add shader to convert from xrbias format
We need this to handle some oddball dx10 format (DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM). What you can do with this format is very limited, hence we don't want to add it as a gallium format (we could not express the properties of this format as ordinary format properties neither, so like all special formats it would need specific code for handling it in any case). While here, also nuke the array for different shaders for different writemasks, as it was not actually used (always full masks are passed in for generating shaders). Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.h')
-rw-r--r--src/gallium/auxiliary/util/u_blit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.h b/src/gallium/auxiliary/util/u_blit.h
index b50edab781e..e2934d0983c 100644
--- a/src/gallium/auxiliary/util/u_blit.h
+++ b/src/gallium/auxiliary/util/u_blit.h
@@ -72,7 +72,8 @@ util_blit_pixels_tex(struct blit_state *ctx,
struct pipe_surface *dst,
int dstX0, int dstY0,
int dstX1, int dstY1,
- float z, uint filter);
+ float z, uint filter,
+ boolean src_xrbias);
#ifdef __cplusplus
}