diff options
author | Topi Pohjolainen <[email protected]> | 2016-04-08 10:22:37 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-04-21 10:20:01 +0300 |
commit | 9e4d19372b1d7f6ab12ddab1929a53335d9cce06 (patch) | |
tree | 3ec4a047e5277b38ac64b8a4f2099386a737d0f4 /src/mesa/drivers/dri/i965/brw_blorp.h | |
parent | 6b33d63d77ab7835b5883140e54316e86e73888d (diff) |
i965/blorp: Add support for sampling 3D textures
This patch adds additional MOV instruction for all blorp programs
that use SHADER_OPCODE_TXF. Alternative is to augment blorp program
key to tell if z-coordinate is needed, add condition to the blorp
blit compiler and to produce a variant with and without the MOV.
This seems a little overkill.
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h index 7ebcee27455..a1aaa2096f2 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.h +++ b/src/mesa/drivers/dri/i965/brw_blorp.h @@ -196,8 +196,14 @@ struct brw_blorp_wm_push_constants float rect_grid_y1; brw_blorp_coord_transform_params x_transform; brw_blorp_coord_transform_params y_transform; + + /* Minimum layer setting works for all the textures types but texture_3d + * for which the setting has no effect. Use the z-coordinate instead. + */ + uint32_t src_z; + /* Pad out to an integral number of registers */ - uint32_t pad[6]; + uint32_t pad[5]; }; /* Every 32 bytes of push constant data constitutes one GEN register. */ |