diff options
author | Tapani Pälli <[email protected]> | 2019-08-12 10:44:41 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-08-12 13:08:26 +0300 |
commit | d4b574f26ab51c1a35c9619971aec1fec4ffd822 (patch) | |
tree | 52245c3b5761ad4d149765dfaab536bd7d55dbfe /src/gallium/drivers | |
parent | 590ba15d6e1e5942010a31d53fee1a7313191a66 (diff) |
iris: reorder arguments as expected by the function
CID: 1452262
Fixes: b4c54894bba "iris: Handle vertex shader with window space position"
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Danylo Piliaiev <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index b6c9d1885d9..921078b28a2 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4373,9 +4373,9 @@ iris_upload_dirty_render_state(struct iris_context *ice, GENX(CC_VIEWPORT_length), 32, &cc_vp_address); for (int i = 0; i < ice->state.num_viewports; i++) { float zmin, zmax; - iris_viewport_zmin_zmax(&ice->state.viewports[i], + iris_viewport_zmin_zmax(&ice->state.viewports[i], cso_rast->clip_halfz, ice->state.window_space_position, - cso_rast->clip_halfz, &zmin, &zmax); + &zmin, &zmax); if (cso_rast->depth_clip_near) zmin = 0.0; if (cso_rast->depth_clip_far) |