diff options
author | Rob Clark <[email protected]> | 2013-04-24 10:48:59 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-04-24 21:09:46 -0400 |
commit | d5d6ec884321ceaabe18ec4d33e9a27758696ef9 (patch) | |
tree | a30e2385ecaf102e8507f21cec6aca31064aca74 /src/gallium/drivers/freedreno/ir-a2xx.h | |
parent | d086bb22bce6c9ed0afeb782ccd4ba6fa2561e02 (diff) |
freedreno: fix texture fetch type
There is a bit we need to set for 2D vs 3D fetch, to tell the hw whether
there are two or there valid input components.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir-a2xx.h')
-rw-r--r-- | src/gallium/drivers/freedreno/ir-a2xx.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir-a2xx.h b/src/gallium/drivers/freedreno/ir-a2xx.h index e2c7eff504e..822e5ec4c23 100644 --- a/src/gallium/drivers/freedreno/ir-a2xx.h +++ b/src/gallium/drivers/freedreno/ir-a2xx.h @@ -72,7 +72,9 @@ struct ir2_instruction { struct { instr_fetch_opc_t opc; unsigned const_idx; - /* maybe vertex fetch specific: */ + /* texture fetch specific: */ + bool is_cube : 1; + /* vertex fetch specific: */ unsigned const_idx_sel; enum a2xx_sq_surfaceformat fmt; bool is_signed : 1; |